Quick Modding Questions Thread

Btw, has anybody ever analyzed the structure of the civ6 save files, ie. tried to find specific variables within?

(just like everything else you choose from the setup screen - So you can't change the value once a Game is started). <<--->>> But that just points the Game to the appropriate sql file (say, it's adjustable).
Now I'm confused. :)

Yes, the Value that you have chosen in the setup menu while starting the Game, should be stored in the save file
What do you mean by "the Value [...] should be stored in the save file"

Code:
UPDATE GlobalParameters SET Value = 23                    <--------
WHERE Name = 'DIPLOMATIC_VICTORY_POINTS_REQUIRED';
or
Code:
        <Criteria id="DVP23_ex2">
            <ConfigurationValueMatches>
                <ConfigurationId>REQ_DIPLOMATIC_VICTORY_POINTS</ConfigurationId>
                <Group>Game</Group>
                <Value>23</Value>                          <--------

which correlates with

            <Criteria>DVP23_ex2</Criteria>
            <File>SQL/23.sql</File>
What is stored? The simple, but hard number "23" or the reference to adjustable 23.sql?

 
Now I'm confused. :)
Sorry that I didn't explain it properly.

If you choose the DV Points in the setup screen (that's the Value) and started a Game, the save file will keep that value as the DVP. i.e. if you choose 25 Points for the Diplomacy Victory, then this number will stay through the whole Game as the requirement for a Diplomacy Victory.
And by adjustable, I mean the DVP you choose in the setup menu will be implemented into the Database from the appropraite SQL file in that Mod.

In other words, everything you change here:
<Criteria id="DVP23_ex2"> <ConfigurationValueMatches> <ConfigurationId>REQ_DIPLOMATIC_VICTORY_POINTS</ConfigurationId> <Group>Game</Group> <Value>23</Value>
won't have any effect InGame. This only points the Game, once you selected 23 DVP in the setup menu, to the appropriate Sql file, which is in this case 23.sql.

The File 23.sql is the one who writes the actuall value "23" as the DVP in the database (in the GlobalParameters Table).
 
Is it possible to change the leader/civilization music in the game? Any guide of information available? Searched to no avail
Check the Theads I pointed in this Thread.
The Game's Directory for Audio files is (for Vanilla): C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Platforms\Windows\audio
I think the necessary files for the Civs Music are: "Music_Bank.txt" and "Music_Bank.bnk". If you just want to re-use the existing ones for some Civs, you may only need "Music_Bank.txt". I have no Idea how to do that. But I don't think that you can make an update for that, like via a standard Mod. You probably need to alter the base Game files (so always backup files first).
 
Check the Theads I pointed in this Thread.
The Game's Directory for Audio files is (for Vanilla): C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Platforms\Windows\audio
I think the necessary files for the Civs Music are: "Music_Bank.txt" and "Music_Bank.bnk". If you just want to re-use the existing ones for some Civs, you may only need "Music_Bank.txt". I have no Idea how to do that. But I don't think that you can make an update for that, like via a standard Mod. You probably need to alter the base Game files (so always backup files first).
Yeah I'm looking for a way to do it via a mod that can be shared
 
Code:
<TechnologyModifiers>
       <Row> <TechnologyType>TECH_MACHINERY</TechnologyType> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId>
       <Row>
   </TechnologyModifiers>

Edit: And you don't have to make 2 Modifiers for 2 different Unit class types if they get the same strength value anyway. just add a second requirement in RequirementSetRequirements and TEST_ANY in RequirementSets.

How? based on first option and using XML
 
Hi folks - hope someone has a quick and easy solution to my problem. I'm starting a mod in the late 1800s and want to have a base set of civics and techs already in place for all civs. For example, everyone should know how to farm, fish, harvest woods, build basic districts and buildings, have mid-game governments and civics, etc. Can anyone tell me how to do this?

Any help will be appreciated. Thanks!
 
How? based on first option and using XML
Code:
<TechnologyModifiers>
       <Row> <TechnologyType>TECH_IRONWORKING</TechnologyType> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId><Row>
   </TechnologyModifiers>
   <Modifiers>
       <Row> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId> <ModifierType>MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH</ModifierType> <SubjectRequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</SubjectRequirementSetId> </Row>
   </Modifiers>
   <ModifierArguments>
       <Row> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId> <Name>Amount</Name> <Value>8</Value> </Row>
   </ModifierArguments>
   <RequirementSets>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementSetType>REQUIREMENTSET_TEST_ANY</RequirementSetType> </Row>
   </RequirementSets>
   <RequirementSetRequirements>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> </Row>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> </Row>
   </RequirementSetRequirements>
   <Requirements>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_UNIT_TAG_MATCHES</RequirementType> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_UNIT_TAG_MATCHES</RequirementType> </Row>
   </Requirements>
   <RequirementArguments>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> <Name>Tag</Name> <Value>CLASS_IRONWEAPONS_UPGRADE_MELEE</Value> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> <Name>Tag</Name> <Value>CLASS_IRONWEAPONS_UPGRADE_RANGED</Value> </Row>
   </RequirementArguments>
This should grant any Unit of a Player that is either "CLASS_IRONWEAPONS_UPGRADE_MELEE" or "CLASS_IRONWEAPONS_UPGRADE_RANGED" +8 Combat Strength once the Tech Iron Working is researched by that Player.
 
This is what I got now
upload_2021-1-25_0-16-30.png

No buffs granted by Ironworkings yet regardless that I already earned one.

PS by the time I saw the latest reply I haven't edit a coding yet.
 
Any Errors in the Database.log? If it doesn't work then making it via UnitAbilities might be the optimal way.
 
And did you make these in TypeTags?:
<Row Type="UNIT_SCOUT" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_WARRIOR" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_RANGED"/> <Row Type="UNIT_SPEARMAN" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_HEAVY_CHARIOT" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_GALLEY" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_NORWEGIAN_LONGSHIP" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_EGYPTIAN_CHARIOT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_EGYPTIAN_CHARIOT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_RANGED"/> <Row Type="UNIT_SUMERIAN_WAR_CART" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_GREEK_HOPLITE" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/> <Row Type="UNIT_WARRIOR_MONK" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
 
Yes I did but still no effects yet.

upload_2021-1-25_0-58-21.png

[896870.894] [Localization]: StartupErrorMessages.xml
[896870.895] [Localization]: Input XML does not contain database entry tags. GameData, GameInfo or Database
[896882.989] [Localization]: Validating Foreign Key Constraints...
[896882.990] [Localization]: Passed Validation.
[896883.028] [Configuration]: Validating Foreign Key Constraints...
[896883.029] [Configuration]: Passed Validation.
[896893.253] [FullTextSearch]: Initializing FullTextSearch
[896895.180] [Gameplay]: Validating Foreign Key Constraints...
[896895.198] [Gameplay]: Passed Validation.
[896899.151] [Configuration]: Validating Foreign Key Constraints...
[896899.153] [Configuration]: Passed Validation.
[896902.667] [HallofFame]: Database found. Checking versions...
[896902.696] [HallofFame]: Database is up-to-date!
[896923.634] [FullTextSearch]: FTS - Creating Context
[896943.245] [Configuration]: Validating Foreign Key Constraints...
[896943.248] [Configuration]: Passed Validation.
[896946.197] [Gameplay] ERROR: table TechnologyModifiers has no column named Row
[896946.197] [Gameplay]: In Query - insert into TechnologyModifiers('TechnologyType', 'ModifierId', 'Row', 'Modifiers', 'ModifierArguments', 'RequirementSets', 'RequirementSetRequirements', 'Requirements', 'RequirementArguments', 'ModifierStrings') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
[896946.197] [Gameplay]: In XMLSerializer while updating table TechnologyModifiers from file ZaabSpicey_Lite_IronweaponsUpgrade.xml.
[896948.027] [Gameplay]: Validating Foreign Key Constraints...
[896948.060] [Gameplay]: Passed Validation.
[897003.307] [FullTextSearch]: FTS - Creating Context
[897003.308] [FullTextSearch]: FTS - Creating Context
[897006.972] [FullTextSearch]: FTS - Creating Context
[897008.515] [FullTextSearch]: FTS - Creating Context
[897012.246] [FullTextSearch]: FTS - Creating Context
[897148.749] [Configuration]: Validating Foreign Key Constraints...
[897148.751] [Configuration]: Passed Validation.
[897155.175] [Gameplay] ERROR: table TechnologyModifiers has no column named Row
[897155.175] [Gameplay]: In Query - insert into TechnologyModifiers('TechnologyType', 'ModifierId', 'Row', 'Modifiers', 'ModifierArguments', 'RequirementSets', 'RequirementSetRequirements', 'Requirements', 'RequirementArguments', 'ModifierStrings') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
[897155.175] [Gameplay]: In XMLSerializer while updating table TechnologyModifiers from file ZaabSpicey_Lite_IronweaponsUpgrade.xml.
[897155.959] [Gameplay]: Validating Foreign Key Constraints...
[897155.988] [Gameplay]: Passed Validation.
[897161.302] [FullTextSearch]: FTS - Creating Context
[897161.303] [FullTextSearch]: FTS - Creating Context
[897162.397] [FullTextSearch]: FTS - Creating Context
[897162.913] [FullTextSearch]: FTS - Creating Context
[897165.539] [FullTextSearch]: FTS - Creating Context
There is an error in Database but no crashings.
 

Attachments

Yep! it's just the error.

Try changing the TechnologyType part with this one:
Code:
<TechnologyModifiers>
    <Row>
        <TechnologyType>TECH_IRON_WORKING</TechnologyType>
        <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId>
    </Row>
</TechnologyModifiers>
I'm not used to code in XML, I usually use SQL (more handy), so that's why that didn't work :crazyeye:. There might be more mistakes that I can't see now, but you might spot them.
 
I have completed a custom civilization and leader, Civilization UA. I'm trying to add graphics related but I'm having a hard time. What should I do to add what I want?

I want the following:
Custom loading screen and diplomatic screen, civilization color similar to Japanese (Its color is known), a copy of UD looking standard, and avoiding red exclamations like BAU (This was described on this site: https://forums.civfanatics.com/thre...-exclamation-on-tiles-how-to-fix-this.642540/ . I can write in xml without any problem)

Please contact me if you have any files needed for explanation.
 
Second option doesn't work at all. No adjustments earned by Ironworking tech or whatsover
upload_2021-1-26_1-44-31.png


Code:
<GameData>
   <Technologies>
       <Update> <Where TechnologyType="TECH_IRON_WORKING" /> <Set Description="LOC_TECH_IRON_WORKING_DESCRIPTION" /> </Update>
   </Technologies>
   <Tags>
       <Row Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE" Vocabulary="ABILITY_CLASS"/> <!--Melee and Anticavs Upgrade-->
       <Row Tag="CLASS_IRONWEAPONS_UPGRADE_RANGED" Vocabulary="ABILITY_CLASS"/>
   </Tags>
   <TechnologyModifiers>
       <Row> <TechnologyType>TECH_IRON_WORKING</TechnologyType> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId></Row>
   </TechnologyModifiers>
   <Modifiers>
       <Row> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId> <ModifierType>MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH</ModifierType> <SubjectRequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</SubjectRequirementSetId> </Row>
   </Modifiers>
   <ModifierArguments>
       <Row> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId> <Name>Amount</Name> <Value>8</Value> </Row>
   </ModifierArguments>
   <RequirementSets>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementSetType>REQUIREMENTSET_TEST_ANY</RequirementSetType> </Row>
   </RequirementSets>
   <RequirementSetRequirements>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> </Row>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> </Row>
   </RequirementSetRequirements>
   <Requirements>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_UNIT_TAG_MATCHES</RequirementType> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_UNIT_TAG_MATCHES</RequirementType> </Row>
   </Requirements>
   <RequirementArguments>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> <Name>Tag</Name> <Value>CLASS_IRONWEAPONS_UPGRADE_MELEE</Value> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> <Name>Tag</Name> <Value>CLASS_IRONWEAPONS_UPGRADE_RANGED</Value> </Row>
   </RequirementArguments>
   <ModifierStrings>
       <Row ModifierId="IRONWEAPONS_ADJUST_COMBAT_STRENGHT" Context="Preview" Text="+{1_Amount} {LOC_TECH_IRON_WORKING_NAME} {LOC_TECH_DESCRIPTOR_PREVIEW_TEXT}"/>

   </ModifierStrings>
</GameData>

Code:
    <TypeTags>
       <Row Type="UNIT_SCOUT" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_WARRIOR" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_RANGED"/>
       <Row Type="UNIT_SPEARMAN" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_HEAVY_CHARIOT" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_GALLEY" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_NORWEGIAN_LONGSHIP" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_EGYPTIAN_CHARIOT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_EGYPTIAN_CHARIOT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_RANGED"/>
       <Row Type="UNIT_SUMERIAN_WAR_CART" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_GREEK_HOPLITE" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
       <Row Type="UNIT_WARRIOR_MONK" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
    <TypeTags>

I can't remember the first option that involves 'Player has ..... " but is it still possible to grant unit strengths once Iron Working tech is finished to specified units and not everyone??
 
I can't help you much without the database.log. It must be some database error causing the issue.
And Yes. You can still use the other Methode for that.
 
I can't help you much without the database.log. It must be some database error causing the issue.
And Yes. You can still use the other Methode for that.

Database
[986611.457] [Localization]: Input XML does not contain database entry tags. GameData, GameInfo or Database
[986625.388] [Localization]: Validating Foreign Key Constraints...
[986625.390] [Localization]: Passed Validation.
[986625.424] [Configuration]: Validating Foreign Key Constraints...
[986625.425] [Configuration]: Passed Validation.
[986635.310] [FullTextSearch]: Initializing FullTextSearch
[986636.342] [Gameplay]: Validating Foreign Key Constraints...
[986636.358] [Gameplay]: Passed Validation.
[986640.934] [Configuration]: Validating Foreign Key Constraints...
[986640.935] [Configuration]: Passed Validation.
[986647.803] [HallofFame]: Database found. Checking versions...
[986647.842] [HallofFame]: Database is up-to-date!
[986664.750] [FullTextSearch]: FTS - Creating Context
[986682.450] [Configuration]: Validating Foreign Key Constraints...
[986682.451] [Configuration]: Passed Validation.
[986685.132] [Gameplay]: Validating Foreign Key Constraints...
[986685.170] [Gameplay]: Passed Validation.
[986718.327] [FullTextSearch]: FTS - Creating Context
[986718.330] [FullTextSearch]: FTS - Creating Context
[986720.396] [FullTextSearch]: FTS - Creating Context
[986721.213] [FullTextSearch]: FTS - Creating Context
[986725.288] [FullTextSearch]: FTS - Creating Context
[986807.267] [Configuration]: Validating Foreign Key Constraints...
[986807.268] [Configuration]: Passed Validation.
[986809.572] [FullTextSearch]: FTS - Creating Context
[986964.812] [Configuration]: Validating Foreign Key Constraints...
[986964.812] [Configuration]: Passed Validation.
[986968.089] [Gameplay]: Validating Foreign Key Constraints...
[986968.106] [Gameplay]: Passed Validation.
[986990.123] [FullTextSearch]: FTS - Creating Context
[986990.124] [FullTextSearch]: FTS - Creating Context
[986990.424] [FullTextSearch]: FTS - Creating Context
[986990.799] [FullTextSearch]: FTS - Creating Context
[986992.206] [FullTextSearch]: FTS - Creating Context
No errors so far.

mm Can't remember how the code of the first option be. But which files needed editing and do I need to make a tag class to attach specific units to earn benefits?

And did 'REQUIREMENT_PLAYER_HAS_TECHNOLOGY' constrains really exists and how to use it to unlock tech granted benefits to specific units??
 
Where did you put these:
<TypeTags>
<Row Type="UNIT_SCOUT" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_WARRIOR" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_RANGED"/>
<Row Type="UNIT_SPEARMAN" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_HEAVY_CHARIOT" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_GALLEY" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_NORWEGIAN_LONGSHIP" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_EGYPTIAN_CHARIOT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_EGYPTIAN_CHARIOT_ARCHER" Tag="CLASS_IRONWEAPONS_UPGRADE_RANGED"/>
<Row Type="UNIT_SUMERIAN_WAR_CART" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_GREEK_HOPLITE" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<Row Type="UNIT_WARRIOR_MONK" Tag="CLASS_IRONWEAPONS_UPGRADE_MELEE"/>
<TypeTags>
Inside a GameInfo?
do I need to make a tag class to attach specific units to earn benefits?
That's basicaly what you're doing with the entries above.

And the other Table entries should also be in a GameInfo I think:
Code:
<GameInfo>
   <Technologies>
       <Update> <Where TechnologyType="TECH_IRON_WORKING" /> <Set Description="LOC_TECH_IRON_WORKING_DESCRIPTION" /> </Update>
   </Technologies>
   .......
</GameInfo>

And did 'REQUIREMENT_PLAYER_HAS_TECHNOLOGY' constrains really exists and how to use it to unlock tech granted benefits to specific units??
Yes.
Code:
<Types>
      <Row> <Type>ABILITY_IRONWEAPONS_ADJUST_COMBAT_STRENGHT</Type> <Kind>KIND_ABILITY</Kind><Row>
   </Types>
<TypeTags>
      <Row> <Type>ABILITY_IRONWEAPONS_ADJUST_COMBAT_STRENGHT</Type> <Tag>CLASS_IRONWEAPONS_UPGRADE_MELEE</Tag><Row>
      <Row> <Type>ABILITY_IRONWEAPONS_ADJUST_COMBAT_STRENGHT</Type> <Tag>CLASS_IRONWEAPONS_UPGRADE_RANGED</Tag><Row>
   </TypeTags>
<UnitAbilityModifiers>
      <Row> <UnitAbilityType>ABILITY_IRONWEAPONS_ADJUST_COMBAT_STRENGHT</UnitAbilityType> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId><Row>
   </UnitAbilityModifiers>
   <Modifiers>
       <Row> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId> <ModifierType>MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH</ModifierType> <SubjectRequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</SubjectRequirementSetId> </Row>
   </Modifiers>
   <ModifierArguments>
       <Row> <ModifierId>IRONWEAPONS_ADJUST_COMBAT_STRENGHT</ModifierId> <Name>Amount</Name> <Value>8</Value> </Row>
   </ModifierArguments>
   <RequirementSets>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
       <Row> <RequirementSetId>IRONWEAPONS_UNITS_REQUIREMENTS</RequirementSetId> <RequirementSetType>REQUIREMENTSET_TEST_ANY</RequirementSetType> </Row>
   </RequirementSets>
   <RequirementSetRequirements>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementId>PLAYER_HAS_IRON_WORKING_TECH_REQUIREMENT</RequirementId> </Row>
       <Row> <RequirementSetId>IRONWEAPONS_STRENGTH_REQUIREMENTS</RequirementSetId> <RequirementId>IRONSTRENGTH_UNIT_CLASS_REQUIREMENTS_MET_REQUIREMENT</RequirementId> </Row>
       <Row> <RequirementSetId>IRONWEAPONS_UNITS_REQUIREMENTS</RequirementSetId> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> </Row>
       <Row> <RequirementSetId>IRONWEAPONS_UNITS_REQUIREMENTS</RequirementSetId> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> </Row>
   </RequirementSetRequirements>
   <Requirements>
       <Row> <RequirementId>PLAYER_HAS_IRON_WORKING_TECH_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_PLAYER_HAS_TECHNOLOGY</RequirementType> </Row>
       <Row> <RequirementId>IRONSTRENGTH_UNIT_CLASS_REQUIREMENTS_MET_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_REQUIREMENTSET_IS_MET</RequirementType> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_UNIT_TAG_MATCHES</RequirementType> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> <RequirementType>REQUIREMENT_UNIT_TAG_MATCHES</RequirementType> </Row>
   </Requirements>
   <RequirementArguments>
<Row> <RequirementId>PLAYER_HAS_IRON_WORKING_TECH_REQUIREMENT</RequirementId> <Name>TechnologyType</Name> <Value>TECH_IRON_WORKING</Value> </Row>
       <Row> <RequirementId>IRONSTRENGTH_UNIT_CLASS_REQUIREMENTS_MET_REQUIREMENT</RequirementId> <Name>RequirementSetId</Name> <Value>IRONWEAPONS_UNITS_REQUIREMENTS</Value> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_MELEE_REQUIREMENT</RequirementId> <Name>Tag</Name> <Value>CLASS_IRONWEAPONS_UPGRADE_MELEE</Value> </Row>
       <Row> <RequirementId>UNIT_CLASS_IRONWEAPONS_UPGRADE_RANGED_REQUIREMENT</RequirementId> <Name>Tag</Name> <Value>CLASS_IRONWEAPONS_UPGRADE_RANGED</Value> </Row>
   </RequirementArguments>
And you have to add the new ability to the table UnitAbilities
Code:
<UnitAbilities>
<Row> <UnitAbilityType>ABILITY_IRONWEAPONS_ADJUST_COMBAT_STRENGHT</UnitAbilityType> <Name>LOC_ABILITY_IRONWEAPONS_ADJUST_COMBAT_STRENGHT_NAME</Name> <Description>LOC_ABILITY_IRONWEAPONS_ADJUST_COMBAT_STRENGHT_DESCRIPTION</Description> </Row>
</UnitAbilities>
For reference puposes I suggest using Raen's database search Tool.
 
Hi,
I am currently trying to finish my custom civilization. so close yet so far - functionally all is fine, however there are issues with the art/icons. Specifically:

1. The icons for the UD and UU are not showing up in-game. They should only be Holy Site and Settler icons as they are the ones replaced, but instead either nothing appears, or the icon of the unit previously selected. I thought this piece of code would have been enough:
Code:
<GameData>
    <IconDefinitions>
        <!--Building Icons-->
        <Row Name="ICON_DISTRICT_PARTS_VOLGA_GERMANY" Atlas="ICON_ATLAS_DISTRICTS" Index="1"/>
        <Row Name="ICON_DISTRICT_PARTS_VOLGA_GERMANY_FOW" Atlas="ICON_ATLAS_DISTRICTS_FOW" Index="1"/>
        <Row Name="ICON_UNIT_PARTS_VOLGA_GERMANY" Atlas="ICON_ATLAS_UNITS" Index="0"/>
        <Row Name="ICON_UNIT_PARTS_VOLGA_GERMANY_FOW" Atlas="ICON_ATLAS_UNITS_FOW" Index="0"/>

      
    </IconDefinitions>
</GameData>

And in another file:
Code:
-----------------------------------------------
-- PlayerItems (Rise and Fall)
-----------------------------------------------

INSERT INTO PlayerItems
        (Domain,                         CivilizationType,             LeaderType,             Type,                         Icon,                             Name,                                 Description,                                 SortIndex    )
VALUES    ('Players:Expansion2_Players',    'CIVILIZATION_PARTS_VOLGA_GERMANY',    'LEADER_PARTS_REUTER',    'UNIT_PARTS_VOLGA_GERMANY_UU',        'ICON_UNIT_PARTS_VOLGA_GERMANY',        'LOC_UNIT_PARTS_VOLGA_GERMANY_UU_NAME',        'LOC_UNIT_PARTS_VOLGA_GERMANY_UU_DESCRIPTION',        10            ),
        ('Players:Expansion2_Players',    'CIVILIZATION_PARTS_VOLGA_GERMANY',    'LEADER_PARTS_REUTER',    'DISTRICT_PARTS_VOLGA_GERMANY_UI',    'ICON_DISTRICT_PARTS_VOLGA_GERMANY',    'LOC_DISTRICT_PARTS_VOLGA_GERMANY_UI_NAME',    'LOC_DISTRICT_PARTS_VOLGA_GERMANY_UI_DESCRIPTION',    20            );
/

Is there any insert that I am missing for the icons to be inserted?

2. The leader image/background does not show up in-game. I have heard that this is not possible to implement without ModBuddy (I don't have a steam copy). Is this really true, or ay there be any way?

EDIT: by the way, the logs don't complain.

Thanks in advance!
 
Last edited:
Hi, I'm trying to make a mod that gives all civs a new ability but I do not know how to make a new ability for an existing civ can anyone help me with this? Thanks in advance!
 
The other day's question is being resolved so far (not confirmed due to a crash in the tool), but I remembered a problem I missed. How can I make my custom civ's city's buildings look like that of a particular civ?
 
Back
Top Bottom