Player Order on waiting page, and game page.

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

Player Order on waiting page, and game page.

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

Re: Player Order on waiting page, and game page.

Post 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?
User avatar
DrKarotte
Posts: 279
Joined: 22 September 2015, 23:42

Re: Player Order on waiting page, and game page.

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

Re: Player Order on waiting page, and game page.

Post 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
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Player Order on waiting page, and game page.

Post by Een »

Hi, this is done in the "Belote" game. You can get readonly access on the studio to check how teams are created.
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: Player Order on waiting page, and game page.

Post 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".
Post Reply

Return to “Developers”