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

Gedemon

Modder
Super Moderator
Joined
Oct 4, 2004
Messages
11,505
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)

If you're using the Steam version of the mod, always keep a copy of your change in another folder, as Steam delete everything in the mod's folder when updating it.

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>
 
Last edited:
Gedemon,just viewed this discussion. Great. Love your guidance. Learnt something new. Thank you very much
 
Top Bottom