Update: fixed! -connect command line argument broke.
by Gregory "Centove" McLean · in RTS Starter Kit · 11/18/2004 (4:32 am) · 4 replies
In client/init.cs in the initClient function you have this small chunk of non-functional code:
This don't work as there is no 'connect' function to be found anywhere (same with the torque example as well)
However,
Gets this functional.
// Start up the main menu... this is separated out into a
// method for easier mod override.
if ($JoinGameAddress !$= "") {
loadMainMenu();
connect($JoinGameAddress);
}
elseThis don't work as there is no 'connect' function to be found anywhere (same with the torque example as well)
However,
if ($JoinGameAddress !$= "") {
// If we are instantly connecting to an address, load the
// main menu then attempt the connect.
loadMainMenu();
%conn = new RTSConnection(ServerConnection);
%conn.setConnectArgs($pref::Player::Name);
%conn.setJoinPassword($Client::Password);
%conn.connect($JoinGameAddress);
}
else {Gets this functional.
Associate Kyle Carter