Bug: server selection in joinServerGui.gui
by Vis · in Torque Game Engine · 11/18/2005 (8:42 am) · 2 replies
I have tried to find any reference to this bug and have found nothing, please forgive me if this is a duplicate post.
I am using Torque 1.3
While testing a new master server, I found that the default Torque client failed to connect to the selected server. (I have three running) I tracked the problem down to the following script in \example\starter.fps\client\ui\joinServerGui.gui:
line 348
Vis
I am using Torque 1.3
While testing a new master server, I found that the default Torque client failed to connect to the selected server. (I have three running) I tracked the problem down to the following script in \example\starter.fps\client\ui\joinServerGui.gui:
line 348
function JoinServerGui::join(%this)
{
cancelServerQuery();
%id = JS_serverList.getSelectedId();
// The server info index is stored in the row along with the
// rest of displayed info.
[b]%index = getField(JS_serverList.getRowTextById(%id),6);[/b] <-- 6 should be 3
if (setServerInfo(%index)) {
%conn = new GameConnection(ServerConnection);
%conn.setConnectArgs($pref::Player::Name);
%conn.setJoinPassword($Client::Password);
%conn.connect($ServerInfo::Address);
}
}After making this change the client behaved as expected, hope this helps.Vis
Torque Owner Vis
function JoinServerGui::refresh(%this) { cancelServerQuery(); %id = JS_serverList.getSelectedId(); // The server info index is stored in the row along with the // rest of displayed info. [b] %index = getField(JS_serverList.getRowTextById(%id),6);[/b] if (setServerInfo(%index)) { querySingleServer( $ServerInfo::Address, 0 ); } }vis