7 Commits

Author SHA1 Message Date
Jyrki Vesterinen
6016bdf2f2 Fix two bugs causing multiplayer tests to fail
After finding a game, in some circumstances the join script got the
leader select dialog after only yielding once. Because the loop that
checks when the dialog appears was a repeat-until loop and not a while
loop, it was always run at least once, making the script yield even when
the dialog was already shown. That caused the dialog to close with a
"not shown" status that resulted in exiting the game.

MP tests run two games, not one. A MP wait screen is shown between the
games to the joining player (but not to the host, see
src/game_initialization/playcampaign.cpp:352 ). The join script ended up
quitting between the games. Fixed by simply duplicating code to make the
join script play two games.
2016-08-31 23:45:26 +03:00
Jyrki Vesterinen
88ca728080 Skip the GUI2 FLG dialog in the automatic multiplayer test 2016-08-31 23:45:26 +03:00
Celtic Minstrel
20b7e5b757 MP Test: Give up after 100 tries
This allows the test script to terminate even if
something went wrong, such as a server crash.
2016-07-17 17:21:13 -04:00
Chris Beck
7a1e636569 add log function to host, join lua scripts 2014-12-19 19:47:29 -05:00
Chris Beck
60bb254f69 try to make join.lua more robust against missed callbacks 2014-12-19 19:47:25 -05:00
Chris Beck
7e5c599e79 make the titlescreen phase more reliable for host.lua, join.lua 2014-12-19 19:47:25 -05:00
Chris Beck
7aedfad426 add test bots
The test bots are able to host and join a game together on a local
server. This is still experimental, for instance they cannot
actually leave, and the controllers are human because the host
cannot yet configure them to be AI.
2014-12-19 19:47:24 -05:00