Page 7 of 13 FirstFirst 12345678910111213 LastLast
Results 121 to 140 of 252

Thread: How to add an existing unit to another faction

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Cyrene's Avatar Vicarius
    Join Date
    Nov 2011
    Location
    Una River
    Posts
    2,590

    Default Re: How to add an existing unit to another faction

    I opened the file with notepad, but it appears to be unorganized, here it is

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: How to add an existing unit to another faction











  3. #3
    Cyrene's Avatar Vicarius
    Join Date
    Nov 2011
    Location
    Una River
    Posts
    2,590

    Default Re: How to add an existing unit to another faction

    +rep

  4. #4
    Gondolin's Avatar Tiro
    Join Date
    Apr 2012
    Location
    الفردوس المفقود
    Posts
    285

    Default Re: How to add an existing unit to another faction

    Any idea in order to change avalable mercenaries units for elves ??


  5. #5
    Ayyubid's Avatar Tiro
    Join Date
    Aug 2012
    Location
    Seattle, WA
    Posts
    234

    Default Re: How to add an existing unit to another faction

    Hi, is there a way to sort of do this en masse? Basically I wish to do this in Broken crescent, and make all Muslim units available for all Muslim factions, all Christian units available for all Christian factions, and all Hindu units available for all Hindu factions.

  6. #6
    Gondolin's Avatar Tiro
    Join Date
    Apr 2012
    Location
    الفردوس المفقود
    Posts
    285

    Default Re: How to add an existing unit to another faction

    I think that you are able to do that (I'm pretty sure, but still...)


  7. #7

    Default Re: How to add an existing unit to another faction

    http://www.twcenter.net/forums/showthread.php?t=74945 - adding units to rosters
    http://www.twcenter.net/forums/showthread.php?t=424751 - adding units from another mod

    These links may help.

    "is there a way to sort of do this en masse?"

    No, because you will have to keep changing battle_models_db. There is no automated way.
    Last edited by k/t; December 14, 2012 at 02:00 PM.

  8. #8
    Ayyubid's Avatar Tiro
    Join Date
    Aug 2012
    Location
    Seattle, WA
    Posts
    234

    Default Re: How to add an existing unit to another faction

    Ok. Thanks.

  9. #9

    Default Re: How to add an existing unit to another faction

    In what file the Battle_models are ?

  10. #10
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: How to add an existing unit to another faction

    data\unit_models

  11. #11

    Default Re: How to add an existing unit to another faction

    Quote Originally Posted by irishron View Post
    data\unit_models
    Thanks

  12. #12

    Default Re: How to add an existing unit to another faction

    wow! just what i'm looking. Try it at once. Thks alot!

  13. #13

    Default Re: How to add an existing unit to another faction

    Hi,
    I can produce soldiers of others country's soldiers.my problem is:ı cant solve texture fault that produced some soldiers. I can solve texture fault about high elf's. But dark elf, khrone, kislev etc.. still have problem. They looks white. I guess problem is religion. What will I do about this subject?

  14. #14
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: How to add an existing unit to another faction

    You will need to allocate textures to those factions via the model's entry in the modelDB file - obviously those textures have to be present in your mod in the correct folder.










  15. #15
    the new username's Avatar Praepositus
    Join Date
    Apr 2011
    Location
    Lusitania
    Posts
    5,086

    Default Re: How to add an existing unit to another faction

    I've tried to add pikemen to Genoa in Sicilian Vespers, but it crashes right when I start the game.

    my EDU file:
    type Pikemen
    dictionary Pikemen ; Pikemen
    category infantry
    class spearmen
    voice_type Light
    banner faction main_spear
    banner holy crusade
    soldier Pikemen, 60, 0, 0.8
    attributes sea_faring, hide_forest, can_withdraw, pike,


    very_hardy
    formation 1.2, 1.2, 2.4, 2.4, 8, phalanx, square
    stat_health 1, 0
    stat_pri 2, 3, no, 0, 0, melee, melee_blade, piercing, spear,


    25, 0.9
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr spear, long_pike, spear_bonus_8, ap
    stat_sec 0, 0, no, 0, 0, melee, melee_blade, piercing, sword,


    25, 1 ; 2, 2
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 1, 5, 0, flesh
    ;stat_armour_ex 0, 5, 7, 0, 3, 0, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 1, -2, 3, 2
    stat_mental 5, normal, highly_trained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 490, 190, 85, 65, 240, 4, 60
    armour_ug_levels 2, 3 ; took out first levels
    armour_ug_models Pikemen, Pikemen_ug1, Pikemen_ug2
    ownership france, milan
    era 2 france, milan
    ;unit_info 9, 0, 3
    recruit_priority_offset 0


    Battles model files:
    7 pikemen
    1 4
    51 unit_models/_Units/RN_Light_Lmail/pikemen_lod0.mesh 121
    51 unit_models/_Units/RN_Light_Lmail/pikemen_lod1.mesh 900
    51 unit_models/_Units/RN_Light_Lmail/pikemen_lod2.mesh 2500
    51 unit_models/_Units/RN_Light_Lmail/pikemen_lod3.mesh 6400
    2
    6 france
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_france.textu


    re
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.textu


    re
    38 unit_sprites/france_Pikemen_sprite.spr
    5 milan
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_france.textu


    re
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.textu


    re
    38 unit_sprites/france_Pikemen_sprite.
    2
    6 france
    67 unit_models/AttachmentSets/Final European Light_france_diff.texture
    67 unit_models/AttachmentSets/Final European Light_france_norm.texture


    5 milan
    67 unit_models/AttachmentSets/Final European Light_france_diff.texture
    67 unit_models/AttachmentSets/Final European Light_france_norm.texture
    0
    1
    4 None
    9 MTW2_Pike
    15 MTW2_Non_Shield 1
    17 MTW2_Pike_primary 1
    18 MTW2_Sword_Primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    11 pikemen_ug1
    1 4
    55 unit_models/_Units/RN_Light_Lmail/pikemen_ug1_lod0.mesh 121
    55 unit_models/_Units/RN_Light_Lmail/pikemen_ug1_lod1.mesh 900
    55 unit_models/_Units/RN_Light_Lmail/pikemen_ug1_lod2.mesh 2500
    55 unit_models/_Units/RN_Light_Lmail/pikemen_ug1_lod3.mesh 6400
    2
    6 france
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_france.textu


    re
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.textu


    re
    42 unit_sprites/france_Pikemen_ug1_sprite.spr
    5 milan
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_france.textu


    re
    72


    unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.textu


    re
    42 unit_sprites/france_Pikemen_ug1_sprite.spr
    2
    6 france
    67 unit_models/AttachmentSets/Final European Light_france_diff.texture
    67 unit_models/AttachmentSets/Final European Light_france_norm.texture


    5 milan
    67 unit_models/AttachmentSets/Final European Light_france_diff.texture
    67 unit_models/AttachmentSets/Final European Light_france_norm.texture
    0
    1
    4 None
    9 MTW2_Pike
    15 MTW2_Non_Shield 1
    17 MTW2_Pike_primary 1
    18 MTW2_Sword_Primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    11 pikemen_ug2
    1 4
    57 unit_models/_Units/RN_Half_3Q_Plate/pikemen_ug2_lod0.mesh 121
    57 unit_models/_Units/RN_Half_3Q_Plate/pikemen_ug2_lod1.mesh 900
    57 unit_models/_Units/RN_Half_3Q_Plate/pikemen_ug2_lod2.mesh 2500
    57 unit_models/_Units/RN_Half_3Q_Plate/pikemen_ug2_lod3.mesh 6400
    2
    6 france
    76


    unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_france.t


    exture
    76


    unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.t


    exture
    42 unit_sprites/france_Pikemen_ug2_sprite.spr
    5 milan
    76


    unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_france.t


    exture
    76


    unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.t


    exture
    42 unit_sprites/france_Pikemen_ug2_sprite.spr
    2
    6 france
    67 unit_models/AttachmentSets/Final European Light_france_diff.texture
    67 unit_models/AttachmentSets/Final European Light_france_norm.texture


    5 milan
    67 unit_models/AttachmentSets/Final European Light_france_diff.texture
    67 unit_models/AttachmentSets/Final European Light_france_norm.texture
    0
    1
    4 None
    9 MTW2_Pike
    15 MTW2_Non_Shield 1
    17 MTW2_Pike_primary 1
    18 MTW2_Sword_Primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002


    I can't see what's wrong with them

  16. #16
    Den Stark's Avatar Tiro
    Join Date
    May 2012
    Location
    Vladivostok
    Posts
    248

    Default Re: How to add an existing unit to another faction

    unit_models/_Units/RN_Light_Lmail/pikemen_lod0.mesh, unit_models/_Units/RN_Light_Lmail/pikemen_lod1.mesh, unit_models/_Units/RN_Light_Lmail/pikemen_lod2.mesh, unit_models/_Units/RN_Light_Lmail/pikemen_lod3.mesh... etc. transferred to the appropriate folders?

  17. #17
    the new username's Avatar Praepositus
    Join Date
    Apr 2011
    Location
    Lusitania
    Posts
    5,086

    Default Re: How to add an existing unit to another faction

    I don't think I messed with the mesh files, to where I have to move them?
    Last edited by the new username; July 10, 2013 at 08:51 AM.

  18. #18
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: How to add an existing unit to another faction

    The entries look fine, I am assuming you had a working EDU and modeldb before you did the changes? And then you only added milan to the ownership and era 2 entry in the EDU?
    In the modelDB you simply copied france's lines and substituted 6 france with 5 milan in the copy, and then increase the faction count number from 1 to 2.

    The one thing I can't check is how you handled the spaces - each line in the modeldb requires a space at the end of the line.










  19. #19
    the new username's Avatar Praepositus
    Join Date
    Apr 2011
    Location
    Lusitania
    Posts
    5,086

    Default Re: How to add an existing unit to another faction

    Yes it worked, but what you are saying is, right after the end of an entrie I have to add a space?
    Because I did that in the EDU, but i'm not sure of how would that work in the modeldb file.

  20. #20
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: How to add an existing unit to another faction

    At the end of each line in the modelDB file there should be a <SPACE>
    As far as I know it helps with the processing.










Posting Permissions

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