Code is currently in ALPHA state and yesterday could start game no issues. This morning when starting up I get
Unexpected error: Propagating error from gameserver 1 (method: createGame): Fatal error during numbabeta setup: Unknown gamestate label: numbaValue (reference: GS1 07/07 00:05:15) (reference: GS0 07/07 00:05:15)
In my Game.php I have
and
If I remove the line of code "$this->setGameStateValue('numbaValue', random_int(1, 6));" then game starts up, reinstate it and I get
Unexpected error: Propagating error from gameserver ...
Very confusing...
Any suggestions thoughts greatly appreciatted
Unexpected error: Propagating error from gameserver 1 (method: createGame): Fatal error during numbabeta setup: Unknown gamestate label: numbaValue (reference: GS1 07/07 00:05:15) (reference: GS0 07/07 00:05:15)
In my Game.php I have
Code: Select all
public function __construct()
{
parent::__construct();
$this->initGameStateLabels(
[
"numbaValue" => 0
]
);
Code: Select all
protected function setupNewGame($players, $options = [])
{
$this->playerCardsInHand->initDb(array_keys($players), initialValue: 0);
// Set the colors of the players with HTML color code. The default below is red/green/blue/orange/brown. The
// number of colors defined here must correspond to the maximum number of players allowed for the gams.
$gameinfos = $this->getGameinfos();
$default_colors = $gameinfos['player_colors'];
$query_values = [];
$this->setGameStateValue('numbaValue', random_int(1, 6));
Unexpected error: Propagating error from gameserver ...
Very confusing...
Any suggestions thoughts greatly appreciatted