Game Development Community

Dedicated server?

by Scott Coursey · in Torque Game Engine · 01/16/2007 (9:38 pm) · 4 replies

If anyone has any insight, I'd really appreciate it.

I've done a build of TGE 1.5 on my PowerBook (OS X 10.4.8) and my PowerMac (OS X 10.4.8 Server). I can get the server to run as dedicated. It talks to the GG master server and all. I can get the client to run in standalone mode. I can even get the client to find the server on my LAN and through the GG master server.

My problem is, I can't get the mission loaded once I connect to my server.

On the server side, my log says:

...
*** LOADING MISSION: starter.fps/data/missions/stronghold.mis
*** Stage 1 load
*** Stage 2 load
Executing starter.fps/data/missions/stronghold.mis.
*** Mission loaded
Engine initialized...
Sending heartbeat to master server [IP:69.64.50.217:28002]
Received info request from a master server [IP:69.64.50.217:28002].
Got Connect challenge Request from IP:10.0.0.7:54028
Got Connect Request
Connect request from: IP:10.0.0.7:54028
CADD: 1216 IP:10.0.0.7:54028
*** Sending mission load to client: starter.fps/data/missions/stronghold.mis

Then, after killing the client, the following is produced:

...
Client 1216 disconnected.
Issuing Disconnect packet.
CDROP: 1216 IP:10.0.0.7:54028
Resetting server defaults...
Missing file: common/defaults.cs!
Compiling common/prefs.cs...
creating path common/prefs.cs.dso
creating path common/
Loading compiled script common/prefs.cs.
*** ENDING MISSION
*** LOADING MISSION: starter.fps/data/missions/stronghold.mis
*** Stage 1 load
...

Now, for the client side. This is what's given up to the connect to server (looking for it on the LAN):

...
*** Load Main Menu
ServerQuery:  start Querying LAN servers 0
LAN server ping: IP:Broadcast:28000...
Pinging Server IP:10.0.0.6:28000 (3)...
ServerQuery:  ping Waiting for lan servers... 0.5
ServerQuery:  query Querying servers: 1 left... 0.5
Querying Server IP:10.0.0.6:28000 (3)...
ServerQuery:  query Querying servers: 0 left... 1
ServerQuery:  done One server found. 1
Server query canceled.
Adding a pending connection
Sending Connect challenge Request
Got Connect challenge Response
Sending Connect Request

Then, killing the client:

Connection established 1503
Exporting client prefs
creating path starter.fps/client/prefs.cs
Exporting client config
creating path starter.fps/client/config.cs
Exporting server prefs
creating path starter.fps/server/prefs.cs
creating path starter.fps/server/banlist.cs
Exporting client prefs
...

Does anyone know how to get a Mac dedicated server to work properly? I certainly hope so.

#1
01/17/2007 (12:00 pm)
I tried this on my Mac:

-dedicated -mission starter.fps/data/missions/stronghold.mis

...and it works fine.

EDIT: Let me explain more. First, I made sure main.cs had "starter.fps" as the default game. Then, I started the stock Torque OSX Demo app, as a client. Then, from the command line...


/example/Torque\ Demo\ OSX.app/Contents/MacOS/Torque\ Demo\ OSX -dedicated -mission starter.fps/data/missions/stronghold.mis


...and the server started. In the client, I was able to see the server on the Master server, and in the LAN list. I joined it on the LAN and it ran just fine.
#2
01/17/2007 (1:47 pm)
I did exactly what you said, and nothing happened. This is from a fresh build with no changes to the code.
#3
01/17/2007 (6:28 pm)
@Rob: Did you use separate computers or the same one? I can run the dedicated server on my laptop and the run a client from the same box. It works just fine. It failed when I put the server on a different computer.
#4
01/17/2007 (6:44 pm)
This is turning out to be an even more annoying problem than I thought. I have successfully brought the dedicated server up on my laptop and connected in with a Windows client. I also brought the dedicated server up on the Windows box and connected my Mac to it. I tried all the variations and they all worked.

The only thing that kept failing was bringing up the dedicated server on my OS X SERVER machine. A pity. I really need to see why that is...