I have a png file called rifle_unit.png. I have created a unit in main_units, land_units, and I am able to load him up into the game.
My problem is that the unit card is not loading up in game for that unit - and crashes the game on start up when I add the unit_variant and variant tables to the mod pack (it works fine without these 2 tables added to the pack).
The unit currently uses an existing unit card - the Thunders. So, I modified the variant tables, and it still does not display in game.
Why is this, and how can I fix it?
My first question: where do I put the png icon that I want to put on the unit?
Below are the tables I have for adding a custom icon to a unit card.
Tables:
variants
variant_name tech_folder variant_filename scale scale_variation low_poly_filename mount_scale
wh_dwf_sentinels rifle_unit 0.95 0.05 //Some random Location 1
unit_variants
name faction unit variant unit_card
wh_main_dwf_sentinels wh_main_dwf_sentinels wh_dwf_sentinels rifle_unit
Notes on above:
1) rifle_unit is the same of the png icon. That is, I have an image: rifle_unit.png
2) wh_main_dwf_sentinels in the column `name` is the name of the unit_variant
3) wh_main_dwf_sentinels in the column `unit` is the name of it in the `land_units` table.
What am I doing wrong? Where should the icon be stored for it to recognise it? I assume the game is crashing because it cannot find `rifle_unit.png` somewhere.




Reply With Quote






