Adding new leader to existing civ, what is needed?

Jack55555

Chieftain
Joined
Nov 7, 2016
Messages
2
I am still learning the basics of Civ6 modding, and so far I get how it works. You have to include your files in the modinfo, and you have to keep the structure of the original files in the Gameplay folder of civ.

To learn it even better, I am trying to add a new leader to Rome. So far I have those two files:
RomanConquerors_Civilizations.xml
RomanConquerors_Leaders.xml

My question is: what info is required in order to make it work? Right now I have only a few options inside Leaders.xml:

<GameInfo>
<Types>
<Row Type="LEADER_JUSTINIAN" Kind="KIND_LEADER"/>
<Row Type="TRAJANS_COLUMN_TRAIT" Kind="KIND_TRAIT"/>
</Types>
<Leaders>
<Row LeaderType="LEADER_JUSTINIAN" Name="LOC_LEADER_JUSTINIAN_NAME" InheritFrom="LEADER_DEFAULT" SceneLayers="4"/>
</Leaders>
<HistoricalAgendas>
<Row LeaderType="LEADER_JUSTINIAN" AgendaType="AGENDA_OPTIMUS_PRINCEPS"/>
</HistoricalAgendas>
</GameInfo>

The mod loads, but I cannot see anything changing in the civ drop down. What parts am I missing?
 
You should only really have to add stuff that does not already exist for Trajan (i.e. Leader ability). The rest should be inherited (at least in theory).

You're also going to need a config xml. Here's the one for the civ I'm working on.

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
    <Players>
    <Row Domain="StandardPlayers" CivilizationType="CIVILIZATION_VENICE" LeaderType="LEADER_FRANCESCO_MOROSINI" CivilizationName="LOC_CIVILIZATION_VENICE_NAME" CivilizationIcon="ICON_CIVILIZATION_ROME" LeaderName="LOC_LEADER_FRANCESCO_MOROSINI_NAME" LeaderIcon="ICON_LEADER_TRAJAN" CivilizationAbilityName="LOC_TRAIT_CIVILIZATION_SERENISSIMA_NAME" CivilizationAbilityDescription="LOC_TRAIT_CIVILIZATION_SERENISSIMA_DESCRIPTION" CivilizationAbilityIcon="ICON_CIVILIZATION_ROME" LeaderAbilityName="LOC_TRAIT_LEADER_KING_SEAS_NAME" LeaderAbilityDescription="LOC_TRAIT_LEADER_KING_SEAS_DESCRIPTION" LeaderAbilityIcon="ICON_LEADER_TRAJAN"/>
    </Players>
    <PlayerItems>
        <Row CivilizationType="CIVILIZATION_VENICE" LeaderType="LEADER_FRANCESCO_MOROSINI" Type="BUILDING_GREAT_VENETIAN_SHIPYARDS" Icon="ICON_BUILDING_SHIPYARDS" Name="LOC_BUILDING_GREAT_VENETIAN_SHIPYARDS_NAME" Description="LOC_BUILDING_GREAT_VENETIAN_SHIPYARDS_DESCRIPTION" SortIndex="10" />
        <Row CivilizationType="CIVILIZATION_VENICE" LeaderType="LEADER_FRANCESCO_MOROSINI" Type="UNIT_VENETIAN_GALLEASS" Icon="ICON_UNIT_FRIGATE" Name="LOC_UNIT_VENETIAN_GALLEASS_NAME" Description="LOC_UNIT_VENETIAN_GALLEASS_DESCRIPTION" SortIndex="20"/>
    </PlayerItems>
</GameInfo>

I believe this is the file that adds the leader to the list.
 
You should only really have to add stuff that does not already exist for Trajan (i.e. Leader ability). The rest should be inherited (at least in theory).

You're also going to need a config xml. Here's the one for the civ I'm working on.

Code:
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
    <Players>
    <Row Domain="StandardPlayers" CivilizationType="CIVILIZATION_VENICE" LeaderType="LEADER_FRANCESCO_MOROSINI" CivilizationName="LOC_CIVILIZATION_VENICE_NAME" CivilizationIcon="ICON_CIVILIZATION_ROME" LeaderName="LOC_LEADER_FRANCESCO_MOROSINI_NAME" LeaderIcon="ICON_LEADER_TRAJAN" CivilizationAbilityName="LOC_TRAIT_CIVILIZATION_SERENISSIMA_NAME" CivilizationAbilityDescription="LOC_TRAIT_CIVILIZATION_SERENISSIMA_DESCRIPTION" CivilizationAbilityIcon="ICON_CIVILIZATION_ROME" LeaderAbilityName="LOC_TRAIT_LEADER_KING_SEAS_NAME" LeaderAbilityDescription="LOC_TRAIT_LEADER_KING_SEAS_DESCRIPTION" LeaderAbilityIcon="ICON_LEADER_TRAJAN"/>
    </Players>
    <PlayerItems>
        <Row CivilizationType="CIVILIZATION_VENICE" LeaderType="LEADER_FRANCESCO_MOROSINI" Type="BUILDING_GREAT_VENETIAN_SHIPYARDS" Icon="ICON_BUILDING_SHIPYARDS" Name="LOC_BUILDING_GREAT_VENETIAN_SHIPYARDS_NAME" Description="LOC_BUILDING_GREAT_VENETIAN_SHIPYARDS_DESCRIPTION" SortIndex="10" />
        <Row CivilizationType="CIVILIZATION_VENICE" LeaderType="LEADER_FRANCESCO_MOROSINI" Type="UNIT_VENETIAN_GALLEASS" Icon="ICON_UNIT_FRIGATE" Name="LOC_UNIT_VENETIAN_GALLEASS_NAME" Description="LOC_UNIT_VENETIAN_GALLEASS_DESCRIPTION" SortIndex="20"/>
    </PlayerItems>
</GameInfo>

I believe this is the file that adds the leader to the list.
I'm sorry to necro this thread but I was googling a bit about the "inheritfrom" tag. And your statement about "only add what doesn't exist" seems like exactly what I need. I'm trying to make an Obama Civ, but I only want to change his unique unit and his Leader trait. So far, I've basically been making the Civ from scratch but that seems like overkill. Can the inherit tag help me basically use the American Civ while just adding Obama's unique stuff?
 
Back
Top Bottom