Direct Connect?
by Jace · in Torque Game Engine · 04/25/2006 (6:36 pm) · 2 replies
Hi guys I have a small group of friends that like to test my models and such I was wondering if there is a way to bypass the master server and directly connect IE.
Name:
| Connect | Cancel |
That way it bypasses the master server and directly connects to the IP I specify. I know this is doable but I just can't figure it out.
Jace
Name:
| Connect | Cancel |
That way it bypasses the master server and directly connects to the IP I specify. I know this is doable but I just can't figure it out.
Jace
About the author
#2
04/25/2006 (7:18 pm)
Thanks for this. I really don't follow you on the button creation. I know how to make a button and make it input a command but thats just about it.
Torque 3D Owner Peter Simard
Default Studio Name
function JoinServerGui::doConnect(%this, %ip) { if(%ip !$= "") { //trace(1); echo("CONNECTING TO" @ %ip); %conn = new GameConnection(ServerConnection); %passcrc = getStringMD5($pref::Player::password); // @ "" forces number it to string %conn.setConnectArgs($pref::Player::userName, %passcrc); %conn.connect(%ip); } }Just add a new text box and button. Have the button call that function with the textboxs value as the IP