Adding custom made Icons and Portraits for new units using ICONS.XML

A new Units and Unit Bins artdef lab exercise, where the two things are declared separately.... (I'm yet to fix up Slashers after i've got a free time slot today).. Pathfinder

While I think i've got everything right. but no... Portraits and Icons shown up but not the unit itself.
 

Attachments

  • Pathfinder Error.jpg
    Pathfinder Error.jpg
    730.9 KB · Views: 260
  • Lonecat Database4.rar
    Lonecat Database4.rar
    486 bytes · Views: 246
  • Lonecat Pathfinder.rar
    Lonecat Pathfinder.rar
    148 KB · Views: 231
in the Unit_Bins.artdef you made unnecessary entries. When you click on "UnitAttachmentBins", then everything except of the "Armor" block is unnecessary, because you did not make new assets for most of the blocks, the only new assets you created belongs to the "Armor" block. So Hats, Bows, Bodies, BaseMale_Face_Hair and BaseMale_Ancient_To_Medieval. Those blocks are unnecessary. Other than that the Unit_Bins.artdef seems correct. :)

i think the actual reason for the unit not showing up ingame is in Pathfinder.art.xml

your current code:

Code:
    <Element>
      <libraryName text="Unit"/>
        <Element text="Unit"/>
      <relativePackagePaths>
      </relativePackagePaths>
    </Element>

this will be better:

Code:
    <Element>
      <libraryName text="Unit"/>
      <relativePackagePaths>
        <Element text="Unit"/>
      </relativePackagePaths>
    </Element>

change it and then tell me if it works, if not, then you would have to make the both artdefs again, but this time copy and paste from the original-game artdefs, and change only the necessary entries.
 
Yes. Pathfinder graphical problems solved. just one minor refinement is needed so this unit can hold and shoot bows correctly :p

Pathfinder in action2.jpg

But same solution doesn't seems to work with Slashers. Moved all attachment bins to UNIT BINS but it doesn't solve anything yet.


EDIT:
1. Pathfinder is finally fixed. Bows are handled the way it should be.
2. But Slashers. Despite my best effort. it still shows Warriors rather than Spearmen model with axes and khopesh.
EDIT2:
I have to rework Slashers from ground up. Backed up some useful code files and assets, and remake Armor assets, write an entirely new UNITS AND UNIT BINS artdef files. and my effort bear fruits. And so my confidence restored! YAY :) :D
 

Attachments

  • Pathfinder in action1.jpg
    Pathfinder in action1.jpg
    700.8 KB · Views: 254
  • Slasher in action1.jpg
    Slasher in action1.jpg
    598.1 KB · Views: 294
Last edited:
Back
Top Bottom