Results 1 to 4 of 4

Thread: Missing unit card.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default

    Alright, I'm playing the Third Age mod, and I'm trying to add some slave units (rebels faction unique units) to some playable factions.
    Everything works well, as in I can recruit and use them in battles, BUT I have those "grey peasants" as my unit card.

    I technically know how to deal with the following files : EDB, EDU, battle_models.modeldb, UI files and export_units.txt.
    I add, remove, switch units from faction to another, etc... pretty often and I'm usually able to make it work.

    I put the correct files in the correct UI folders, and double checked (triple ! ^^) the spelling too.
    I also put the picture files in all the factions' folders that could be labelled as the faction ownership of the unit, to see if it would change something, but it did not.

    See, it's killing me... it SHOULD work but it does not.
    Anyone has an idea what I did wrong ?
    Thanks in advance !

    PS: I checked the various threads about this "grey peasants" error first, and none could be of any help.
    I thought first it could come from the fact that their ownership is labelled as "slave, sicilly" in EDU and "slave / merc" in battle_models.modeldb, and that this could cause the problem as I heard it searches the picture in the "merc" folder first, but it didn't seem to be the case... :/

    Just clarifying it as I realised what I did might not be that clear.

    1. I added a unit in the EDU file, simply copying an existing one - changing the ownership and the name, as well as the officer.

    type Dorwinion Retainers
    dictionary Dorwinion_Retainers ; Dorwinion Retainers
    category infantry
    class heavy
    voice_type Heavy
    banner faction main_infantry
    banner holy crusade
    soldier Varangian_Guard, 48, 0, 1.2
    officer dale_captain_early_flag
    officer dale_captain_early_flag

    mount_effect elephant -4
    attributes sea_faring, hide_forest, hardy, can_withdraw, mercenary_unit
    formation 1.2, 1.2, 2.4, 2.4, 4, square
    stat_health 1, 2
    stat_pri 9.6, 6, no, 0, 0, melee, melee_blade, slashing, axe, 25, 1
    stat_pri_attr ap
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 1
    stat_sec_attr no
    stat_pri_armour 6, 6, 2.4, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 0, -1, 0, -2
    stat_mental 15, normal, trained
    stat_charge_dist 15
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 500, 210, 75, 75, 500, 4, 100
    armour_ug_levels 2
    armour_ug_models english_kings_huscarls
    ownership scotland
    era 0 scotland
    era 1 scotland
    era 2 scotland
    recruit_priority_offset 0
    2. I added a new unit description in the export_units.txt file.

    ¬----------------
    {Dorwinion_Retainers} Dorwinion Retainers
    {Dorwinion_Retainers_descr}
    These Axemen are the household troops of Dorwinion noblemen and lords. Protected by lamellar armour and wielding axes, they resemble the old way of the northmen, especially when they fight on foot. Brave and fierce, with their axes and armor they make excellent shock infantry.
    {Dorwinion_Retainers_descr_short}
    Heavy Axemen in the service of the local lord.
    3. I copied the old unit's UI cards from UI/unit_info and UI/units to the other faction's folder, changing their name accordingly to the name I gave them :

    "Unit_info" folder : Dorwinion_Retainers_info.tga
    "Units" folder : #Dorwinion_Retainers.tga
    4. I added the needed lines in the EDB files, in order to be able to recruit them. Won't copy them here, I doubt this has anything to do with it.

    5. I modified the battle_models.modeldb file, adding the necessary lines. I doubt this has anything to do with it either, as it caused no CTD at start, nor when using them in battles.

    I hope this is a bit more clear.
    Did I miss something ? This is the steps I usually follow when adding/removing already existing units from a faction to another.
    Last edited by Ishan; January 30, 2011 at 05:29 PM. Reason: double post

  2. #2

    Default Re: Missing unit card.

    You might need to use lower-case letters for the UI and Unit Info images, such as dorwinion_retainers_info.tga and #dorwinion_retainers.tga. Did you just copy/paste existing tga files, or did you make your own?

  3. #3

    Default Re: Missing unit card.

    The info card goes in the:-
    UI\unit_info\faction X
    The UI card goes in the:-
    UI\units\faction X

    Where is faction X folder is the name of the faction.

  4. #4

    Default Re: Missing unit card.

    I copy pasted existing one, and changed the name according to the new unit's name.
    Thanks for the help guys, but I dropped this idea and I got it working another way around. :p

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •