Hi
I'm developing Templari, and it's all been going great, but I made a bunch of changes to add a variant and now I'm getting the following error:
But it isn't being thrown during an 'activeplayer' state!
Log snippet:
Relevant states:
So as you can see:
state 33 (and 32) are 'game' states
stCardSawpCleanUp is the action of state 33
This is the only place stCardSawpCleanUp is called, and therefore the only way line 751 is used.
I'm obviously missing something, has anyone seen this before? any help would be appreciated.
I'm developing Templari, and it's all been going great, but I made a bunch of changes to add a variant and now I'm getting the following error:
Code: Select all
Impossible to change active player during activeplayer type stateLog snippet:
Code: Select all
25/09 21:50:40 [error] [T300095] [84.92.58.162] [2336003/HappyCuttlefish1] Unexpected exception: Impossible to change active player during activeplayer type state#
#0 /var/tournoi/release/games/templari/999999-9999/templari.game.php(751): Gamestate->changeActivePlayer('2336002')#
#1 /var/tournoi/release/tournoi-210922-1031-gs/www/game/module/table/gamestate.game.php(469): Templari->stCardSawpCleanUp()#
#2 /var/tournoi/release/tournoi-210922-1031-gs/www/game/module/table/gamestate.game.php(365): Gamestate->jumpToState(33)#
#3 /var/tournoi/release/games/templari/999999-9999/templari.game.php(558): Gamestate->nextState('cleanOrDraw')#
#4 /var/tournoi/release/tournoi-210922-1031-gs/www/game/module/table/gamestate.game.php(469): Templari->stPreAuctionChoiceNext()#
#5 /var/tournoi/release/tournoi-210922-1031-gs/www/game/module/table/gamestate.game.php(365): Gamestate->jumpToState(32)#
#6 /var/tournoi/release/games/templari/999999-9999/templari.game.php(413): Gamestate->nextState('cardSwapChoiceN...')#
#7 /var/tournoi/release/games/templari/999999-9999/templari.action.php(78): Templari->cardSwapSelect('4', '18')#
#8 /var/tournoi/release/tournoi-210922-1031-gs/www/include/webActionCore.inc.php(189): action_templari->cardSwapSelect()#
#9 /var/tournoi/release/tournoi-210922-1031-gs/www/index.php(259): launchWebAction('templari', 'action_templari', 'cardSwapSelect', false, false, NULL, true, false)#
#10 {main}hCode: Select all
32 => array(
"name" => "cardSawpChoiceNext",
"description" => "",
"type" => "game",
"action" => "stPreAuctionChoiceNext",
"transitions" => array( "preAuctionChoice" => 31, "cleanOrDraw" => 33 )
),
33 => array(
"name" => "cardSawpCleanUp",
"description" => "",
"type" => "game",
"action" => "stCardSawpCleanUp",
"transitions" => array( "cardSwapPrep" => 30, "mainAuctionDraw" => 50, "finalScoring" => 90 )
),So as you can see:
state 33 (and 32) are 'game' states
stCardSawpCleanUp is the action of state 33
This is the only place stCardSawpCleanUp is called, and therefore the only way line 751 is used.
I'm obviously missing something, has anyone seen this before? any help would be appreciated.