Game Development Community

Variable typo in demo\client\init.cs

by Tom Spilman · in Torque Game Engine Advanced · 11/16/2004 (9:13 am) · 2 replies

A simple typo i found in .\demo\client\init.cs starting at line 36:

// Game information used to query the master server
   $CLient::GameType = "";
   $Client::GameTypeQuery = "";
   $Client::MissionTypeQuery = "Any";

That first var should be $Client and not $CLient. Simple, but this worries me. How would you detect this error aside from pouring thru all the code? Can Torque complain about this in the log file?

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
11/16/2004 (9:21 am)
IIRC TGE Script is non case sensitive, that is $CLient is the same as $client as $CLIENT as $ClIeNt

-Ron
#2
11/16/2004 (9:29 am)
Your right... from the docs:

Quote:
Case-insensitive- TorqueScript ignores case when interpreting variable and function names