Custom Civilization Unique Units Not Working

StormBringer0520

Chieftain
Joined
Jun 26, 2018
Messages
1
Alright so I'm creating a custom civilization, and everything works except the unique units. They simply don't appear at all in game.

What I'm trying to do is create a custom civilization based off the America Civ, and I've attempted to change the American B17 unique unit to the Stealth bomber, and name it the "Arlenian Decimator" and I've tried to change the American Minuteman unique unit to a Battleship and rename it "Arlenian Fortress". Problem is, this is my first custom civ, and I haven't been able to find any in-depth guide to unique unit modifications

I've consulted the Database log, and I've found the two errors of interest (will still upload entire log just in case)
Code:
[28923.906] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_ARLENIAN_DECIMATOR" does not exist in Units
[28923.906] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_ARLENIAN_FORTRESS" does not exist in Units

Concerning this error, I have no idea how I would make this exist in units, as I can't find where the units list is stored. I'm more focused on replacing the units, but if there's a way to physically add the unique units, then I would like to do this instead.

I am connecting my units.xml and database log. Please forgive me if there are a million errors, but again, this is my first time creating a custom civ

I've changed the database's extension to .txt since I am unable to upload it with the extension .log
 

Attachments

Your units aren't showing up because of this error
Code:
[31933.468] columns Language, Tag are not unique
[31933.468] While executing - 'insert into Language_en_US('Tag', 'Text') values (?, ?);'
[31933.468] In XMLSerializer while inserting row into table insert into Language_en_US('Tag', 'Text') with  values (TXT_KEY_UNIT_STEALTH_BOMBER, Arlenian Decimator, ).
[31933.468] In XMLSerializer while updating table Language_en_US from file XML/Units.xml.
[31933.468] columns Language, Tag are not unique
You are attempting to restate a "Tag" name the game already has defined, namely TXT_KEY_UNIT_STEALTH_BOMBER. This is not allowed, and game rejects the entire contents of the file.

You have a similar issue being reported with Traits in your XML/Trait.xml file where you are attempting to re-state TRAIT_ART_OF_WAR with new values.
 
Back
Top Bottom