That blog does not exist

Game Development Community

Connect() not working anymore?

by Josef Jahn · in Torque Game Engine · 08/23/2003 (2:07 pm) · 5 replies

Hi all,


It looks like in the current Torque HEAD, connect() doesn't exist anymore. Does anyone out there use HEAD and has multiplayer running at all? Did I miss something?

#1
08/23/2003 (2:59 pm)
Lan games show up in the server selection gui... so you don't need connect().
#2
08/23/2003 (5:35 pm)
There's a new function to connect. Oh yes.

You have to create a new GameConnection and then call its connect method.
#3
08/23/2003 (9:55 pm)
I see... I asked because even the torque demo calls connect(), which doesn't exist.

@Ben: Do you have a snippet - or is the demo app going to be updated soon anyway?
#4
08/23/2003 (11:51 pm)
The demo app... works fine?
#5
08/24/2003 (1:05 am)
Heh, you're right.
Still, I added this function for my own convenience ;)

Quote:
function connect(%address)
{
%conn = new GameConnection(ServerConnection);
%conn.setConnectArgs($pref::Player::Name);
%conn.setJoinPassword($Client::Password);
%conn.connect(%address);
}