Pseudo-error at game start

Game development with Board Game Arena Studio
Post Reply
User avatar
alkinor
Posts: 8
Joined: 15 May 2014, 17:40

Pseudo-error at game start

Post 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 !?
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Pseudo-error at game start

Post 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)
User avatar
alkinor
Posts: 8
Joined: 15 May 2014, 17:40

Re: Pseudo-error at game start

Post by alkinor »

That's it !
I was doing a call to getNextPlayerTable() before table initialization.

Thank you !
Post Reply

Return to “Developers”