Anti-disconnect addition to the gamesetup screen. Also fixes typo in the lobby bot README.

This was SVN commit r14753.
This commit is contained in:
scythetwirler 2014-02-16 06:22:16 +00:00
parent be881dc420
commit f92a46330d
2 changed files with 10 additions and 1 deletions

View File

@ -600,6 +600,8 @@ function cancelSetup()
}
}
var lastXmppClientPoll = Date.now();
function onTick()
{
// First tick happens before first render, so don't load yet
@ -625,6 +627,13 @@ function onTick()
handleNetMessage(message);
}
}
// If the lobby is running, wake it up every 10 seconds so we stay connected.
if (Engine.HasXmppClient() && (Date.now() - lastXmppClientPoll) > 10000)
{
Engine.RecvXmppClient();
lastXmppClientPoll = Date.now();
}
}
// Called when user selects number of players

View File

@ -66,7 +66,7 @@ If you would like to run the leaderboard database,
$ sudo apt-get install sqlalchemy
Then execute the following command to setup the database.
$ ./source/tools/XpartaMuPP/LobbyRankings.py
$ ./source/tools/XpartaMuPP/LobbyRanking.py
Execute the following command to run the bot with default options
$ ./source/tools/XpartaMuPP/XpartaMuPP.py