Game Length
by Mark McCoy · in ThinkTanks · 06/09/2003 (3:31 pm) · 4 replies
Presumably game length would be set with:
$Pref::Server::TimeLimit = 20;
in the server/prefs.cs file? Or is that a time limit for something else?
Either way it seems to have no effect. Is there a way to change the length of the online games?
-- mark
$Pref::Server::TimeLimit = 20;
in the server/prefs.cs file? Or is that a time limit for something else?
Either way it seems to have no effect. Is there a way to change the length of the online games?
-- mark
About the author
#2
06/09/2003 (9:32 pm)
Timothy Miller, Torque has always been this way, it detects big changes but not small changes and it's not really a bug, but more harder to actually check on file changes with it's current code. By the way they're .cs files not .cf :)
#3
@Mark - there are a few pref's that ThinkTanks doesn't end up using (and we didn't clean them out before launch). $pref::server::TimeLimit is one. The time limit of the game is controlled by the variable $Game::duration (it's in seconds, with a default value of 15*60). This isn't a pref, so it doesn't get saved off (it's fixed). We didn't expose it because we didn't want a lot of custom servers out there until we are more firmly established (we want to make sure the newbie experience is a good one, and one way to ensure this is to make sure they are playing the parameters we've play-tested and fine tuned). However, if you really want to, here is what you'll have to do...
Find main.cs and just before the line echo("Engine initialized..."); set the $Game::Duration variable to what you want. You have to do it there or else it will get over-written by the game scripts.
Edit: fixed typo pointed out by z.
06/10/2003 (10:55 pm)
@Timothy, Nathan - big changes, small changes, it doesn't matter, Torque will compile the .cs file if it is older than the .dso. There may be cases where this fails, but all such cases I've ever encountered have been user errors (in particular, script errors in the updated .cs file that didn't compile, leaving the old .dso as active, or incorrectly set system clocks). In any case, .cs files should compile.@Mark - there are a few pref's that ThinkTanks doesn't end up using (and we didn't clean them out before launch). $pref::server::TimeLimit is one. The time limit of the game is controlled by the variable $Game::duration (it's in seconds, with a default value of 15*60). This isn't a pref, so it doesn't get saved off (it's fixed). We didn't expose it because we didn't want a lot of custom servers out there until we are more firmly established (we want to make sure the newbie experience is a good one, and one way to ensure this is to make sure they are playing the parameters we've play-tested and fine tuned). However, if you really want to, here is what you'll have to do...
Find main.cs and just before the line echo("Engine initialized..."); set the $Game::Duration variable to what you want. You have to do it there or else it will get over-written by the game scripts.
Edit: fixed typo pointed out by z.
#4
Many thanks for that, yes indeed that has worked. Would just like to mention/clarify though that it is $Game::Duration not $Game::TimeLimit
It will also be useful if increasing the time limit for scrum league games (for instance) if need be.
-Z-
06/11/2003 (1:27 am)
@Clark:Many thanks for that, yes indeed that has worked. Would just like to mention/clarify though that it is $Game::Duration not $Game::TimeLimit
It will also be useful if increasing the time limit for scrum league games (for instance) if need be.
-Z-
Torque Owner Timothy Miller
I think this is a bug, but I haven't submitted it yet since I discovered it Sunday.
-- Cerebus