Dedicated server
by Tran Dai Duy · in General Discussion · 12/08/2005 (8:23 am) · 8 replies
I start the demo application as dedicated server but it looks like doesn't work (the console window showed a moment and gone immediately). Look in the console.log file, after the comment "Executing the starter.fps/data/missions/stronghold.mis", I got alot of comments "onNeedRelight: Unknown command" and the last comment in this file is "Loading compiled script creator/ui/InspectDlg.gui".
I started successful this mode with TGE 1.3 but can't in 1.4. How do I fix it?
10Q,
I started successful this mode with TGE 1.3 but can't in 1.4. How do I fix it?
10Q,
#2
I think this function isn't cause that problem because the dedicated server is still not working, even I added your suggestion. By the way, thanks alot.
The graphic client (in TGE 1.4) runs OK.
12/09/2005 (7:23 am)
BigPapa,I think this function isn't cause that problem because the dedicated server is still not working, even I added your suggestion. By the way, thanks alot.
The graphic client (in TGE 1.4) runs OK.
#3
Added the onNeedRelight dummy function and changed the default game in main.cs:
$defaultGame = "starter.fps";
Then I try to start a dedicated server with:
D:\Torque\SDK\example\torqueDemo.exe -dedicated -mission starter.fps/data/missions/stronghold.mis
The program exits just like Tran described. Anyone else had this problem? Any fixes?
01/24/2006 (12:44 pm)
I have the exakt same problem. I have installed tge sdk 1.4 and made only two changes:Added the onNeedRelight dummy function and changed the default game in main.cs:
$defaultGame = "starter.fps";
Then I try to start a dedicated server with:
D:\Torque\SDK\example\torqueDemo.exe -dedicated -mission starter.fps/data/missions/stronghold.mis
The program exits just like Tran described. Anyone else had this problem? Any fixes?
#4
But I am not clear with it. It says something like this....
in client/init.cs:
change InitBaseClient() to
if ($Server::Dedicated)
InitDedicated;
else
InitBaseClient();
/server/initialize.cs
just before InitServer function..add,
$pref::Master0 = "2:master.garagegames.com:28002";
$Pref::Server::ConnectionError = "You do not have the correct version of 3DGPAI1 client or the related art need to play on this server. This is the server for Chapter 6. Please check that chapter for directions.";
$Pref::Server::FloodProtectionEnabled = 1;
$Pref::Server::Info = "3D Game Programming All-In-One by Kenneth C. Finney.";
$Pref::Server::MaxPlayers = 64;
$Pref::Server::Name = "3DGPAI1 Book - Chapter 6 Server";
$Pref::Server::Password = "";
$Pref::Server::Port = 28000;
$Pref::Server::RegionMask = 2;
$Pref::Server::TimeLimit = 20;
$Pref::Net::LagThreshold = "400";
$pref::Net::PacketRateToClient = "10";
$pref::Net::PacketRateToServer = "32";
$pref::Net::PacketSize = "200";
$pref::Net::Port = 28000;
add the following lines in the beginning of initServer() function .
$Server::GameType = "3DGPAI1";
$Server::MissionType = "Emaga6";
$Server::Status = "Unknown";
I tried them and still have the problem.....
any one has some other solutions??
01/26/2006 (2:01 am)
I have seen some scripts on a book regarding initializing dedicated server.But I am not clear with it. It says something like this....
in client/init.cs:
change InitBaseClient() to
if ($Server::Dedicated)
InitDedicated;
else
InitBaseClient();
/server/initialize.cs
just before InitServer function..add,
$pref::Master0 = "2:master.garagegames.com:28002";
$Pref::Server::ConnectionError = "You do not have the correct version of 3DGPAI1 client or the related art need to play on this server. This is the server for Chapter 6. Please check that chapter for directions.";
$Pref::Server::FloodProtectionEnabled = 1;
$Pref::Server::Info = "3D Game Programming All-In-One by Kenneth C. Finney.";
$Pref::Server::MaxPlayers = 64;
$Pref::Server::Name = "3DGPAI1 Book - Chapter 6 Server";
$Pref::Server::Password = "";
$Pref::Server::Port = 28000;
$Pref::Server::RegionMask = 2;
$Pref::Server::TimeLimit = 20;
$Pref::Net::LagThreshold = "400";
$pref::Net::PacketRateToClient = "10";
$pref::Net::PacketRateToServer = "32";
$pref::Net::PacketSize = "200";
$pref::Net::Port = 28000;
add the following lines in the beginning of initServer() function .
$Server::GameType = "3DGPAI1";
$Server::MissionType = "Emaga6";
$Server::Status = "Unknown";
I tried them and still have the problem.....
any one has some other solutions??
#5
So I fix it by disable its excutation in example/creator/main.cs and now the Torque can run as Dedicated server.
Pls help.
01/26/2006 (2:50 am)
At the moment I only known the problem is in example/creator/ui/GuiEditorGui.gui fileSo I fix it by disable its excutation in example/creator/main.cs and now the Torque can run as Dedicated server.
Pls help.
#6
03/02/2006 (2:25 am)
Thanks! this actually works. The dedicated server should not need the GuiEditor anyway. Am I correct?
#7
03/02/2006 (4:06 am)
I'm not sure but if you don't execute the GuiEditorGui, so you can not use the Gui Editor to make your own gui. That is the thing I know.
#8
Simply change the exec order of the .gui files in the creator/main.cs
For example:
// Gui's
exec("./ui/GuiEditorGui.gui");
exec("./ui/creatorProfiles.cs");
exec("./ui/InspectDlg.gui");
Then, everything should work fine.
04/29/2006 (7:41 am)
In order to overcome this problem;Simply change the exec order of the .gui files in the creator/main.cs
For example:
// Gui's
exec("./ui/GuiEditorGui.gui");
exec("./ui/creatorProfiles.cs");
exec("./ui/InspectDlg.gui");
Then, everything should work fine.
Torque Owner BigPapa
function onNeedRelight() { }However, does it work if you run the game normally as opposed to dedicated?