I have dabbled a little bit in modding with two goals in mind. Preset game options to launch a game quickly using my preferences. Tweak the game slightly for multiplayer games.
Lets say I want a shortcut to Huge, Pangaea, King, Legendary Start, Only Domination Victory, Policy Saving, Promotion Saving, New Random Seed and Raging Barbarians.
So far I tried messing with the config file and that had virtually no impact on the game options.
I made a mod with some simple table updates:
And I have tried messing with the lua filed AdvancedSetup.lua and MapGenerator.lua.
In the end I managed to make the Reset button on the advanced setup screen do most of my work, but I cant seem to set starting resources or victory conditions anywhere.
Also it appears it is impossible to start multiplayer with mods?
Anyone have any tips or tricks that could help me? Do i need to mess with the databases using SQL?
Lets say I want a shortcut to Huge, Pangaea, King, Legendary Start, Only Domination Victory, Policy Saving, Promotion Saving, New Random Seed and Raging Barbarians.
So far I tried messing with the config file and that had virtually no impact on the game options.
I made a mod with some simple table updates:
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<GameOptions>
<Update>
<Set Default="true" />
<Where Type="GAMEOPTION_POLICY_SAVING" />
</Update>
<Update>
<Set Default="true" />
<Where Type="GAMEOPTION_PROMOTION_SAVING" />
</Update>
<Update>
<Set Default="true" />
<Where Type="GAMEOPTION_NEW_RANDOM_SEED" />
</Update>
<Update>
<Set Default="true" />
<Where Type="GAMEOPTION_QUICK_COMBAT" />
</Update>
<Update>
<Set Default="true" />
<Where Type="GAMEOPTION_QUICK_MOVEMENT" />
</Update>
<Update>
<Set Default="true" />
<Where Type="GAMEOPTION_RAGING_BARBARIANS" />
</Update>
</GameOptions>
</GameData>
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<Defines>
<Update>
<Set Key="WORLDSIZE_HUGE" />
<Where Name="STANDARD_WORLD_SIZE" />
</Update>
<Update>
<Set Key="SEALEVEL_LOW" />
<Where Name="STANDARD_SEALEVEL" />
</Update>
<Update>
<Set Key="HANDICAP_KING" />
<Where Name="STANDARD_HANDICAP" />
</Update>
<Update>
<Set Key="HANDICAP_KING" />
<Where Name="MULTIPLAYER_HANDICAP" />
</Update>
<Update>
<Set Key="HANDICAP_KING" />
<Where Name="STANDARD_HANDICAP_QUICK" />
</Update>
</Defines>
</GameData>
And I have tried messing with the lua filed AdvancedSetup.lua and MapGenerator.lua.
In the end I managed to make the Reset button on the advanced setup screen do most of my work, but I cant seem to set starting resources or victory conditions anywhere.
Also it appears it is impossible to start multiplayer with mods?
Anyone have any tips or tricks that could help me? Do i need to mess with the databases using SQL?