Game Development Community

defaultParseArgs bugging light manager - LOGGED

by Alex Huck · in Torque 3D Professional · 07/20/2010 (5:31 am) · 1 replies

Hi,
I'm trying to add a new defaultParseArg in game/core/parseArgs.cs, but it causes the game to crash on load with "Failed to set a light manager!".

To reproduce the problem simply go into defaultParseArgs() function in "game/core/parseArgs.cs" and find line ~41 that says:
if( stricmp($arg,"-dedicated") == 0  )
{
   $userDirs = $defaultGame;
   $dirCount = 1;
   $isDedicated = true;
}

Copy and paste that same code underneath it, but change "-dedicated" to something different (I used "-ded")

Next run the game with -dedicated.. runs fine, works as expected, (Though it gives a warning about not having a mission loaded).

Now close down Torque and start it up again this time use -ded, it should do the same thing -dedicated does, but this time it gives a "Failed to set a light manager!" fatal error on load.