Page 1 of 1

Where to change the default game rules?

Posted: Wed Jul 01, 2009 10:13 pm
by Peter Stauffenberg
I wonder where it's possible to change the default game rules when starting new games. I want the following settings:
Fog of War checked
Game ends in 1945 checked
Random Research unchecked
Oil Consumption checked

Now the game starts with Game ends in 1945 and Random Research checked while Fog of War and Oil Consumption is unchecked.

I tried to look in the settings.txt for any values, but found nothing. I even changed the appropriate flag values in GameState.class, but it didn't help. So I wonder if these initial settings are hardcoded somewhere (maybe in the Launcher.exe). Can that be altered.

The best thing would be to store these values in the settings.txt just as for Game Options.

What should I do to have my games suggest the Game Rules I want?

Posted: Sat Jul 04, 2009 4:08 am
by Peter Stauffenberg
I managed to find out how to do it myself. :) So now I have set the defaults to FoW, Game end May 1945 and oil consumption checked and random research unchecked.

I needed to update GameState.class with the default values (2 values from false to true and 1 value from true to false) and GameSetupPanel.class with simular changes to the buttons7-10.