Hi, Im trying to fix my code for starting a multiplayer game. Loading a dedicated server shows up fine on the servers page, but when I load it normally, I can still get into the game, but other people on my LAN can't see it. Any help is much appreciated, here are the two functions for comparison. Thanks!
Code:
function bool LoadMap(GUIComponent Sender)
{
local string FullURL, FirstMap;
FirstMap = MyMapList.List.Get();
FullURL = FirstMap;
log("Sending [open"@FullURL$"] to the console");
Console(Controller.Master.Console).ConsoleCommand("start"@FullURL);
Controller.CloseAll(false);
return true;
}
function bool LoadMap_Ded(GUIComponent Sender)
{
local string FullURL, FirstMap;
FirstMap = MyMapList.List.Get();
FullURL = FirstMap;
log("Sending [open"@FullURL$"] to the console");
Console(Controller.Master.Console).ConsoleCommand("relaunch"@FullURL@"-server -lanplay -mod=MyMod");
Controller.CloseAll(false);
return true;
}