Game Development Community

How to delete the time limit?

by Ray Taylor · in Torque 3D Professional · 06/29/2011 (5:55 am) · 2 replies

In game\scripts\sever\game.cs I found the follow on line 6 and 7:

// Game duration in secs, no limit if the duration is set to 0
$Game::Duration = 20 * 60;

so I set:

$Game::Duration = 0;

The game still ends after a certain length of time. I haven't timed it but seems like it is about 20 minutes.

Can someone help me out with the answer?

#1
06/29/2011 (6:59 am)
T3D is using the $Server::MissionType $= "" that you specified ... which by default is "DeathMatch" which then overrides previous settings - so you'll want to open the gameDM.cs and change the "$Game::Duration" there, and also maybe comment out the parent callback just to be certain.
// parent::onGameDurationEnd(); //   <--yorks out!
#2
06/29/2011 (7:30 am)
Thanks Steve, I have changed it and I will test later when I have the 30 minutes to let it run.