Page 1 of 1
Player Order on waiting page, and game page.
Posted: 29 July 2017, 23:56
by Rudolf
Hello,
after the waiting page, the players are randomly reordered, it seems player_no is not the order of the players in waiting page...
So is there a way to get order of waiting page (I need this for team option)?
Re: Player Order on waiting page, and game page.
Posted: 31 July 2017, 23:34
by Victoria_La
Sorry I wish I can help but I have no idea what you are asking, and since nobody replied yet I assume other have no idea either.
So I want to clarify.
What is "waiting page"? What is "game page"? I don't think any studio API's have page concept.
What is "player_no"?
You talking about php? You taking about js? Some other non API concept?
Re: Player Order on waiting page, and game page.
Posted: 01 August 2017, 17:55
by DrKarotte
I think he means the page where people join the table, and he wants to keep the order there for the game?
Playing order identical to the order in which the players joined / were displayed on the create-table screen?
Re: Player Order on waiting page, and game page.
Posted: 02 August 2017, 01:20
by Victoria_La
Yeah it make sense then, there is such public API now and don't think there is such field in db that keeps this info,
but admins have to answer this to be sure
Re: Player Order on waiting page, and game page.
Posted: 02 August 2017, 10:05
by Een
Hi, this is done in the "Belote" game. You can get readonly access on the studio to check how teams are created.
Re: Player Order on waiting page, and game page.
Posted: 02 August 2017, 21:53
by Rudolf
Thanks, een, It's ok now:
in setupgame, before destroying player tables (before insert), I read the field "player_table_order" which shows the table number... then I can reoder players with "player_no".