[Plugin] MatchResults

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Post Reply
User avatar
w1lla
Posts: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

[Plugin] MatchResults

Post by w1lla »

Hi,

A new plugin has surfaced, where in the main folder a matchresults.html will emerge.

Downloadlink:

https://github.com/w1lla/pyplanet_plugi ... esults.zip

Copy match_results folder from the zip towards env\Lib\site-packages\pyplanet\apps\contrib.

Add the following line in apps.py

Code: Select all

'pyplanet.apps.contrib.match_results',
This will show Rank, Nickname, Best Race Time, Mapname and Points if you are Playing Rounds, Team.

Some extra information:

An example of the html can be found here:

https://w1lla.github.io/pyplanet_plugin ... results_ta
https://w1lla.github.io/pyplanet_plugin ... lts_rounds
https://w1lla.github.io/pyplanet_plugin ... sults_laps
https://w1lla.github.io/pyplanet_plugin ... sults_team

And see the Results get filled in after end of the Map.

[Update]
v0.03 has the following things:

- Added TM Times
- Strip TM Tags
- Added Gamemode
- File is created on DATE with d-m-y_H-m-s.html
- default is disasbled
- To enable it do //match start
- To disable it do //match stop

[Update] Version 0.05

- /results command which will show for each new match the results.
- //math start will erase the db and begin again with filling only on Rounds
- //match start will RestartMap after 5 seconds.
- //match stop ends previous map as last map played. (Happens on NewMap)
- Added in HTML File lapsCP passed by player.
- Added in HTML MatchPoints Gathered.
- Added UTF-8 support.
- when a new match is started the old html file matchresults.html will be copied and renamed to previous_matchresults_2021-01-27_09-58-08.html for instance

[Update] Version: 0.06

- Support for postgresql on /results command. (Works)
- Added TotalMatchStandings as a table in the html file of match_results
- matchresults folder is made on command //match start. From there you can get the file or previous matchresults.

[Update] Version: 0.07

Better usage of HTML Tables for different Modes.
Last edited by w1lla on 31 Jan 2021, 22:46, edited 4 times in total.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
w1lla
Posts: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [Plugin] MatchResults

Post by w1lla »

pushed a update see first post.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
w1lla
Posts: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [Plugin] MatchResults

Post by w1lla »

again a new update with the following changes:

Updated:

- /results command which will show for each new match the results.
- //math start will erase the db and begin again with filling only on Rounds
- //match start will RestartMap after 5 seconds.
- //match stop ends previous map as last map played. (Happens on NewMap)
- Added in HTML File lapsCP passed by player.
- Added in HTML MatchPoints Gathered.
- Added UTF-8 support.
- when a new match is started the old html file matchresults.html will be copied and renamed to previous_matchresults_2021-01-27_09-58-08.html for instance
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
w1lla
Posts: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [Plugin] MatchResults

Post by w1lla »

Some updates have been pushed:

- Support for postgresql on /results command. (Works)
- Added TotalMatchStandings as a table in the html file of match_results
- matchresults folder is made on command //match start. From there you can get the file or previous matchresults.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
w1lla
Posts: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [Plugin] MatchResults

Post by w1lla »

TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
skleeny
Posts: 1
Joined: 02 Mar 2021, 10:20

Re: [Plugin] MatchResults

Post by skleeny »

Hi,

I really like this plugin and I'd like to use it to create some sort of statistics after month of playing for example.

Is there a way to autostart it somehow? So it creates the matchresults file for every map automatically?
User avatar
w1lla
Posts: 2396
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [Plugin] MatchResults

Post by w1lla »

Hi,

there is no automatic way for now. However if you do //match start it should run till you type //match stop.

From the moment you type //match start till //match stop it should record all results in a html file.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest