skybaks / pyplanet-cup_manager

Competition Management Plugin for Trackmania Pyplanet
GNU General Public License v3.0
6 stars 2 forks source link

Create/edit cups from in-game #63

Closed skybaks closed 11 months ago

skybaks commented 11 months ago

From reaby, would like the ability for admins to edit cups from in game.

reaby commented 11 months ago

Yep... Would be very cool to admins to edit the cups in game. an easy way would be to add a field and allow admins to paste json to it then just save it :) Also local.py might be splitted to multiple .json files ?

skybaks commented 11 months ago

yes, I didnt think of it at the time but json files is a much nicer solution than the local.py We should still maintain the local.py support so people dont have to upgrade but im fine with using the json files going forward

skybaks commented 11 months ago

I'm looking at using the pyplanet storage driver for fs access and probably storing the json files in UserData/Config/cup_manager/ or UserData/Maps/MatchSettings/cup_manager/. Would that be compatible with your use case @reaby?

reaby commented 11 months ago

Matchsettings directory propably better for my usecase, but maybe you can make it configurable if someone else wishes the other location