Game Development Community

Problem with prefs.cs

by game4Rest · in Torque Game Engine · 09/08/2006 (12:54 am) · 1 replies

Greetings!

Currently, I'm working with Master Server. And for a test, I changed the line $Pref::Server::Name in "~/server/defaults.cs" to my game name like below.
$Pref::Server::Name ="Troop";

But when I exit the game and open up the prefs.cs in the same directory, the value is not changed.
It has just old value. I think this is giving me a problem in finding my game through master server query.

AFAIK, prefs.cs has to be changed with new one when we exit the game. To get the result, I deleted the prefs.cs before starting my game with no luck. I also edited prefs.cs directly, but no desirable result.

So, would someone give me any advice to solve my problem?

Thanks in advance.

Hongjin

#1
09/09/2006 (12:02 am)
OK, I think I found the answer. We have many prefs.cs file in different folders. My problem was caused as I deleted the prefs.cs file which is on the server side only. So I think the best way to avoid this from happening
is to execute the deletePrefs.bat, which deletes all the prefs.cs file.

Hope this help someone.

Hongjin