Manual connection to server bypassing LAN and MasterServer lists
by Kenneth Eves · in Torque 3D Beginner · 09/26/2012 (2:53 pm) · 0 replies
I'm looking for a method that can be typed into console or embedded in a GUI (or script called from a GUI).
I'd like to be able to specify machine name and port number and have the client establish a connection and enter the mission.
something like: connect(server1.xap.net,28010);
I'm guessing other parameters like name might be needed.
Just hoping someone can point me into the right section of code.
----------------------------------------------------
I'm guessing it would look sort of like this except local it would be to a remote dedicated.
%conn = new GameConnection( ServerConnection );
RootGroup.add( ServerConnection );
%conn.setConnectArgs( $pref::Player::Name );
%conn.setJoinPassword( $Client::Password );
%result = %conn.connectLocal();
-------------------------------------------------------
Think I found it:
Canvas.setContent("LoadingGui");
LoadingProgress.setValue(1);
LoadingProgressTxt.setValue("WAITING FOR SERVER");
Canvas.repaint();
%conn = new GameConnection(ServerConnection);
%conn.setConnectArgs($pref::Player::Name);
%conn.setJoinPassword($Client::Password);
%conn.connect($ServerInfo::Address);
I'd like to be able to specify machine name and port number and have the client establish a connection and enter the mission.
something like: connect(server1.xap.net,28010);
I'm guessing other parameters like name might be needed.
Just hoping someone can point me into the right section of code.
----------------------------------------------------
I'm guessing it would look sort of like this except local it would be to a remote dedicated.
%conn = new GameConnection( ServerConnection );
RootGroup.add( ServerConnection );
%conn.setConnectArgs( $pref::Player::Name );
%conn.setJoinPassword( $Client::Password );
%result = %conn.connectLocal();
-------------------------------------------------------
Think I found it:
Canvas.setContent("LoadingGui");
LoadingProgress.setValue(1);
LoadingProgressTxt.setValue("WAITING FOR SERVER");
Canvas.repaint();
%conn = new GameConnection(ServerConnection);
%conn.setConnectArgs($pref::Player::Name);
%conn.setJoinPassword($Client::Password);
%conn.connect($ServerInfo::Address);
About the author
<3 TGE/A Quickly becoming a fan of T3D 1.2