1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    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,519
    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>
    
     
    zon likes 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