Results 1 to 11 of 11

Thread: [HELP]: export_descr_unit.txt

Hybrid View

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

    Default [HELP]: export_descr_unit.txt

    I need another model for a certain unit. To be precise I need to change the model the game uses for the unit titled Hospitaler Sargent.

    So what I do is I go to the line where it says:

    armour_ug_models Hospitaller_Sergeant, Hospitaller_Sergeant_ug1

    So I get the 'Hospitaller_Sergeant, Hospitaller_Sergeant_ug1' part, and replace it with the one who's model I what for the unit.

    FOr example, if I want those sargent with the look of the Canons of the Holy Spulcher I change it for this:

    armour_ug_models Canons_Of_The_Holy_Sepulcher, Canons_Of_The_Holy_Sepulcher_ug1

    It works great, it takes the model and works just as it should. The problem is that I cannot use the armour_ug_models line of any other faction. If I try using for example the code:

    Armored_Sergeants, Armored_Sergeants_ug1

    which is only for england, france, hre, milan, venice, papal_states, sicily and slave... The model itself appears, but all white and shiny, with no skin. And that's really strange, cause Antioq have their own en_hmail_lmail texture, which is the one used by that model.


    How can I make it work?


  2. #2
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: [HELP]: export_descr_unit.txt

    You have to add texture and attachment entries for each faction that you want to use the unit in the modeldb file. Make sure that you update the faction count numbers when you do or you'll get a crash.

    Check the tutorials section for details or check out Alletun's Unit maker's Tome of Knowledge :

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  3. #3

    Default Re: [HELP]: export_descr_unit.txt

    Quote Originally Posted by Caesar Clivus View Post
    You have to add texture and attachment entries for each faction that you want to use the unit in the modeldb file. Make sure that you update the faction count numbers when you do or you'll get a crash.

    But as I said... Antioq already has its en_lmail_hmail texture, which is the one needed for the armored sargents.





    Check the tutorials section for details or check out Alletun's Unit maker's Tome of Knowledge :
    Count numbers?
    Last edited by Revan Shan; October 04, 2009 at 04:03 AM.


  4. #4
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: [HELP]: export_descr_unit.txt

    Quote Originally Posted by Revan Shan View Post
    But as I said... Antioq already has its en_lmail_hmail texture, which is the one needed for the armored sargents.
    It doesn't matter if the texture exists or not. You have to tell the modeldb file that it needs to use that texture for the faction or you'll end up with the shiny soldiers problem that you have.
    Count numbers?
    I dont mean the character count numbers. It's the faction count number that you will need to update.
    Code:
    17 armored_sergeants 
    1 4 
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod0.mesh 121 
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod1.mesh 900 
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod2.mesh 2500 
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod3.mesh 6400 
    9 
    7 england 
    73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_englana.texture 
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Haail_normal.texture 
    53 unit_sprites/england_Dummy_EN_Spearmen_ug2_sprite.spr 
    6 france 
    72 unit_models/_Units/EN_Lmail_Hmail/textures/en_smail_smail_france.texture 
    72 unit_models/_Units/EN_Lmail_Hmail/textures/en_smail_smail_normal.texture 
    52 unit_sprites/france_Dummy_EN_Spearmen_ug2_sprite.spr
    The number highlighted in red is the faction count number. It tells the game how many faction texture entries will follow. In the example above, there will be 9 factions listed, each with a texture entry (I only included a couple to save space. The attachments entry for each model will also have this number that has to also be updated or you'll get a crash.
    Code:
    9 
    7 england 
    58 unit_models/AttachmentSets/Final Kite_england_diff.texture 
    58 unit_models/AttachmentSets/Final Kite_england_norm.texture 0  
    6 france 
    57 unit_models/AttachmentSets/Final Kite_france_diff.texture 
    57 unit_models/AttachmentSets/Final Kite_france_norm.texture 0

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

  5. #5

    Default Re: [HELP]: export_descr_unit.txt

    I tried to add a line for Jerusalem but the game crashes.

    Here you can see the changes:

    Spoiler Alert, click show to read: 

    17 armored_sergeants
    1
    4
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod0.mesh 121
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod1.mesh 900
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod2.mesh 2500
    61 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_lod3.mesh 6400
    10
    7 england
    73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_england.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    53 unit_sprites/england_Dummy_EN_Spearmen_ug2_sprite.spr
    6 france
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_france.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    52 unit_sprites/france_Dummy_EN_Spearmen_ug2_sprite.spr
    3 hre
    69 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_hre.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    49 unit_sprites/hre_Dummy_EN_Spearmen_ug2_sprite.spr
    5 milan
    71 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_milan.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    51 unit_sprites/milan_Dummy_EN_Spearmen_ug2_sprite.spr
    6 venice
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_venice.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    52 unit_sprites/venice_Dummy_EN_Spearmen_ug2_sprite.spr
    12 papal_states
    78 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_papal_states.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    58 unit_sprites/papal_states_Dummy_EN_Spearmen_ug2_sprite.spr
    6 sicily
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_sicily.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    52 unit_sprites/sicily_Dummy_EN_Spearmen_ug2_sprite.spr
    5 slave
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_rebels.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    51 unit_sprites/slave_Dummy_EN_Spearmen_ug2_sprite.spr
    7 normans
    73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_england.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    53 unit_sprites/normans_Dummy_EN_Spearmen_ug2_sprite.spr
    9 jerusalem
    75 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_jerusalem.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    53 unit_sprites/normans_Dummy_EN_Spearmen_ug2_sprite.spr
    10
    7 england
    58 unit_models/AttachmentSets/Final Kite_england_diff.texture
    58 unit_models/AttachmentSets/Final Kite_england_norm.texture
    0
    6 france
    57 unit_models/AttachmentSets/Final Kite_france_diff.texture
    57 unit_models/AttachmentSets/Final Kite_france_norm.texture
    0
    3 hre
    54 unit_models/AttachmentSets/Final Kite_hre_diff.texture
    54 unit_models/AttachmentSets/Final Kite_hre_norm.texture
    0
    5 milan
    56 unit_models/AttachmentSets/Final Kite_milan_diff.texture
    56 unit_models/AttachmentSets/Final Kite_milan_norm.texture
    0
    6 venice
    57 unit_models/AttachmentSets/Final Kite_venice_diff.texture
    57 unit_models/AttachmentSets/Final Kite_venice_norm.texture
    0
    12 papal_states
    63 unit_models/AttachmentSets/Final Kite_papal_states_diff.texture
    63 unit_models/AttachmentSets/Final Kite_papal_states_norm.texture
    0
    6 sicily
    57 unit_models/AttachmentSets/Final Kite_sicily_diff.texture
    57 unit_models/AttachmentSets/Final Kite_sicily_norm.texture
    0
    5 slave
    56 unit_models/AttachmentSets/Final Kite_slave_diff.texture
    56 unit_models/AttachmentSets/Final Kite_slave_norm.texture
    0
    7 normans
    58 unit_models/AttachmentSets/Final Kite_normans_diff.texture
    58 unit_models/AttachmentSets/Final Kite_normans_norm.texture
    9 jerusalem
    60 unit_models/AttachmentSets/Final Kite_jerusalem_diff.texture
    60 unit_models/AttachmentSets/Final Kite_jerusalem_norm.texture
    0
    1
    4 None
    10 MTW2_Spear
    0
    2
    18 MTW2_Spear_primary
    14 fs_test_shield
    0
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    21 armored_sergeants_ug1
    1
    4
    65 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_ug1_lod0.mesh 121
    65 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_ug1_lod1.mesh 900
    65 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_ug1_lod2.mesh 2500
    65 unit_models/_Units/EN_Lmail_Hmail/armored_sergeants_ug1_lod3.mesh 6400
    10
    7 england
    73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_england.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    53 unit_sprites/england_Dummy_EN_Spearmen_ug3_sprite.spr
    6 france
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_france.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    52 unit_sprites/france_Dummy_EN_Spearmen_ug3_sprite.spr
    3 hre
    69 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_hre.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    49 unit_sprites/hre_Dummy_EN_Spearmen_ug3_sprite.spr
    5 milan
    71 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_milan.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    51 unit_sprites/milan_Dummy_EN_Spearmen_ug3_sprite.spr
    6 venice
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_venice.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    52 unit_sprites/venice_Dummy_EN_Spearmen_ug3_sprite.spr
    12 papal_states
    78 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_papal_states.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    58 unit_sprites/papal_states_Dummy_EN_Spearmen_ug3_sprite.spr
    6 sicily
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_sicily.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    52 unit_sprites/sicily_Dummy_EN_Spearmen_ug3_sprite.spr
    5 slave
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_rebels.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    51 unit_sprites/slave_Dummy_EN_Spearmen_ug3_sprite.spr
    7 normans
    73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_england.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    53 unit_sprites/normans_Dummy_EN_Spearmen_ug3_sprite.spr
    9 jerusalem
    75 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_jerusalem.texture
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture
    53 unit_sprites/normans_Dummy_EN_Spearmen_ug3_sprite.spr
    10
    7 england
    58 unit_models/AttachmentSets/Final Kite_england_diff.texture
    58 unit_models/AttachmentSets/Final Kite_england_norm.texture
    0
    6 france
    57 unit_models/AttachmentSets/Final Kite_france_diff.texture
    57 unit_models/AttachmentSets/Final Kite_france_norm.texture
    0
    3 hre
    54 unit_models/AttachmentSets/Final Kite_hre_diff.texture
    54 unit_models/AttachmentSets/Final Kite_hre_norm.texture
    0
    5 milan
    56 unit_models/AttachmentSets/Final Kite_milan_diff.texture
    56 unit_models/AttachmentSets/Final Kite_milan_norm.texture
    0
    6 venice
    57 unit_models/AttachmentSets/Final Kite_venice_diff.texture
    57 unit_models/AttachmentSets/Final Kite_venice_norm.texture
    0
    12 papal_states
    63 unit_models/AttachmentSets/Final Kite_papal_states_diff.texture
    63 unit_models/AttachmentSets/Final Kite_papal_states_norm.texture
    0
    6 sicily
    57 unit_models/AttachmentSets/Final Kite_sicily_diff.texture
    57 unit_models/AttachmentSets/Final Kite_sicily_norm.texture
    0
    5 slave
    56 unit_models/AttachmentSets/Final Kite_slave_diff.texture
    56 unit_models/AttachmentSets/Final Kite_slave_norm.texture
    0
    7 normans
    58 unit_models/AttachmentSets/Final Kite_normans_diff.texture
    58 unit_models/AttachmentSets/Final Kite_normans_norm.texture
    9 jerusalem
    60 unit_models/AttachmentSets/Final Kite_jerusalem_diff.texture
    60 unit_models/AttachmentSets/Final Kite_jerusalem_norm.texture
    0
    1
    4 None
    10 MTW2_Spear
    0
    2
    18 MTW2_Spear_primary
    14 fs_test_shield
    0
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002


  6. #6

    Default Re: [HELP]: export_descr_unit.txt

    6 france
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_france.texture
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
    59 unit_sprites/france_Dismounted_Chivalric_Knights_sprite.spr

    The number at the begining of the line = the number of characters (letters, numbers and spaces) in the the text that follows. Examine an existing entry to get an idea.

  7. #7

    Default Re: [HELP]: export_descr_unit.txt

    I know what you mean. The number is the amount of characters in the line.

    But what do I haveto do with those lines?


  8. #8

    Default Re: [HELP]: export_descr_unit.txt

    OK, above the very last entry for jerusalem, the 0 line is missing...

  9. #9

    Default Re: [HELP]: export_descr_unit.txt

    7 normans
    58 unit_models/AttachmentSets/Final Kite_normans_diff.texture
    58 unit_models/AttachmentSets/Final Kite_normans_norm.texture
    0
    That one!!
    Contribuitor IBIICB-WOTN-Modeler-Scripter


  10. #10

    Default Re: [HELP]: export_descr_unit.txt

    Finally!!!!! I made it!!!!

    Thank you guts!

    *Opens a bag full of rep*


    I cannot give Caesar for now though. I gave him recently.


    Yayyyy I made it!


  11. #11
    Caesar Clivus's Avatar SS Forum Moderator
    Join Date
    May 2007
    Location
    Australia
    Posts
    12,693

    Default Re: [HELP]: export_descr_unit.txt

    Glad you got it working mate

    BftB2 UPDATED 22nd DECEMBER. Member of the Complete Byzantine Unit Roster team

Posting Permissions

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