[Help] Round time limit depending on game mode/ server pw
Posted: 2010-12-09 11:00
Greetings again.
Another question. Maybe small, but I - as a python noob - was unable to solve it.
Is it possible to set up a time limit depending on the config?
Thing is: We have a skirmish campaign running, and thus have to put our gameserver for one hour weekly in private mode (PW). For this one, we set the ticket limit to 1000 and want a time limit of 1h. Now, timelimit is set in the config_common. We don't want this, as this would force us to replace the config all the time. I'd like to put it in config_private.
Now, as a real Python noob would approach this, I tried adding
PRTIMELIMIT = 3600
to the config_private.py
Weird thing: This worked once. When I fired up the server and my buddy connected, I saw the limit jump to the 60min. Perfect.
Next time we restarted the server, nada. 4h time limit. Weird. The other changed setting (1000 tickets worked just fine).
Any ideas?
Another question. Maybe small, but I - as a python noob - was unable to solve it.
Is it possible to set up a time limit depending on the config?
Thing is: We have a skirmish campaign running, and thus have to put our gameserver for one hour weekly in private mode (PW). For this one, we set the ticket limit to 1000 and want a time limit of 1h. Now, timelimit is set in the config_common. We don't want this, as this would force us to replace the config all the time. I'd like to put it in config_private.
Now, as a real Python noob would approach this, I tried adding
PRTIMELIMIT = 3600
to the config_private.py
Weird thing: This worked once. When I fired up the server and my buddy connected, I saw the limit jump to the 60min. Perfect.
Next time we restarted the server, nada. 4h time limit. Weird. The other changed setting (1000 tickets worked just fine).
Any ideas?