How does giveExtraTime() work?

Game development with Board Game Arena Studio
Post Reply
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

How does giveExtraTime() work?

Post by pikiou »

I can't seem to change how much time giveExtraTime() gives.

In gameinfos.inc.php I set fast_additional_time to 5 seconds.
Then I click "Reload game informations" in my game control panel. I see in the log report it took into account this change from 30 to 5 seconds.
I start a game in fast mode.
At the end of a player turn I call "$this->giveExtraTime($player_id);" from 1 to 20 times depending on the complexity of my player turn (his actions can be undone so I have to do it this way). Unfortunately it gives my player some extra 30 seconds for each call, ending up in additional minutes !

What did I do wrong?
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: How does giveExtraTime() work?

Post by sourisdudesert »

Hi,

You are right: "additional time" value is not updated in the Studio. It should be.

But: in BGA server, the value you set in "fast/medium/slow_additional_time" are only initial values for the game launch. We (BGA admins) have a tool to analyse the time really used by players for all games, and to adjust the needed "extratime" for each game. So you just have to set a (large) value here, and then we will reduce it progressively when the game will be online.

Hope this helps!

Cheers,
Post Reply

Return to “Developers”