Civilization Mod has a few issues help please

SlySlySly

Warlord
Joined
Feb 8, 2017
Messages
293
Location
Denver
Ok, so I'm working on my mod and it's not going well.

Bugs:
Seringezu unit doesn't work anymore, (won't get connected to civilization)
Civilization icons don't work at all - help needed really badly there
Culture.Artdef doesn't work at all

Does someone mind helping with this? I have no clue what's happening
 

Attachments

Last edited:
Hey I haven't heard anything and it's been a while, so I'll bump this thread instead of making new one.
 
Someone said to me a few days ago, that it helps if you post your logs.
Grab Database.log, Lua.log, and Modding.log... Post them here and I am sure someone wild more insights as to what you're experiencing...
 
You should really disable all the mods that are not required to run your mod when you're testing your mod. This way you would know for sure that problems are caused by your mod and not some other things.
I thought I did... I hit disable all. I'll pop over and redo it
 
Maybe the logs contain info from before disabling... modding lists many other mods. But ynamp is active I think, and some DLCs. It's simply easier to analyze logs if they are 'clean'.
I think the new ones are better. Correct me if I'm wrong
 
Let's start with the easiest of all fixes.... add Language="en_US" to DiplomacyText.xml file for each row.
Example:
<Row Tag="LOC_DIPLO_SOMETHING_SOMETHING" Language="en_US"><Text>Something Something</Text></Row>

That should fix your Language errors.... See below for your Units.xml

Your problem is that you still have UNIT_IRONCLAD as your base.... It should look like this

<UnitUpgrades>
<Row Unit="UNIT_YOURUNITNAME" UpgradeUnit="UNIT_UNITITUPGRADESTO"/>
</UnitUpgrades>

