Player elimination

Game development with Board Game Arena Studio
User avatar
DargorX
Posts: 33
Joined: 10 September 2012, 20:16

Player elimination

Post by DargorX »

I have never played any game where players can be eliminated. I understand that eliminated players can leave the table using a specific button.

Is it possible that this button does not appear in the studio testing games? The only option I see of leaving warns you of a penalty, I understand that it is not the right way :cry:

I mark the playes as eliminated on database ('player_aliminated' = 1). Am I doing something wrong, or am I missing something?
User avatar
DargorX
Posts: 33
Joined: 10 September 2012, 20:16

Re: Player elimination

Post by DargorX »

Thanks, but after applying adding this:

Code: Select all

$this->eliminatePlayer(<player_to_eliminate_id>)
nothing changes :(
User avatar
thoun
Posts: 1618
Joined: 10 December 2020, 22:25

Re: Player elimination

Post by thoun »

This is exactly the function you asked for. How are you using it?
User avatar
ufm
Posts: 2039
Joined: 06 January 2017, 08:38

Re: Player elimination

Post by ufm »

The function eliminates the designated player, thus excluding them from the game automatically.
Players shouldn't leave the game themselves before the elimination.
User avatar
DargorX
Posts: 33
Joined: 10 September 2012, 20:16

Re: Player elimination

Post by DargorX »

thoun wrote: 11 March 2025, 16:27 This is exactly the function you asked for. How are you using it?
When a player is eliminated I call the function by passing the player id, how else can I use it?

My question is if this has effect on the test games in studio or I won't see it until I deploy in production.
User avatar
thoun
Posts: 1618
Joined: 10 December 2020, 22:25

Re: Player elimination

Post by thoun »

It should work on Studio the same way as in production (same for all framework functions).
User avatar
DargorX
Posts: 33
Joined: 10 September 2012, 20:16

Re: Player elimination

Post by DargorX »

thoun wrote: 11 March 2025, 17:28 It should work on Studio the same way as in production (same for all framework functions).
Well, I am totally unable to see the supposed message and/or button to be able to safely leave the game :?
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Player elimination

Post by Victoria_La »

Are you using real time game to test this?
User avatar
DargorX
Posts: 33
Joined: 10 September 2012, 20:16

Re: Player elimination

Post by DargorX »

Victoria_La wrote: 12 March 2025, 02:15 Are you using real time game to test this?
No, I have been using turn-based games all my life, can this be the cause? :cry:
Post Reply

Return to “Developers”