This network scenario loads and runs fine when I run it from the 'scenario' menu. The network slot switches to AI as it should.
When I start a game from the host menu, the game loads, and then crashes a few seconds after it starts.
And when started from the host menu, I notice on the 'loading' screen that it is loading a 3rd faction - Persian.
[2016-06-18 11:46:17] Runtime Error information:
======================================================
In [/home/andy/src/megaglest-3.12.0/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5862] Error detected: signal 11:
Stack Trace:
megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x7f383855eeb2] line: 0
megaglest:Glest::Game::handleSIGSEGV(int)address [0x7f383855f223] line: 0
/lib/x86_64-linux-gnu/libc.so.6:()address [0x7f38338500e0] line: 0
megaglest:Glest::Game::Game::initCamera(Glest::Game::Map*)address [0x7f3838428b13] line: 0
megaglest:Glest::Game::Game::init(bool)address [0x7f383846d345] line: 0
megaglest:Glest::Game::Program::setState(Glest::Game::ProgramState*, bool)address [0x7f383858036a] line: 0
megaglest:Glest::Game::MenuStateCustomGame::PlayNow(bool)address [0x7f3838608432] line: 0
megaglest:Glest::Game::MenuStateCustomGame::mouseClick(int, int, Shared::Platform::MouseButton)address [0x7f383861699b] line: 0
megaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x7f38385628f1] line: 0
megaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0x7f3838a3ac84] line: 0
megaglest:Shared::Platform::Window::handleEvent()address [0x7f3838a3b71d] line: 0
megaglest:Glest::Game::glestMain(int, char**)address [0x7f3838572af2] line: 0
megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7f38385770f2] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f383383cb45] line: 0
megaglest:()address [0x7f38383424ca] line: 0
<?xml version="1.0" standalone="yes" ?>
<scenario>
--chess_01 / A MegaGlest ( https://megaglest.org/ ) 1 vs 1 network scenario
--Rev 2016.06.16-1
--https://github.com/andy5995/MegaGlest_scenarios_AA
--2 player chess with Indian faction on a 64x64 map
--Your shaman must survive
--By Andy Alt
--CC-BY-SA
<difficulty value="4"/>
<players>
<player control="human" faction="indian" team="1"/>
<player control="network" faction="indian" team="2"/>
--the other 2 players can be observers. No units are created for them.
<player control="network" faction="tech" team="8"/>
<player control="network" faction="tech" team="8"/>
</players>
<map value="forest_for_four"/>
<tileset value="autumn"/>
<tech-tree value="megapack"/>
<default-resources value="false"/>
<default-units value="false"/>
<default-victory-conditions value="false"/>
<fog-of-war value="false"/>
<scripts>
<global>
KingID = {}
</global>
<startup>
--function wait(seconds)
-- local start = os.time()
-- repeat until os.time() > start + seconds
--end
--setDisplayText('Your fire golem must survive')
--wait(7)
--clearDisplayText()
theKing='shaman'
showMessage('Intro' , 'chess_01')
NumOfStickfighters=8
NumOfFireArchers=2
NumOfAxeThrowers=2
NumOfHorsemen=2
NumOfThunderbirds=1
for playerNum=0, 1 do
for i=1, NumOfStickfighters do
createUnit('stickfighter', playerNum, startLocation(playerNum))
end
end
for playerNum=0, 1 do
for i=1, NumOfFireArchers do
createUnit('fire_archer', playerNum, startLocation(playerNum))
end
end
for playerNum=0, 1 do
for i=1, NumOfHorsemen do
createUnit('horseman', playerNum, startLocation(playerNum))
end
end
for playerNum=0, 1 do
for i=1, NumOfAxeThrowers do
createUnit('axe_thrower', playerNum, startLocation(playerNum))
end
end
for playerNum=0, 1 do
for i=1, NumOfThunderbirds do
createUnit('thunderbird', playerNum, startLocation(playerNum))
end
end
for playerNum=0, 1 do
createUnit(theKing, playerNum, startLocation(playerNum))
--assign variable to theKing to see who won later
KingID[playerNum +1]=lastCreatedUnit()
end
</startup>
<unitDied>
--thanks to titi of megaglest.org for helping me determine a winner
if KingID[2]==lastDeadUnit() then
setPlayerAsWinner(0)
endGame()
end
if KingID[1]==lastDeadUnit() then
setPlayerAsWinner(1)
endGame()
end
</unitDied>
</scripts>
</scenario>