I am using Martian Dice as an example as there are some similarities to what I need. At this point I am only trying to get the game to start without errors after the "game" does the initial of rolling 3 of the 12 starting dice. No html, no js, no css yet.
All work in php so far.
I am using the "Check Project" and narrowed the issue somewhere in my sutakku.game.php class.
/*uncommenting this fails, dont know why
if (!self::isPlayerZombie(self::getActivePlayerId())) {
self::throwDice();
$dice_thrown = self::getCurrentRoundDice();
self::notifyAllPlayers("diceThrown", '', array(
'dice' => $dice_thrown,
'is_reroll' => false,
));
*/
I tested the isPlayerZombie function by itself and it doesn't fail, so it must be in the throwDice or getCurrentRoundDice functions. Fining this very tedious and frustrating, but trying not to throw in the towel.
I haven't figured out how to debug other then trial and error rerunning. I see the PHPmyAdmin would probably be used to view the database as you are testing. That will come in handy at some point.
Current Error with that commented out above, but i need to resolve the above first.
Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): JSON_ERROR_SYNTAX HERE{"status":1,"data":true}
I can make myself available on Discord if anyone has time to help me move forward.
thank you