Where to change the default game rules?

Tech support for Commander Europe at War. Requires forum registration.

Moderators: firepowerjohan, rkr1958, Happycat, Slitherine Core

Post Reply
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Where to change the default game rules?

Post 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?
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post 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.
Post Reply

Return to “Commander - Europe at War : Tech Support”