Game Development Community

TGE 1.4 crashes with dedicated server switch.

by Jeroen van Omme · in Torque Game Engine · 11/25/2005 (1:06 am) · 6 replies

Hi all,

When I start the "starter.fps" demo from TGE 1.4 with the "-dedicated" switch it crashes to the desktop (WinXP). This is with a clean unmoddified install!

Greetz,
Klaas

#1
11/28/2005 (12:07 pm)
Any fix for this? Got the same problem.
#2
11/28/2005 (12:25 pm)
What does the debugger say?
#3
11/28/2005 (12:39 pm)
This is an easy fix or more like hack

main.cs by defaults loads the creator mod

when running as a dedicated server, the creator mod dies because it is missing defines from the client side

the hack is to open main.cs and find the following

// Run the Torque Creator mod by default, it's needed for editors.
$modcount = 2;
$userMods = "creator;" @ $defaultGame;

change it to

// Run the Torque Creator mod by default, it's needed for editors.
$modcount = 1;
$userMods = $defaultGame;

As I said, it a hack, the proper way would be to only include the creator when the client runs.
#4
11/28/2005 (2:12 pm)
Ah... Interesting. Thank you for sharing this fix - will definitely get it into the next Torque update!
#5
11/30/2005 (8:46 am)
Mind you dont miss line 84 .... if you use the -game switch

case "-game":
         $argUsed[$i]++;
         if ($hasNextArg)
         {
            // Set the selected mod and creator for editor stuff.
            [b]$userMods = "creator;" @ $nextArg;[/b]
            $argUsed[$i+1]++;
            $i++;
            [b]$modcount = 2;[/b]
         }
         else
            error("Error: Missing Command Line argument. Usage: -game <game_name>");
#6
11/30/2005 (10:31 am)
Thanks, I'm running a different main.cs that was working fine under 1.3 tho, but I'll take a look.