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

How to create custom.xml and custom.sql to make simple changes

Discussion in 'Yet (not) Another Maps Pack' started by Gedemon, Aug 12, 2017.

  1. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    7,984
    Location:
    France
    If your not a modder, but just want to add or change something simple in the mod (or the game), YnAMP is pre-configured to allow 2 additional files named "custom.xml" and "custom.sql" that you simply create in "Documents\my games\Sid Meier's Civilization VI\Mods\Yet (not) Another Maps Pack" folder (CFC or GitHub download) or "[your Steam folder]\SteamApps\workshop\content\289070\871861883" (Steam Workshop installation)

    Make sure to not create file with hidden extension (like custom.xml.txt), the extensions must be .xml and .sql

    You can edit them with any text editor like notepad.

    Those files are loaded after all other YnAMP files, which means the change in them will overwrite the changes in the base mod.

    The custom.sql file is to be used for SQL change, you just need to put your SQL request there (separated with ";")

    The custom.xml file use the same syntax as the game file, it must start with <GameInfo> and end with </GameInfo>

    For example to add the Mont Fuji NW from Sukikrat
    Code:
    <GameInfo>
    
        <NaturalWonderPosition>
            <Replace MapName="GiantEarth" X="98" Y="58" FeatureType="FEATURE_SUK_FUJI" />
        </NaturalWonderPosition>
    
    </GameInfo>
    or to add starting position for custom civilizations

    Code:
    <GameInfo>
    
      <StartPosition>
          <Replace MapName="GiantEarth" Civilization="CIVILIZATION_CANADA" X="50" Y="50" />
          <Replace MapName="GiantEarth" Civilization="CIVILIZATION_MONGOLIA" X="50" Y="50" />
        </StartPosition>
    
    </GameInfo>
    
    or combining both change

    Code:
    <GameInfo>
    
        <NaturalWonderPosition>
            <Replace MapName="GiantEarth" X="98" Y="58" FeatureType="FEATURE_SUK_FUJI" />
        </NaturalWonderPosition>
    
      <StartPosition>
          <Replace MapName="GiantEarth" Civilization="CIVILIZATION_CANADA" X="50" Y="50" />
          <Replace MapName="GiantEarth" Civilization="CIVILIZATION_MONGOLIA" X="50" Y="50" />
        </StartPosition>
    
    </GameInfo>
    
     
    robincox and zon like this.
  2. Rajendran_P

    Rajendran_P Chieftain

    Joined:
    Mar 10, 2017
    Messages:
    26
    Gender:
    Male
    Gedemon,just viewed this discussion. Great. Love your guidance. Learnt something new. Thank you very much
     

Share This Page