Trying to make 1st mod

jackgames

Warlord
Joined
Aug 10, 2013
Messages
115
Hello,
Civ5 modding was so simple compared to Civ6! I'm trying to make my 1st mod on Civ6: for testing, I want to do something very simple: adding a new world size.
I took example upon minimalist mod LockeRussia and made this:
modinfo:
Code:
<Mod id="49300c43-ef9c-47d0-98c6-868f8e6ca9f2" version="1">
    <Properties>
        <Name>TesMod</Name>
        <Teaser>Mod testing</Teaser>
        <Description>LOC_DESCRIPTION</Description>
        <Authors>Jake</Authors>
        <EnabledByDefault>0</EnabledByDefault>
        <EnabledAtStartup>0</EnabledAtStartup>
    </Properties>
    <Components>
        <UpdateDatabase id="TESTMOD_MOD>
            <Items>
                <File>SQL/TestModWorlds.sql</File>
            </Items>
        </UpdateDatabase>
    </Components>
    <LocalizedText>
        <Text id="LOC_DESCRIPTION">
            <en_US>Testing a mod.</en_US>
        </Text>
    </LocalizedText>
    <Files>
        <File>SQL/TestModWorlds.sql</File>
    </Files>
</Mod>

and the sql file:
Code:
INSERT INTO Worlds(Type, Description, Help, DefaultPlayers, DefaultMinorCivs, FogTilesPerBarbarianCamp, NumNaturalWonders, UnitNameModifier,
                   TargetNumCities, NumFreeBuildingResources, BuildingClassPrereqModifier, MaxConscriptModifier, GridWidth, GridHeight,
                   MaxActiveReligions, TerrainGrainChange, FeatureGrainChange, ResearchPercent, NumCitiesUnhappinessPercent,
                   NumCitiesPolicyCostMod, NumCitiesTechCostMod, AdvancedStartPointsMod, EstimatedNumCities, PortraitIndex, IconAtlas)
                   VALUES('WORLDSIZE_SUPERHUGE', 'TXT_KEY_WORLD_HUGE', 'TXT_KEY_WORLD_HUGE_HELP', 12, 24, 35, 7, 0, 6, 7, 100, 75,
                           196, 122, 7, 1, 1, 130, 60, 5, 2.5, 120, 132, 5, 'WORLDSIZE_ATLAS');

I activate the mod and create a new game. In the World Size menu, there should be 2 entries named Huge, the 2nd one being the one I created, but there isn't...:nono:
What am I doing wrong???
 
You need to define your new size in the MapSizes Table located in the Configuration database (Using <Settings></Settings> in your Modinfo. You also need to Define the amount of Great Prophets for your map size in the Map_GreatPersonClasses Table or no one will be able to found a religion.

I would take a look at YNAMP to see how Gedemon made his 2 map sizes.
 
I finally achieved one goal: make my new size map appear in the menu. But when I launch the new game created, unexpected behavior => the whole map is hidden (nothing's displayed ont it) and the turns counter is increasing by itself constantly!?
Probably has something to do with RuleSets ; keep looking at Gedemon's Mod to discover what to do next...
At this point, here are my files:
Modinfo
Code:
<Mod id="49300c43-ef9c-47d0-98c6-868f8e6ca9f2" version="1">
    <Properties>
        <Name>Supremacy</Name>
        <Teaser>LOC_SUPREMACY_TEASER</Teaser>
        <Description>LOC_SUPREMACY_DESCRIPTION</Description>
        <Authors>Jake</Authors>
        <SpecialThanks>CivFanatics Forum</SpecialThanks>
        <EnabledByDefault>0</EnabledByDefault>
        <EnabledAtStartup>0</EnabledAtStartup>
    </Properties>
    <Settings>
        <Custom id="SUPREMACY_SETTINGS">
          <Items>
            <File>XML/SupremacyConfig.xml</File>
          </Items>
        </Custom>
        <LocalizedText id="SUPREMACY_SETTINGS">
          <Items>
            <File>XML/SupremacyConfigText.xml</File>
          </Items>
        </LocalizedText>
      </Settings>   
    <Components>
        <UpdateDatabase id="SUPREMACY_MOD>
            <Items>
                <File>XML/SupremacyGamePlay.xml</File>
            </Items>
        </UpdateDatabase>
    </Components>
    <LocalizedText>
        <Text id="LOC_SUPREMACY_DESCRIPTION">
            <en_US>Test Mod</en_US>
            <fr_FR>Petit test</fr_FR>
        </Text>
        <Text id="LOC_SUPREMACY_TEASER">
              <en_US>Test Mod</en_US>
              <fr_FR>Petit test</fr_FR>
        </Text>
    </LocalizedText>
    <Files>
        <File>XML/SupremacyConfig.xml</File>
        <File>XML/SupremacyConfigText.xml</File> 
        <File>XML/SupremacyGamePlay.xml</File>             
    </Files>
</Mod>
(Note: In the Mod list, under the mod's title, description is 'LOC_SUPREMACY_TEASER', don't know why?)

SupremacyConfig.xml:
Code:
<GameInfo>
    <MapSizes>
        <Update>
            <Set MaxPlayers="60"/>
        </Update>       
        <Row MapSizeType="MAPSIZE_SUPERHUGE" Name="LOC_MAPSIZE_SUPERHUGE_NAME" Description="LOC_MAPSIZE_SUPERHUGE_DESCRIPTION" MinPlayers="2" MaxPlayers="60" DefaultPlayers="20" MinCityStates="0" MaxCityStates="40" DefaultCityStates="30" SortIndex="90" />   
    </MapSizes>    
</GameInfo>

SupremacyConfigText:
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
  <LocalizedText>
    <Replace Tag="LOC_MAPSIZE_SUPERHUGE_NAME" Language="fr-FR">
      <Text>Gigantesque (230x128)</Text>
    </Replace>
    
    <Replace tag="LOC_MAPSIZE_SUPERHUGE_DESCRIPTION" Language="fr-FR">
      <Text>Carte extr&ecirc;mement grande!</Text>
    </Replace>
  </LocalizedText> 
</GameData>

SupremacyGamePlay.xml:
Code:
<GameInfo>
  <Maps>
    <Row MapSizeType="MAPSIZE_SUPERHUGE" Name="LOC_MAPSIZE_SUPERHUGE_NAME" Description="LOC_MAPSIZE_SUPERHUGE_DESCRIPTION" DefaultPlayers="20" GridWidth="230" GridHeight="128" NumNaturalWonders="8" PlateValue="6" Continents="7"/>
  </Maps>
 
  <Map_GreatPersonClasses>
      <Row MapSizeType="MAPSIZE_SUPERHUGE" GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" MaxWorldInstances="7"/>
   </Map_GreatPersonClasses>
</GameInfo>
 
Back
Top Bottom