Page 1 of 2
Player elimination
Posted: 10 March 2025, 18:03
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
I mark the playes as eliminated on database ('player_aliminated' = 1). Am I doing something wrong, or am I missing something?
Re: Player elimination
Posted: 10 March 2025, 18:06
by RicardoRix
Re: Player elimination
Posted: 11 March 2025, 16:13
by DargorX
Thanks, but after applying adding this:
Code: Select all
$this->eliminatePlayer(<player_to_eliminate_id>)
nothing changes

Re: Player elimination
Posted: 11 March 2025, 16:27
by thoun
This is exactly the function you asked for. How are you using it?
Re: Player elimination
Posted: 11 March 2025, 16:34
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.
Re: Player elimination
Posted: 11 March 2025, 17:01
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.
Re: Player elimination
Posted: 11 March 2025, 17:28
by thoun
It should work on Studio the same way as in production (same for all framework functions).
Re: Player elimination
Posted: 11 March 2025, 17:35
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

Re: Player elimination
Posted: 12 March 2025, 02:15
by Victoria_La
Are you using real time game to test this?
Re: Player elimination
Posted: 13 March 2025, 19:02
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?
