Page 1 of 1

Pseudo-error at game start

Posted: 27 January 2021, 15:23
by alkinor
Hello !

I've a pseudo-problem when starting my game with "Express start" button :

Code: Select all

Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): JSON_ERROR_SYNTAX
Notice: Undefined variable: player_id in /var/tournoi/release/tournoi-210121-0943-gs/www/game/module/table/table.game.php on line 1199
{"status":1,"data":true}

Code: Select all

Unexpected error: Invalid player number for this game: 1
Now, if I do "F5" and "Express start" button again, everything works perfectly...

Any ideas ?
I wonder how my code affects player_id in /www/game/module/table/table.game.php !?

Re: Pseudo-error at game start

Posted: 28 January 2021, 00:02
by Victoria_La
You did not initizlize player table before calling some player table functions, usually you should leave code that deal with that completely
untocuched, and only your code AFTER whatever template were doing (talking about setupNewGame)

Re: Pseudo-error at game start

Posted: 29 January 2021, 15:52
by alkinor
That's it !
I was doing a call to getNextPlayerTable() before table initialization.

Thank you !