Zombie turn with new states classes php syntax error

Game development with Board Game Arena Studio
Post Reply
User avatar
AndrewB
Posts: 6
Joined: 02 April 2012, 14:16

Zombie turn with new states classes php syntax error

Post by AndrewB »

Anyone else experiencing this. I have migrated my project to the new states classes. But am seeing a server side syntax error when a player is kicked when they run out of time in realtime mode. My state zombie function doesn't do anything special, and I have the same error when kicking players from different states. Is it just my project?


ly_studio.js:1 Server syntax error: isrulunarpole/isrulunarpole/skipPlayersOutOfTime.html SyntaxError: Unexpected token '<' / <br />
<b>Fatal error</b>: Uncaught TypeError: substr(): Argument #1 ($string) must be of type string, false given in /var/tournoi/release/tournoi-251022-0915-gs/www/Bga/GameFramework/Old/APP_DbObject.php:601
Stack trace:
#0 /var/tournoi/release/tournoi-251022-0915-gs/www/Bga/GameFramework/Old/APP_DbObject.php(601): substr(false, 0, 128)
User avatar
thoun
Posts: 1619
Joined: 10 December 2020, 22:25

Re: Zombie turn with new states classes php syntax error

Post by thoun »

I played a game of isrulunarpole on Studio (3 players), made 1 of them quit the game, and I hadn't see any issue. Did you manage to fix it?
User avatar
AndrewB
Posts: 6
Joined: 02 April 2012, 14:16

Re: Zombie turn with new states classes php syntax error

Post by AndrewB »

Hi thoun,

Thanks for the help. You mention that you had a player quit the game, which is different from expelling the player when they have timed out. But anyway when I test quitting the game the local player (only) receives this error.

Code: Select all

GET https://studio.boardgamearena.com/table/table/quitgame.html?table=787909&s=table_quitdlg&noerrortracking=true&testuser=2296657&dojo.preventCache=1761304408253" 500 (Internal Server Error)
So another issue to track down. :?
User avatar
thoun
Posts: 1619
Joined: 10 December 2020, 22:25

Re: Zombie turn with new states classes php syntax error

Post by thoun »

This bug will be fixed in the next BGA release.

In the meantime, play in Friendly mode (no time limit), so you won't have this issue related to quitting a ranked game.
User avatar
AndrewB
Posts: 6
Joined: 02 April 2012, 14:16

Re: Zombie turn with new states classes php syntax error

Post by AndrewB »

Excellent. Thanks :)
Post Reply

Return to “Developers”