Results 1 to 10 of 10

Thread: Arabian peasant infantry uses swords...

  1. #1

    Default Arabian peasant infantry uses swords...

    Rather than to use the best units available I wanted to do quantity over quality run, making only stuff like levies and militiamen as fatimid caliphate. The problem is, when I recruit peasant infantry, they for some reason have swords and shields, which I honestly find a bit inaccurate. Is there any way to change it to say, long knives, spears or maces?

  2. #2
    jurcek1987's Avatar Protector Domesticus
    Join Date
    Sep 2013
    Location
    Slovenia
    Posts
    4,082

    Default Re: Arabian peasant infantry uses swords...

    Ofcourse it's possible but it would require you to be familiar with 3d modding because the models have to be adjusted manually

  3. #3

    Default Re: Arabian peasant infantry uses swords...

    Quote Originally Posted by jurcek1987 View Post
    Ofcourse it's possible but it would require you to be familiar with 3d modding because the models have to be adjusted manually
    Hmm, I remember though that the original game actually had models where they carried knives. Isn't there a way to restore that?

  4. #4

    Default Re: Arabian peasant infantry uses swords...

    Hmm, I tried replacing the peasants with Mutatawwi's models but they have no texture in battle. I have edited the battle_models.modeldb as following

    11 me_peasants
    1 4
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod0.mesh 121
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod1.mesh 900
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod2.mesh 2500
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod3.mesh 6400
    7
    5 moors
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    5 egypt
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    5 turks
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    7 mongols
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    8 timurids
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    7 kwarezm
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    5 slave
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    7
    5 moors
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    5 egypt
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    5 turks
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    7 mongols
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    8 timurids
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    7 kwarezm
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    5 slave
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    1
    Still nothing though. I also changed export_desc_units as following:
    type ME Peasants
    dictionary ME_Peasants ; Peasants, r
    category infantry
    class light
    voice_type Light
    banner faction main_infantry
    banner holy crusade
    soldier ME_Peasants, 80, 0, 0.75
    officer eastern_captain

    attributes sea_faring, hide_forest, can_withdraw, is_peasant, peasant, free_upkeep_unit
    formation 1.4, 1.4, 2.8, 2.8, 6, square
    stat_health 1, 0
    stat_pri 1, 0, no, 0, 0, melee, melee_simple, piercing, knife, 45, 1
    stat_pri_attr no
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 1
    stat_sec_attr no
    stat_pri_armour 0, 0, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 0
    stat_ground 1, 1, 1, -1
    stat_mental 3, low, untrained
    stat_charge_dist 6
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 180, 85, 65, 50, 180, 4, 20
    armour_ug_levels 0, 1
    armour_ug_models Mutatawwi'a, Mutatawwi'a
    ownership moors, egypt, turks, mongols, kwarezm, slave, timurids
    era 0 moors, egypt, turks, mongols, kwarezm
    era 1 moors, egypt, turks, mongols, kwarezm
    era 2 moors, egypt, turks, mongols, kwarezm, timurids
    recruit_priority_offset -50
    Can anybody please advise me on what am I doing wrong?

  5. #5
    jurcek1987's Avatar Protector Domesticus
    Join Date
    Sep 2013
    Location
    Slovenia
    Posts
    4,082

    Default Re: Arabian peasant infantry uses swords...

    Yes if you replace the current models with the old ones. But you'd also need to change their weapons in export_descr_units.txt file plus the animations entries in battle_models.modelsdb. I can walk you through the steps if you wish but it will be very confusing if you haven't done this kind of editing before. Are you sure those peasants are worth the trouble

    EDIT: You didn't need to change the battle_models entry, you could have just replace the soldier and armour_ug_models in EDU with the mutatawwi ones. Otherwise you'd need to change the texture entries as well.
    Last edited by jurcek1987; January 19, 2017 at 06:13 PM.

  6. #6
    jurcek1987's Avatar Protector Domesticus
    Join Date
    Sep 2013
    Location
    Slovenia
    Posts
    4,082

    Default Re: Arabian peasant infantry uses swords...

    Change the solider and armour_ug_models of peasants to "mutatawwi". But mutatawwi are mercenaries so they only have mercs entry for their textures. You can either additional entries for fatimid faction, or the easiest solution is to add mercenary_unit line to attributes. Like this

    attributes sea_faring, hide_forest, can_withdraw, is_peasant, peasant, free_upkeep_unit, ​mercenary_unit

  7. #7

    Default Re: Arabian peasant infantry uses swords...

    Quote Originally Posted by jurcek1987 View Post
    Yes if you replace the current models with the old ones. But you'd also need to change their weapons in export_descr_units.txt file plus the animations entries in battle_models.modelsdb. I can walk you through the steps if you wish but it will be very confusing if you haven't done this kind of editing before. Are you sure those peasants are worth the trouble
    Yes, the great sultan wishes to conquer the entire world by drowning it in a flood of peasants! Anyways yeah I would like to, it just irks me to see peasant conscripts be armed with a scimitar, a shield, and another straight sword on their hip.

    EDIT: You didn't need to change the battle_models entry, you could have just replace the soldier and armour_ug_models in EDU with the mutatawwi ones. Otherwise you'd need to change the texture entries as well.
    I did that, but that just caused the textures to disappear. I did something similar when replacing the models of English light men at arms with the ones with different helmets the french have and I managed to pull that off fine. It's almost as if the game didn't want to load mercenary textures for a faction unit.

  8. #8

    Default Re: Arabian peasant infantry uses swords...

    Quote Originally Posted by jurcek1987 View Post
    Change the solider and armour_ug_models of peasants to "mutatawwi". But mutatawwi are mercenaries so they only have mercs entry for their textures. You can either additional entries for fatimid faction, or the easiest solution is to add mercenary_unit line to attributes. Like this

    attributes sea_faring, hide_forest, can_withdraw, is_peasant, peasant, free_upkeep_unit, ​mercenary_unit
    Hold on, will that mercenary_unit really just allow the unit to use merc textures? Won't it also change other attributes such as upkeep?

    You can either additional entries for fatimid faction
    Oh I get it. When I change the soldier to Mutatawwi's It automatically links the soldier entry with what is written in the BMM, so to make sure then unit loads the merc textures I have to make nation texture entries for mutatawwi's themselves, rather than for the peasants.

    Simply put, I gotta switch the unit itself, rather than trying to load up a model and texture on a unit it doesn't belong to.

    If I understand it right, this is how it should go:
    11 mutatawwi'a
    1 4
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod0.mesh 121
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod1.mesh 900
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod2.mesh 2500
    58 unit_models/_Units/ME_Burmous_Padded/mutatawwi'a_lod3.mesh 6400
    7
    5 moors
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    5 egypt
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    5 turks
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    7 mongols
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    8 timurids
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    7 kwarezm
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    5 slave
    70 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_mercs.texture
    71 unit_models/_Units/ME_Burmous_Padded/textures/ME_burmous_normal.texture
    40 unit_sprites/merc_Mutatawwi'a_sprite.spr
    7
    5 moors
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    5 egypt
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    5 turks
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    7 mongols
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    8 timurids
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    7 kwarezm
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0
    5 slave
    59 unit_models/AttachmentSets/Final ME Heavy_merc_diff.texture
    59 unit_models/AttachmentSets/Final ME Heavy_merc_norm.texture 0

  9. #9

    Default Re: Arabian peasant infantry uses swords...

    YEP! All done!

    Thanks for all your help, that advice about adding nation entries was golden.

  10. #10
    jurcek1987's Avatar Protector Domesticus
    Join Date
    Sep 2013
    Location
    Slovenia
    Posts
    4,082

    Default Re: Arabian peasant infantry uses swords...

    Ok great! It's good that you have modding experience otherwise it would take quite awhile to explain how to add those entries. This file is awfully annoying to edit, so many little things that can go wrong

Posting Permissions

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