Units do not display properly

Sang_Froid

Chieftain
Joined
Aug 31, 2015
Messages
48
Location
Québec, Canada
Hi
I made a mod ( Overpowered3 ) that was working just fine. it adds new units with custom arts and traits. everything is working well on that mod.
Now i am trying to make a better version of this mod (Overpowered4-1) with more units and a second overpowered civ.
The problem is that all the units of that mod will show as the same unit in game( some kind of spearman )
it makes me think that it is a mistake that affects all my units. maybe something very simple that escapes me.
But it can also because of the horse archer i am trying to create by combining mongol horsearcher and roman composite bowman from Danrell and using the Huns horsearcher as artsdefine.
But it doesnt explain why the units that were working on the prvious mod arent working on this one

anyway I will remake the mod completly by testing every units one by one

i've check everything , i am using the same method as my other mod that works good, but i can't figure out what i am doing wrong.
If someone has the patience and generosity to take some time and look at it i would gladly apreciate it.
Thanks a Lot

the file ( testing1 ) is a copy of Overpowered3 and all units on it are working fine
 

Attachments

Last edited:
From Database.log:
  1. Code:
    [246263.875] columns StrategicViewType, TileType are not unique
    [246263.875] While executing - 'insert into ArtDefine_StrategicView('StrategicViewType', 'TileType', 'Asset') values (?, ?, ?);'
    [246263.875] In XMLSerializer while inserting row into table insert into ArtDefine_StrategicView('StrategicViewType', 'TileType', 'Asset') with  values (ART_DEF_UNIT_SWORDSMAN, Unit, SV_Swordsman.dds, ).
    [246263.875] In XMLSerializer while updating table ArtDefine_StrategicView from file Arts.xml.
    [246263.875] columns StrategicViewType, TileType are not unique
    The error being reported causes the entire contents of the file to be rejected by the game. This means all your art defines for the units are being refused because of this fatal error within the code. The game already has a definition for ART_DEF_UNIT_SWORDSMAN. You cannot repeat the definition within your code.
  2. Code:
    [246269.781] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_JAPANESE_ARCHER" does not exist in Units
    This error may be coming as a result of the previous one mentioned, but also check that you do not have a mismatch on how you have designated the unit. For example calling it UNIT_ARCHER_JAPANESE one place in your mod and calling it UNIT_JAPANESE_ARCHER elsewhere.
  3. You also have a bunch of "missing reference" errors being reported in database log, but these are all occuring because of error #1.
  4. whoward69's enable error logging tutorial
 
Thank you very much for such a quick reply. I think i get it:
I took the swordsman arts and define and switch the artdefine_strategicView asset for SV_Warrior.dds when it was SV_Swordsman.dds
i did that to some units, using swordsman arts and define to have the swordsman animation but warrior icons.
But i just have to change the 4 last lines in units xml to change icons.

the mod is imcomplete and i still need to add the aitype and flavors and more units.

Thank you very much for taking the time it is very much apreciated.
I will try fixing my mod with this new knowledge and if i ever get trouble i'll just start over from my previous mod and test every units one at the time so i'll will know where is the problem.

thanks again for your time and have a great day

<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_ROMAN_SWORDSMAN</StrategicViewType>
<TileType>Unit</TileType>
<Asset>SV_Warrior.dds</Asset>
</Row>
</ArtDefine_StrategicView>
 
Back
Top Bottom