I hope that helps.... Word of advise, try using the unspoken standard for file structure... Core, ArtDefs, XLPs, Textures, etc. that way it is easier to look at your files... (that's just me being picky, you do as best works for you :P )
 
Last edited:
Let's start with the easiest of all fixes.... add Language="en_US" to DiplomacyText.xml file for each row.
Example:
<Row Tag="LOC_DIPLO_SOMETHING_SOMETHING" Language="en_US"><Text>Something Something</Text></Row>

That should fix your Language errors.... See below for your Units.xml

Your problem is that you still have UNIT_IRONCLAD as your base.... It should look like this

<UnitUpgrades>
<Row Unit="UNIT_YOURUNITNAME" UpgradeUnit="UNIT_UNITITUPGRADESTO"/>
</UnitUpgrades>

I hope that helps.... Word of advise, try using the unspoken standard for file structure... Core, ArtDefs, XLPs, Textures, etc. that way it is easier to look at your files... (that's just me being picky, you do as best works for you :p )
Wait, what do I do if it doesn't upgrade to anything, that's what I was sort of trying to do
 
There are a few things that don't look right to me with your Units.xml... what are you trying to accomplish with your unit? Replace the IRONCLAD, the DESTROYER, or have it as it own unit along with the former two?

//Edit1:
Try this instead... it will replace the DESTROYER. You might need to change a few items to match your CIV....
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
    <Types>
        <Row Kind="KIND_UNIT" Type="UNIT_SERINGUDEZU"/>
    </Types>
    <UnitAiInfos>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITAI_COMBAT"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITAI_EXPLORE"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITTYPE_MELEE"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITTYPE_NAVAL"/>
    </UnitAiInfos>
    <TypeTags>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_NAVAL_MELEE"/>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_REVEAL_STEALTH"/>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_ANTI_AIR"/>
    </TypeTags>
    <Units>
        <Row UnitType="UNIT_SERINGUDEZU" BaseMoves="5" Cost="520"    AdvisorType="ADVISOR_CONQUEST" BaseSightRange="5"    ZoneOfControl="true" Domain="DOMAIN_SEA"    FormationClass="FORMATION_CLASS_NAVAL"    Name="LOC_UNIT_SERINGUDEZU_NAME" Description="LOC_UNIT_SERINGUDEZU_DESCRIPTION"    PurchaseYield="YIELD_GOLD" PseudoYieldType="PSEUDOYIELD_UNIT_NAVAL_COMBAT" PromotionClass="PROMOTION_CLASS_NAVAL_MELEE" Maintenance="7"    Combat="100" PrereqTech="TECH_COMBINED_ARMS" AntiAirCombat="50"/>
    </Units>
    <UnitReplaces>
        <Row CivUniqueUnitType="UNIT_SERINGUDEZU" ReplacesUnitType="UNIT_DESTROYER"/>
    </UnitReplaces>
</GameData>
 
Last edited:
There are a few things that don't look right to me with your Units.xml... what are you trying to accomplish with your unit? Replace the IRONCLAD, the DESTROYER, or have it as it own unit along with the former two?

//Edit1:
Try this instead... it will replace the DESTROYER. You might need to change a few items to match your CIV....
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
    <Types>
        <Row Kind="KIND_UNIT" Type="UNIT_SERINGUDEZU"/>
    </Types>
    <UnitAiInfos>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITAI_COMBAT"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITAI_EXPLORE"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITTYPE_MELEE"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITTYPE_NAVAL"/>
    </UnitAiInfos>
    <TypeTags>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_NAVAL_MELEE"/>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_REVEAL_STEALTH"/>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_ANTI_AIR"/>
    </TypeTags>
    <Units>
        <Row UnitType="UNIT_SERINGUDEZU" BaseMoves="5" Cost="520"    AdvisorType="ADVISOR_CONQUEST" BaseSightRange="5"    ZoneOfControl="true" Domain="DOMAIN_SEA"    FormationClass="FORMATION_CLASS_NAVAL"    Name="LOC_UNIT_SERINGUDEZU_NAME" Description="LOC_UNIT_SERINGUDEZU_DESCRIPTION"    PurchaseYield="YIELD_GOLD" PseudoYieldType="PSEUDOYIELD_UNIT_NAVAL_COMBAT" PromotionClass="PROMOTION_CLASS_NAVAL_MELEE" Maintenance="7"    Combat="100" PrereqTech="TECH_COMBINED_ARMS" AntiAirCombat="50"/>
    </Units>
    <UnitReplaces>
        <Row CivUniqueUnitType="UNIT_SERINGUDEZU" ReplacesUnitType="UNIT_DESTROYER"/>
    </UnitReplaces>
</GameData>
The unit works now, but the problem is that it is not linked to the civilization...
Code:
<?xml version="1.0" ?>
<GameInfo>
    <Types>
        <Row Kind="KIND_UNIT" Type="UNIT_SERINGUDEZU"/>
        <Row Kind="KIND_ABILITY" Type="ABILITY_SERINGUDEZU"/>
    </Types>
    <Units>
        <Row UnitType="UNIT_SERINGUDEZU" BaseMoves="5" Cost="520"    AdvisorType="ADVISOR_CONQUEST" BaseSightRange="5"    ZoneOfControl="true" Domain="DOMAIN_SEA"    FormationClass="FORMATION_CLASS_NAVAL"    Name="LOC_UNIT_SERINGUDEZU_NAME" Description="LOC_UNIT_SERINGUDEZU_DESCRIPTION"    PurchaseYield="YIELD_GOLD" PseudoYieldType="PSEUDOYIELD_UNIT_NAVAL_COMBAT" PromotionClass="PROMOTION_CLASS_NAVAL_MELEE" Maintenance="7"    Combat="100" PrereqTech="TECH_COMBINED_ARMS" AntiAirCombat="50"/>
    </Units>
    <UnitUpgrades>
       <Row Unit="UNIT_IRONCLAD" UpgradeUnit="UNIT_SERINGUDEZU"/>
     </UnitUpgrades>
    <UnitReplaces>
        <Row CivUniqueUnitType="UNIT_SERINGUDEZU" ReplacesUnitType="UNIT_DESTROYER"/>
    </UnitReplaces>
    <CivilizationTraits>
    <Row CivilizationType="CIVILIZATION_RAITOROZU" TraitType="TRAIT_CIVILIZATION_UNIT_SERINGUDEZU"/>
</CivilizationTraits>
    <UnitAIInfos>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITAI_COMBAT"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITAI_EXPLORE"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITTYPE_MELEE"/>
        <Row UnitType="UNIT_SERINGUDEZU" AiType="UNITTYPE_NAVAL"/>
    </UnitAIInfos>
    <Tags>
        <Row Tag="CLASS_NAVAL" Vocabulary="ABILITY_CLASS"/>
        <Row Tag="CLASS_SERINGUDEZU" Vocabulary="ABILITY_CLASS"/>
    </Tags>
    <TypeTags>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_NAVAL_MELEE"/>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_REVEAL_STEALTH"/>
        <Row Type="UNIT_SERINGUDEZU" Tag="CLASS_ANTI_AIR"/>
    </TypeTags>
    <UnitAbilities>
        <Row Description="LOC_ABILITY_SERINGUDEZU_DESCRIPTION"
            Name="LOC_ABILITY_SERINGUDEZU_NAME" UnitAbilityType="ABILITY_SERINGUDEZU"/>
    </UnitAbilities>
</GameInfo>
 
To link it to your civilization, in <Units>
Add: TraitType="*insert your civ trait here*"

So in this case:
TraitType="TRAIT_CIVILIZATION_UNIT_SERINGUDEZ"
 
Back
Top Bottom