Game Development Community

Torque Script Problem

by Tyler Stach · in Technical Issues · 01/02/2006 (5:35 pm) · 3 replies

I can't get the server to accept connections from the client, and its really getting annoying. I've been staring at the code for at least an hour now with no luck and little improvement. I'll post the part of the code where I think something's wrong. By the way - it's a singleplayer game with a "local" server.

Console:
Loading compiled script common/client/screenshot.cs.
Loading compiled script common/client/cursor.cs.
Loading compiled script common/client/help.cs.
Loading compiled script common/client/recordings.cs.

OpenAL Driver Init:

Loading compiled script control/client/keymap.cs.
Activating DirectInput...
keyboard0 input device acquired.
Loading compiled script control/client/client.cs.
Connect request from: IPX:xxxxxxxx:xx000A020000:633
CDROP: 1202 local
CDROP: 1201 IPX:xxxxxxxx:xx0036000000:1

*I press escape*

Shutting down the OpenGL display device...
Making the GL rendering context not current...
Deleting the GL rendering context...
Releasing the device context...
Destroying the window...
keyboard0 input device unacquired.
DirectInput deactivated.

Part of Server.cs
It never gets to the "client has entered the game!" part.

//-----------------------------------------------------------------------------
// STATIC GAME ENGINE - BETA VERSION
// CONTROL/SERVER/SERVER - VERSION 1.0.0
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// CALLED WHEN THE SERVER IS CREATED USING CREATESERVER()
//-----------------------------------------------------------------------------

function OnServerCreated()
{
   Exec("./players/maleavatar/datablock.cs");
}

//-----------------------------------------------------------------------------
// CALLED WHEN THE CLIENT HAS BEEN ACCEPTED BY THE SERVER
//-----------------------------------------------------------------------------

function GameConnection::OnClientEnterGame(%this)
{
   Echo("Client has entered the game!");
   %this.SpawnPlayer();
}

Part of client.cs
This, to my knowledge, works perfectly.

new GameTSCtrl( PlayerInterface )
{
   profile = "GuiContentProfile";
   noCursor = true;
};

%connection = new GameConnection(ServerConnection);
%connection.ConnectLocal();

#1
02/13/2006 (6:40 pm)
Are you behind an ISP firewall or broadband NAT router etc? Or are you just working on a LAN?

Is your OS firewall and security configured properly? And finally if you purchase TGE you get access to the private forums and much better search database and cool people to help.
#2
02/18/2006 (2:34 pm)
@Randy - LOCAL CONNECTION! There is no networking involved, right?
#3
02/20/2006 (10:58 am)
Do you get the same issue with the demo "starter.fps" ?