[SOLVED] is it possible to suppress bugging tables???

Game development with Board Game Arena Studio
Post Reply
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

[SOLVED] is it possible to suppress bugging tables???

Post by Rudolf »

Hello,
since Saturday, I cannot make an express start, the server says there is no enough free players... (but all are available).
So I have to connect each and join to start. I should be caused by still existing tables (bugged).
Last edited by Rudolf on 09 May 2013, 12:05, edited 4 times in total.
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: Bug on Express Start.

Post by pikiou »

Works fine for me. Happened to me before when almost all my pikiou0-9 accounts were in games already.
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: [STILL HAPPENS] Bug on Express Start.

Post by Rudolf »

I think the problem is caused by remaining bugged tables:

4358
2907
541
300
296
199

is it possible to suppress it? I did a close, but nothing happens.
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: [EXPRESS START] is it possible to suppress bugging table

Post by pikiou »

Indeed, the problem is there are games you abandoned but which are still running and therefor prevent zombie players from "express" joining other games (yup, that's a BGA Studio bug).
So you need to end these games, and the only way I know of is to move from a state to the gameEnd state.

First, find a state with a 'gameEnd' transition to state 99. Let's call it beforeTheEnd.
Then in the SQL table named global, change the global_value with global_id=1 (seems to be current state id) to the id of beforeTheEnd, so the state engine is set to that state.
And finally, add "$this->gamestate->nextState('gameEnd');" at the start of getAllDatas before refreshing the table page.
It will move from state beforeTheEnd to state gameEnd, actually ending the game and releasing all accounts associated with it.
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: [EXPRESS START] is it possible to suppress bugging table

Post by Rudolf »

Thanks Pikiou for the trick.
I did'nt code an end link right now, but I will.
Post Reply

Return to “Developers”