Page 1 of 1

How does giveExtraTime() work?

Posted: 13 October 2013, 19:26
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?

Re: How does giveExtraTime() work?

Posted: 15 October 2013, 08:13
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,