Game Development Community

UserMods in script not set up correctly.

by James Urquhart · in Torque Game Engine · 01/27/2004 (2:45 pm) · 1 replies

In the current HEAD, if i try to use the -show tool, it seems the game mod dir is incorrectly set. This results in no model files being shown in the load shape dialog.

However, if i add on a -game parameter, e.g :
torqueDemo -game starter.fps -show

The show tool works as expected.

I'm not sure if this is the correct way to fix it, but heres what i did :

In main.cs :

Delete :
if($userMods $= "")
   $userMods = $defaultGame;

Add this line before the script checks the commandline parameters :
$userMods = $defaultGame;