Results 1 to 7 of 7

Thread: moving unit to other factions

Hybrid View

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

    Default moving unit to other factions

    Hi everyone

    im playing the retrofit mod and using one of the text documents I can make an unit recrutible in other factions. but in the battles the units are just moddels with no skins it seems that it would be possible to moddify another text document so that the skin from unit in the original faction loads for another faction aswell but i have no idea where to find something like that. id be very happy if someone knew what i should do

    Thanks

  2. #2
    JuL14n's Avatar Centenarius
    Join Date
    Apr 2009
    Location
    Finland
    Posts
    830

    Default Re: moving unit to other factions

    A small guide I made for one to another mod but it works the same way

    -----------------------------


    Open unit_models\battle_models.modeldb

    find the unit you want to add, you can also look what the unit is named in Export_descr_unit

    for example:

    armour_ug_models Heavy_uruk_sword

    search for it in battle_models.modeldb

    look for:

    Code:
    16 Heavy_uruk_sword 
    1 3 
    66 unit_models/_Units/ES_Greek_Greek_Heavy/Heavy_Uruk_Sword_lod0.mesh 121 
    66 unit_models/_Units/ES_Greek_Greek_Heavy/Heavy_Uruk_Sword_lod0.mesh 1225 
    66 unit_models/_Units/ES_Greek_Greek_Heavy/Heavy_Uruk_Sword_lod0.mesh 6400 
    1
    6 france 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture 
    47 unit_sprites/france_Heavy_uruk_sword_sprite.spr
    1 
    6 france 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons.texture 
    75 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons_norm.texture 0
    and make it look like

    Code:
    16 Heavy_uruk_sword 
    1 3 
    66 unit_models/_Units/ES_Greek_Greek_Heavy/Heavy_Uruk_Sword_lod0.mesh 121 
    66 unit_models/_Units/ES_Greek_Greek_Heavy/Heavy_Uruk_Sword_lod0.mesh 1225 
    66 unit_models/_Units/ES_Greek_Greek_Heavy/Heavy_Uruk_Sword_lod0.mesh 6400 
    2
    6 france 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture 
    47 unit_sprites/france_Heavy_uruk_sword_sprite.spr
    7 england 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture 
    47 unit_sprites/france_Heavy_uruk_sword_sprite.spr
    2 
    6 france 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons.texture 
    75 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons_norm.texture 0
    7 england 
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons.texture 
    75 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons_norm.texture 0
    To make it more understandable, the values before all lines are the count of letters and stuff.
    And the value I increased from 1 to 2, is the count of how many factions that
    are using the model textured.

    And don't leave any empty spaces, it will make the file unreadable!


    Then jump back to Export_descr_unit.txt
    and go to the unit you was adding

    And after all lines that ends with france add , england

    simply this:
    Code:
    ownership        france
    era 0            france
    era 1            france
    era 2            france
    to this

    Code:
    ownership        france, england
    era 0            france, england
    era 1            france, england
    era 2            france, england


    You said you had some rusty experience, so I made it fast.
    I hope that it will help.

    also if you want the unit recruitable on the campaign map,
    go to export_descr_buildings
    and search for the unit

    and then this:

    Code:
    recruit_pool "Uruk-Hai Infantry"  1   0.5   4  0  requires factions { france, }  and region_religion catholic 40
    to this:

    Code:
    recruit_pool "Uruk-Hai Infantry"  1   0.5   4  0  requires factions { france, england, }  and region_religion catholic 40

    I also have to add, that I strongly recommend this tool.
    http://notepad-plus.sourceforge.net/uk/site.htm
    When you have learned how to fully master it you can add plenty of units for other factions
    in a couple of minutes. (=

    A screen that shows how to count letters using it:
    Spoiler Alert, click show to read: 


    Last edited by JuL14n; July 13, 2009 at 04:44 PM.

  3. #3

    Default Re: moving unit to other factions

    well everything seemed to be going very well but when i turn on the game it imidetly crashes with an unspecified error. if I replace the battle_models.modeldb file with the original one again the game works fine. its pretty strange, I probably made some foolish mistake but i dont know what it was. tried this a few times too but stil same result
    Last edited by maxfaren; July 14, 2009 at 04:42 AM.

  4. #4
    JuL14n's Avatar Centenarius
    Join Date
    Apr 2009
    Location
    Finland
    Posts
    830

    Default Re: moving unit to other factions

    Quote Originally Posted by maxfaren View Post
    well everything seemed to be going very well but when i turn on the game it imidetly crashes with an unspecified error. if I replace the battle_models.modeldb file with the original one again the game works fine. its pretty strange, I probably made some foolish mistake but i dont know what it was. tried this a few times too but stil same result
    Read throught the "guide" proper

    But now I guess it's this:

    Click to view content: 
    1 < WRONG! Causes an error!
    6 france
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture
    47 unit_sprites/france_Heavy_uruk_sword_sprite.spr
    7 england
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture
    47 unit_sprites/france_Heavy_uruk_sword_sprite.spr

    2 < Correct
    6 france = 1
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture
    47 unit_sprites/france_Heavy_uruk_sword_sprite.spr
    7 england = 1
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture
    47 unit_sprites/france_Heavy_uruk_sword_sprite.spr

    1 + 1 = 2



    It's the count of every faction specific textures.
    All who have the unit have the same model, but not the same textures.

    Oh, yes you can also have the nr. before the faction wrong.

    hre (holy roman empire) = 3 letters

    3 hre

    england = 7 letters

    7 england
    Last edited by JuL14n; July 14, 2009 at 10:40 AM.

  5. #5

    Default Re: moving unit to other factions

    yes i have to say I can count and add 1 + 1 indeed is 2 and i put in the faction 12 Papal_states because it was so in other parts of the document I made it look like this





    10 aventurier
    1 4
    56 unit_models/_Units/RN_Half_3Q_Plate/aventurier_lod0.mesh 121
    56 unit_models/_Units/RN_Half_3Q_Plate/aventurier_lod1.mesh 900
    56 unit_models/_Units/RN_Half_3Q_Plate/aventurier_lod2.mesh 2500
    56 unit_models/_Units/RN_Half_3Q_Plate/aventurier_lod3.mesh 6400
    2
    6 france
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_france.texture
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture
    41 unit_sprites/france_Aventurier_sprite.spr
    12 papal_states
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_france.texture
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture
    41 unit_sprites/france_Aventurier_sprite.spr
    2
    6 france
    68 unit_models/AttachmentSets/Final European CB Gun_france_diff.texture
    68 unit_models/AttachmentSets/Final European CB Gun_france_norm.texture 0
    12 papal_states
    68 unit_models/AttachmentSets/Final European CB Gun_france_diff.texture
    68 unit_models/AttachmentSets/Final European CB Gun_france_norm.texture 0
    2
    4 None
    18 MTW2_Fast_Crossbow
    20 MTW2_Non_Shield_Fast 1
    21 MTW2_Crossbow_Primary 1
    18 MTW2_Sword_Primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    14 aventurier_ug1 1 4
    60 unit_models/_Units/RN_Half_3Q_Plate/aventurier_ug1_lod0.mesh 121
    60 unit_models/_Units/RN_Half_3Q_Plate/aventurier_ug1_lod1.mesh 900
    60 unit_models/_Units/RN_Half_3Q_Plate/aventurier_ug1_lod2.mesh 2500
    60 unit_models/_Units/RN_Half_3Q_Plate/aventurier_ug1_lod3.mesh 6400
    2
    6 france
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_france.texture
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture
    45 unit_sprites/france_Aventurier_ug1_sprite.spr
    12 papal_states
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_france.texture
    76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture
    45 unit_sprites/france_Aventurier_ug1_sprite.spr
    2
    6 france
    68 unit_models/AttachmentSets/Final European CB Gun_france_diff.texture
    68 unit_models/AttachmentSets/Final European CB Gun_france_norm.texture 0
    12 papal_states
    68 unit_models/AttachmentSets/Final European CB Gun_france_diff.texture
    68 unit_models/AttachmentSets/Final European CB Gun_france_norm.texture 0
    2

  6. #6
    JuL14n's Avatar Centenarius
    Join Date
    Apr 2009
    Location
    Finland
    Posts
    830

    Default Re: moving unit to other factions

    I don't see any big error, only this

    2
    4 None
    18 MTW2_Fast_Crossbow
    20 MTW2_Non_Shield_Fast 1
    21 MTW2_Crossbow_Primary 1
    18 MTW2_Sword_Primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

    It's the nr. of all different animation sets the model have.
    Generals and captain model have most of animations.
    While simple units have only one specific.

    Change it to 1 and it will work, the unit only have one animation set.

    3 examples of animation sets

    4 None
    <animations>
    <animations>
    <animations>
    5 Horse
    <animations>
    <animations>
    <animations>
    8 Elephant
    <animations>
    <animations>
    <animations>

    Good job, you have hopefully now mastered the basics of modeldb.
    Last edited by JuL14n; July 14, 2009 at 01:57 PM.

  7. #7

    Default Re: moving unit to other factions

    Thanks for posting this tutorial! I wish I had searched this forum before I started messing around with the files. Especially since it's so simple!

    It's all right, my files are all backed up. Two steps forward, one step back but I'm getting there!

    Cheers mate

Posting Permissions

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