How to change or add Natural Wonders position of a YnAMP map

Gedemon

Modder
Super Moderator
Joined
Oct 4, 2004
Messages
11,582
Location
France
Note: for the examples in this thread I use the Giant Earth, the other names can be found in the corresponding map's threads or in the Map.xml file in the map's folder.


If you are a modder:


You'll need to set this in a SQL file loaded before the file setting the NW position (this is to make sure that your XML/SQL file won't fail to load if YnAMP is not loaded)
Code:
CREATE TABLE IF NOT EXISTS NaturalWonderPosition
   (    MapName TEXT NOT NULL,
        FeatureType TEXT NOT NULL,
        TerrainType TEXT,
        X INT default 0,
        Y INT default 0);

Then see the XML example below to add the code in one of you file loaded after the one creating the table.


If you are not a modder:

See How to create custom.xml and custom.sql to make simple changes and add the code for the TSL of the civilization you want to add in the custom.xml file, like for example:

XML for a single-plot NW (can be converted to SQL of course):
Code:
<GameInfo>

    <NaturalWonderPosition>
        <Replace MapName="GiantEarth" X="98" Y="58" FeatureType="FEATURE_SUK_FUJI" />
    </NaturalWonderPosition>

</GameInfo>

and for a multi plots NW, just enter all plot in the table like that:
Code:
<GameInfo>

    <NaturalWonderPosition>
        <Replace MapName="GiantEarth" X="76" Y="41" FeatureType="FEATURE_SUK_TONLESAP" />
        <Replace MapName="GiantEarth" X="77" Y="40" FeatureType="FEATURE_SUK_TONLESAP" />
    </NaturalWonderPosition>

</GameInfo>

see How to find the X, Y values of a plot in game, and you must check what FeatureType name was given to custom NW by the mods author.

The names of the vanilla Natural Wonders can be found in the file Features.xml in "\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\Gameplay\Data", in the equivalent files for DLC/scenarios or in the Features table if you use a SQL manager
 
Last edited:
Top Bottom