Game Development Community

Broken local connections

by James \"Corvidae\" Williams · in Torque Game Engine · 09/22/2002 (8:31 pm) · 3 replies

I stopped messing with Torque for a couple weeks. When I came back and tried to start working on it again, I get these errors when trying to start a local game:

---

*** Mission loaded
fps/client/ui/startMissionGui.gui (153): Unknown command setConnectArgs.
Object ServerConnection(1366) GameConnection -> NetConnection -> SimGroup -> SimSet -> SimObject
fps/client/ui/startMissionGui.gui (154): Unknown command setJoinPassword.
Object ServerConnection(1366) GameConnection -> NetConnection -> SimGroup -> SimSet -> SimObject
fps/client/ui/startMissionGui.gui (155): Unknown command connectLocal.
Object ServerConnection(1366) GameConnection -> NetConnection -> SimGroup -> SimSet -> SimObject

---

I've gone through and replaced all the scripts with the default ones, recompiled them all with Tribal IDE, rebuilt the engine, and even tried a fresh build of the 1.1.2 release, all to no avail. Does anyone have any ideas on what might have messed things up, and perhaps more importantly, how to fix it?

#1
09/22/2002 (9:48 pm)
i had a simular thing happen to me, only i was trying to run and older mod on the latest head,(altho yours sounds opposite) ijust did the following to correct the errors:

· Changed script in client\ui\startMissionGui.gui. 9-22-2

(Otherwise older mod versions won't work)

function SM_StartMission()

{

%id = SM_missionList.getSelectedId();

%mission = getField(SM_missionList.getRowTextById(%id), 1);



if ($pref::HostMultiPlayer)

%serverType = "MultiPlayer";

else

%serverType = "SinglePlayer";



createServer(%serverType, %mission);

localConnect($pref::Player::Name);

%conn = new GameConnection(ServerConnection);

RootGroup.add(ServerConnection);

%conn.setConnectArgs($pref::Player::Name);

%conn.setJoinPassword($Client::Password);

%conn.connectLocal();

}

//////it was like:

function SM_StartMission()
{
%id = SM_missionList.getSelectedId();
%mission = getField(SM_missionList.getRowTextById(%id), 1);

if ($pref::HostMultiPlayer)
%serverType = "MultiPlayer";
else
%serverType = "SinglePlayer";

createServer(%serverType, %mission);
localConnect($pref::Player::Name);
}

Course i could be way off here
#2
09/23/2002 (8:45 am)
Huh, that appears to have worked. Thanks a bunch, Ace! :)
#3
09/23/2002 (5:40 pm)
cool. glad to help. :)