Page 1 of 1
[Plugin] Dynatime
Posted: 09 May 2020, 14:41
by Syberspace
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
Re: [Plugin] Dynatime
Posted: 09 May 2020, 17:20
by toffe
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
Re: [Plugin] Dynatime
Posted: 10 May 2020, 09:28
by Syberspace
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.
Re: [Plugin] Dynatime
Posted: 15 Jul 2020, 19:24
by o0Julia0o
I am getting an error on pyplanet start:
Code: Select all
ModuleNotFoundError: No module named 'pyplanet.apps.dynatime'
Where do i have to copy the files?
I created an apps-folder in the folder of my project-folder?
Then i created a folder called dynatime in the apps-folder:
and then copied the files into the dynatime-folder:
Alternatively i copied the dynatime-folder into this folder:
PyPlanet\env\Lib\site-packages\pyplanet\apps\contrib
I alhough restarted the environment. Nothing helps.
Re: [Plugin] Dynatime
Posted: 02 Aug 2020, 14:07
by Syberspace
Try using 'apps.dynatime' in your settings/apps.py file instead.
Re: [Plugin] Dynatime
Posted: 03 Aug 2020, 11:55
by o0Julia0o
thx, i get this:
And ingame no time-limits are changed. All tracks are running 5:00 minutes.
Is it not compatible to Trackmania 2020?
Re: [Plugin] Dynatime
Posted: 04 Aug 2020, 17:53
by Syberspace
o0Julia0o wrote: ↑03 Aug 2020, 11:55
Is it not compatible to Trackmania 2020?
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.