Log in

View Full Version : Unit Card problem



Byzantine Emperor
06-06-2006, 14:35
When I try to change a units card, it doesn't show in the game, instead it gives me the vanilla one. I have searched for every 'UI' it could be looking at, and I have changed them all. Nothing works. The vanilla unit cards for those units no longer even exist, but it still displays them?!

Onemanshow
06-06-2006, 15:41
Yep, although you can't see them, the vanilla cards unit are contained into a files *.pack in data/packs directory. The engine game search there for vanilla units informations and it's probably hard coded. Personnaly, to avoid this problem i change the unit name into model_battle.txt and descr_unit.txt, then, engine game will proceed like with news units for UI cards and textures...

caius britannicus
06-06-2006, 16:11
^^^ thats your best bet. Change the names in the text files then make a UI folder in the data folder and away you go.

Byzantine Emperor
06-06-2006, 19:05
Thats what I was thinking but I hoped there was an easier way. I have to change descr_strat as well.

Oh yeah I have used Vercingetorix's Xpak and I even changed the pack version ( with backing up ) but no luck. Looks like your option then.

Monkwarrior
06-07-2006, 00:55
It is simpler than it seems.

You must change in export_descr_unit only the dictionary name.
This is the method I use:

type barb peltast gaul
dictionary barb_peltast_gaul2 ; Skirmisher Warband
(note the 2 at the end)

The next step is to change the same in export_units (text folder):

{barb_peltast_gaul2}
{barb_peltast_gaul2_descr}
{barb_peltast_gaul2_descr_short}

And finally, add the 2 (or whatever you add) at the end of the unit card name (#barb_peltast_gaul2.tga) and info picture (barb_peltast_gaul2_info.tga).

That's all, because all the other files use the "type" instead of the "dictionary" name. :2thumbsup:

Byzantine Emperor
06-07-2006, 17:24
Why does this happen? I have changed various unit cards before, and they seemed to work...

caius britannicus
06-08-2006, 14:33
if you aren't changing the dictionary name in the edu then the game is looking for the vanilla card in the packs first before it looks in data/ui folder. If it finds the card in the packs it uses that one. Changing the name is effectively the same as deleting the pack file as the game cannot find the card in the pack it then looks for it in data/ui.