Game Development Community

Server Timeout on Level load

by Justin Knight · in Torque 3D Professional · 03/15/2010 (8:04 am) · 3 replies

We're currently getting a server timeout loading our test level.

- How can you increase the timeout, I expected there would some kind of timeout value in the scripts/server/defaults.cs but can't see anything?

- What are normally the main culprits for long level load times, is there anyway to optimise things to reduce load time?

- After the Torque 3D logo and the progress bars showing 'Loading Objects' I get a grey screen and the program does not respond for 30 seconds or so. How do you customise the loading screen? Is there any way to get rid of the application not responding?

#1
03/15/2010 (8:52 am)
Hi Justin, i do not like this delay too.

I avoided it this way:

Go to game\scripts\gui\startupgui.cs

and change loadStartup() function to this one

function loadStartup()
{
   // The index of the current splash screen
   $StartupIdx = 0;


   // A list of the splash screens and logos
   // to cycle through. Note that they have to
   // be in consecutive numerical order

   //StartupGui.bitmap0     = "art/gui/background";
   //StartupGui.logo0       = "art/gui/Torque-3D-logo";
   ///StartupGui.logoPos0    = "178 251";
   //StartupGui.logoExtent0 = "443 139";

   // Call the next() function to set our first
   // splash screen
   //StartupGui.next();

   // Play our startup sound
   //SFXPlayOnce(AudioGui, "art/sound/gui/startup");//SFXPlay(startsnd);

   loadMainMenu();
}

Saves me some seconds...
#2
03/15/2010 (9:43 am)
Hi Zealander,
I was specifically looking at when the game loads up a .mis mission file. I believe the loadStartup() code is executing when the game first starts and it displays the main menu.
#3
03/19/2010 (12:55 pm)
The artist on my project managed to significantly reduce the level loading time by using dds compressed textures so the problem has gone away for now. It might recur as the level grows though so I'd still be interested in how to increase the server timeout.