Game Development Community

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:

// Start up the main menu... this is separated out into a
   // method for easier mod override.

   if ($JoinGameAddress !$= "") {
      loadMainMenu(); 
      connect($JoinGameAddress);
    }
    else

This 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.

#1
11/18/2004 (10:44 am)
Jinkies, good catch. In our repo now. Will be in the next update.
#2
11/18/2004 (2:30 pm)
As the thought of Ben in an orange sweater and skirt comes to mind.... *shudder*
#3
11/18/2004 (3:16 pm)
Down Scooby...
#4
09/25/2007 (3:45 pm)
Notice: This bug is already fixed on stock RTS