New gameoptions options not sticking

Game development with Board Game Arena Studio
Post Reply
User avatar
Idsky
Posts: 132
Joined: 16 April 2020, 16:49

New gameoptions options not sticking

Post by Idsky »

I added a new game option (my first time trying this!) and reloaded in 'manage game' but when I choose the new setting in configuring a new game table, the form select input goes blank! When I re-click the blank select, the default option is always ticked. No js or PHP errors. What's wrong?

In gameoptions.inc.php

Code: Select all

…      105 => array(
      'name' => totranslate('Dangerous Card'),
      'values' => array(
         0 => array('name' => totranslate('Include the Dangerous Card')),
         1 => array('name' => totranslate('Exclude the Dangerous Card'))
      )
   ),
with the corresponding value in qtest.game.php

Code: Select all

    self::initGameStateLabels(Array(
…
         'excludeDangerous' => 105,
…
The table discussion appropriately logs:

Code: Select all

"gameoptions_3870_Dangerous Card" changes to: gameoptions_3870_Exclude the Dangerous Card
User avatar
Idsky
Posts: 132
Joined: 16 April 2020, 16:49

Re: New gameoptions options not sticking

Post by Idsky »

Oops, it's working now! I think I hit 'create table' before updating the settings and only refreshed the create table page, instead of creating a new table after the new setting existed.
Post Reply

Return to “Developers”