Hi,
I wrote a small plugin that enables dynamic time limits for timeattack games based on each map's bronze time.
You can find it on GitHub: https://github.com/Syberspace/pyplanet-dynatime
And you can see it in action on my own canyon server anvor.at
[Plugin] Dynatime
Moderators: TheM, toffe, NADEO
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: [Plugin] Dynatime
Great work! This might be useful to integrate in the core and be able to enable this with a setting, any thoughts about that?
Toffe
Toffe
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller
-
- Posts: 4
- Joined: 10 Mar 2020, 18:36
Re: [Plugin] Dynatime
Yeah sure. I don't think there should be any issues with simply moving my code into apps.contrib in the core.
The setting to disable/enable is already present, though I think it would be useful to change the default to being disabled if it is a core functionality.
I'll try to integrate it myself and hit you up with a pull request on github if that's okay with you.
The setting to disable/enable is already present, though I think it would be useful to change the default to being disabled if it is a core functionality.
I'll try to integrate it myself and hit you up with a pull request on github if that's okay with you.
Re: [Plugin] Dynatime
I am getting an error on pyplanet start:
Where do i have to copy the files?
I created an apps-folder in the folder of my project-folder?
https://i.imgur.com/vruBFQn.png
Then i created a folder called dynatime in the apps-folder:
https://i.imgur.com/7oFrpQj.png
and then copied the files into the dynatime-folder:
https://i.imgur.com/Eq9Fvkd.png
Alternatively i copied the dynatime-folder into this folder:
PyPlanet\env\Lib\site-packages\pyplanet\apps\contrib
I alhough restarted the environment. Nothing helps.
Code: Select all
ModuleNotFoundError: No module named 'pyplanet.apps.dynatime'
I created an apps-folder in the folder of my project-folder?
https://i.imgur.com/vruBFQn.png
Then i created a folder called dynatime in the apps-folder:
https://i.imgur.com/7oFrpQj.png
and then copied the files into the dynatime-folder:
https://i.imgur.com/Eq9Fvkd.png
Alternatively i copied the dynatime-folder into this folder:
PyPlanet\env\Lib\site-packages\pyplanet\apps\contrib
I alhough restarted the environment. Nothing helps.
-
- Posts: 4
- Joined: 10 Mar 2020, 18:36
Re: [Plugin] Dynatime
Try using 'apps.dynatime' in your settings/apps.py file instead.
Re: [Plugin] Dynatime
thx, i get this:
https://i.imgur.com/2JZteWN.png
And ingame no time-limits are changed. All tracks are running 5:00 minutes.
Is it not compatible to Trackmania 2020?
https://i.imgur.com/2JZteWN.png
And ingame no time-limits are changed. All tracks are running 5:00 minutes.
Is it not compatible to Trackmania 2020?
-
- Posts: 4
- Joined: 10 Mar 2020, 18:36
Re: [Plugin] Dynatime
yes, as the error message says, the plugins do not support the new version of trackmania.
you could, however, try editing the dynatime.py file by adding 'trackmania_next' to the game_dependencies in line 15 and then restart pyplanet. I haven't tested this myself so I can't guarantee that it will work.
Who is online
Users browsing this forum: No registered users and 1 guest