Page 1 of 1

getPrivateState does not return null?

Posted: 18 May 2025, 19:24
by JudgeWhyMe
Hello

The documentation indicates
$this->gamestate->getPrivateState($playerId)
This return the private state or null if not initialized or not in private state
However, when I tried to call the getPrivateState method on a player who is not in a private state (in the getAllDatas method), I have the following error:
Warning: Undefined array key 2413802 in /var/tournoi/release/tournoi-250505-1448-gs/www/Bga/GameFramework/GamestateMachine.php on line 1305
2413802 is the $playerId

Is it normal?

Thanks

Re: getPrivateState does not return null?

Posted: 19 May 2025, 06:46
by thoun
It is not. It will be fixed in the next release.