1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

No MP Mods or Game Presets?

Discussion in 'Civ5 - Creation & Customization' started by Lord Lord, Aug 6, 2012.

  1. Lord Lord

    Lord Lord Chieftain

    Joined:
    Aug 17, 2008
    Messages:
    26
    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:
    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?
     
  2. Horem

    Horem Emperor

    Joined:
    Apr 1, 2010
    Messages:
    1,720
    Location:
    Wales, UK
    <Set Default="true" /> should be <Set Default="1" />
    Use 0 for false and 1 for true
     
  3. Lord Lord

    Lord Lord Chieftain

    Joined:
    Aug 17, 2008
    Messages:
    26
    Thank you that helped! I still have not figured out how to set:
    World: Pangaea (I can do this by messing with the reset button in the AdvancedSetup.lua file)
    World Size: Huge (as above)
    Handicap: King (as above)
    Sea Level: Low
    Resources: Legendary Start
    Victory Conditions: Domination Only
    I would also like to set the City States slider up to 36 and even set the Civilization of Team 1 if possible.

    Basically I want to be able to start a new game with the exact same settings over and over again, without having to check the settings.
     

Share This Page