rem:  g_GameAttributes.mapFile = mapName; 
add:       server.onClientConnect=function (event) { console.write("Client connected.");         };  server.onClientDisconnect=function (event) { console.write("Client disconnected."); }; 
context: function initMPSessionHost(playerName, mapName){        GUIObjectHide("pregame_mp_ip");        GUIObjectHide("pregame_subwindow_bkg");        var server = createServer();                // Set the map to use        g_GameAttributes.mapFile = mapName;                // Set basic server options, such as:        // server.port = 20595; // Default is 20595 - you can also explicitly set to -1 for default port        server.serverPlayerName=playerName;        server.serverName=playerName+"'s Server";        server.welcomeMessage="Welcome to "+server.serverName;        // Actually start listening for connections.. This should probably not be        // done until there's been a dialog for filling in the previous options ;-)        var success = server.open();        if(!success) {                messageBox(400, 200, "Failed to start server. Please review the logfile for more information on the problem.", "Problem", 2, new Array(), new Array());        }        server.onChat=function (event) {                messageBox(400, 200, event.sender+" says: "+event.message, "Chat Message", 2, new Array(), new Array());        };        // Need "waiting for more players to join and start game" code here        btCaptions = new Array("OK");        btCode = new Array("startLoadingScreen();");        messageBox(400, 200, "Waiting for clients to join - Click OK to start the game.", "Ready", 0, btCaptions, btCode);}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/e07bf2ade0b930ea8142de6062f6c6d751a53f7c/functions_pregame_mp.js/buggy/binaries/data/mods/official/gui/test/functions_pregame_mp.js