persistent 'gameStateChange' Javascript error
Posted: 26 April 2020, 20:43
I am developing a game where the player must play one action, the may play additional actions or end his turn.
My problem is that once the required action is complete and the player proceeds to the 'chooseOptionalActions' game state, I am always getting the following error:
Javascript error:
During notification gameStateChange
undefined
no_stack_avail
It makes no difference what primary action path the player took to get there.
I have checked that every possible action available in the states.inc.php has a matching function in mygame.action.php.
I have checked that every possible action function available in the mygame.action.php has a matching function in mygame.game.php.
I have checked that every possible 'notify' function in mygame.game.php maps to a valid notify subscription and function in mygame.js.
I have checked that every state in the states.inc.php that I have specified to 'updateGameProgression' returns a unique integer from the 'getGameProgression' function in mygame.action.php.
What have I missed? Why am I getting that error?
~cmgames
My problem is that once the required action is complete and the player proceeds to the 'chooseOptionalActions' game state, I am always getting the following error:
Javascript error:
During notification gameStateChange
undefined
no_stack_avail
It makes no difference what primary action path the player took to get there.
I have checked that every possible action available in the states.inc.php has a matching function in mygame.action.php.
I have checked that every possible action function available in the mygame.action.php has a matching function in mygame.game.php.
I have checked that every possible 'notify' function in mygame.game.php maps to a valid notify subscription and function in mygame.js.
I have checked that every state in the states.inc.php that I have specified to 'updateGameProgression' returns a unique integer from the 'getGameProgression' function in mygame.action.php.
What have I missed? Why am I getting that error?
~cmgames