If you need anything you know where I am.
function GameConnection::connectserverPortal(%client, %ID){ //ConnectToTheFollowingPrefs Example: connect($ServerPortalIP[%ID],$ServerPortalPassword[%ID],$ServerPortal[%ID]);//Some code I tried using.%id = JS_serverList.getSelectedId();%index = getField(JS_serverList.getRowTextById(%id),3);JS_serverList.setSelectedByID(%index); JoinServerGUI.Join();
$ServerPortal[1] = "Test";$ServerPortalIP[1] = "192.168.1.100";$ServerPortalPassword[1] = "Password";
function clientcmdJoin_server(%id){//join server stuff here}
You can't call client functions like JoinServerGUI.join() from the server.You'll need to make a clientcmd and have it be called.Code: [Select]function clientcmdJoin_server(%id){//join server stuff here}then call the function with commandtoclient.
I think it'd be best for you to do a trace on the client when they connect to a server to see what commands are called. It's possible you could hijack the Join IP gui but this still requires client-side code.It may also be quite an interesting challenge to make the transition to a new server seamlessly without having to show the client all the disconnect stuff.
Really wonder where this went...