Unable to find object: ServerConnection
by James Auld · in Torque Game Engine · 05/26/2006 (10:25 am) · 2 replies
Hi all -
I'm connecting my client app to the server by using the -connect command line arg. My tab key isn't working to switch 1st/3rd, and in my console.log I found:
game/client/scripts/default.bind.cs (194): Unable to find object: 'ServerConnection' attempting to call function 'setFirstPerson'
Is this becuase I'm using the -connect command line arg? If so, any ideas how to make this work?
Thanks in advance!
James
I'm connecting my client app to the server by using the -connect command line arg. My tab key isn't working to switch 1st/3rd, and in my console.log I found:
game/client/scripts/default.bind.cs (194): Unable to find object: 'ServerConnection' attempting to call function 'setFirstPerson'
Is this becuase I'm using the -connect command line arg? If so, any ideas how to make this work?
Thanks in advance!
James
#2
05/29/2006 (11:07 pm)
ServerConnection is on the client side, and it's the client's conneciton to the server. It is usually called like:%conn = new GameConnection(ServerConnection)Do a search for "new GameConnection" in your scripts, and ensure that you pass the object name "ServerConnection", it is the convention. Yeah it is probably cause you are using -connect and that option, when it goes about to create the GameConnection, isn't naming the object. Simple enough to fix.
Torque Owner James Auld