Results 1 to 18 of 18

Thread: A little info on adding units with battle_models.modeldb

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Member Musashi's Avatar
    Join Date
    Nov 2002
    Location
    The Mists of Legend
    Posts
    811

    Default Re: A little info on adding units with battle_models.modeldb

    Cool. I couldn't tell whether that bit was the beginning or the end of each entry :)

    rocky4: I gave an example of a completely new unit up there... Working with this file is rather complicated though.
    Fear nothing except in the certainty that you are your enemy's begetter and its only hope of healing. For everything that does evil is in pain.
    -The Maestro Sartori, Imajica by Clive Barker

  2. #2

    Default Re: A little info on adding units with battle_models.modeldb

    Musashi,

    Thank you for the information !!!!!

    I have been trying to get Scotland xbows for days now !!!

  3. #3
    Man-at-Arms Member Dave1984's Avatar
    Join Date
    Jun 2006
    Location
    Staffordshire
    Posts
    255

    Default Re: A little info on adding units with battle_models.modeldb

    I've been swapping around units from faction to faction with great success so far, but now I've tried to add a new unit for Milan (actually not Milan but the Welsh, but that's another story) based on the Polish Nobles.

    I've got them to appear on the menu screens and all that, but once in battle only the mount is showing up.

    Here is the entry in the db,

    0.80000001 0.60000002 5 Teulu 1 4 57 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_lod0.mesh 121 57 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_lod1.mesh 900 57 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_lod2.mesh 2500 57 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_lod3.mesh 6400 2 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 44 unit_sprites/poland_Polish_Nobles_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 43 unit_sprites/slave_Polish_Nobles_sprite.spr 2 5 milan 58 unit_models/AttachmentSets/Final Slavic_slave_diff.texture 58 unit_models/AttachmentSets/Final Slavic_slave_norm.texture 0 5 slave 58 unit_models/AttachmentSets/Final Slavic_slave_diff.texture 58 unit_models/AttachmentSets/Final Slavic_slave_norm.texture 0 1 5 Horse 15 MTW2_HR_Javelin 13 MTW2_HR_Sword 2 23 MTW2_HR_Javelin_Primary 14 fs_test_shield 2 18 MTW2_Sword_Primary 14 fs_test_shield 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 17 polish_nobles_ug1 1 4 61 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_ug1_lod0.mesh 121 61 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_ug1_lod1.mesh 900 61 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_ug1_lod2.mesh 2500 61 unit_models/_Units/EN_Lmail_Hmail/polish_nobles_ug1_lod3.mesh 6400 2 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_mail_knights_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 47 unit_sprites/slave_Polish_Nobles_ug1_sprite.spr 2 5 milan 58 unit_models/AttachmentSets/Final Slavic_slave_diff.texture 58 unit_models/AttachmentSets/Final Slavic_slave_norm.texture 0 5 slave 58 unit_models/AttachmentSets/Final Slavic_slave_diff.texture 58 unit_models/AttachmentSets/Final Slavic_slave_norm.texture 0 1 5 Horse 15 MTW2_HR_Javelin 13 MTW2_HR_Sword 2 23 MTW2_HR_Javelin_Primary 14 fs_test_shield 2 18 MTW2_Sword_Primary 14 fs_test_shield 16 -0.090000004 0 0 -0.34999999
    and the entry in EDU

    type Teulu
    dictionary Teulu ; Teulu
    category cavalry
    class missile
    voice_type Heavy
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Polish_Nobles, 32, 0, 1
    mount heavy horse
    mount_effect elephant -4, camel -4
    attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, cantabrian_circle, knight
    formation 2, 4.4, 3, 6, 3, square
    stat_health 1, 0
    stat_pri 10, 3, javelin, 55, 8, thrown, missile_mechanical, piercing, spear, 25, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr ap, thrown
    stat_sec 11, 4, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 5, 8, 4, metal
    ;stat_armour_ex 5, 7, 0, 0, 8, 4, 4, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 4
    stat_ground 0, -2, -4, 0
    stat_mental 9, low, trained
    stat_charge_dist 45
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 800, 210, 120, 95, 800, 4, 200
    armour_ug_levels 2, 3
    armour_ug_models Polish_Nobles, Polish_Nobles_ug1
    ownership milan, slave
    era 0 milan
    era 1 milan
    ;unit_info 11, 10, 17
    Any ideas why only the mounts are showing up?

    Thanks in advance!

  4. #4

    Default Re: A little info on adding units with battle_models.modeldb

    Hmm..., I wanted to change the look of Druzhina and give them the look same as boyars sons

    Here.
    Was Druzhina and now:
    soldier Boyar_Sons, 32, 0, 1


    But I see stil Druzhina soldiers and not Boyars Sons.

    Any idea what was wrong?

  5. #5
    Member Member Musashi's Avatar
    Join Date
    Nov 2002
    Location
    The Mists of Legend
    Posts
    811

    Default Re: A little info on adding units with battle_models.modeldb

    Quote Originally Posted by D Wilson
    I've been swapping around units from faction to faction with great success so far, but now I've tried to add a new unit for Milan (actually not Milan but the Welsh, but that's another story) based on the Polish Nobles.

    I've got them to appear on the menu screens and all that, but once in battle only the mount is showing up.

    Here is the entry in the db,



    and the entry in EDU



    Any ideas why only the mounts are showing up?

    Thanks in advance!
    Because your soldier and upgrade model entries are still "polish nobles", which means that's what the game looks for in the battle_models.modeldb file, and when it looks there it sees there is no entry for Milan, and therefore you get no textures.

    Change
    soldier Polish_Nobles, 32, 0, 1
    to
    soldier Teulu, 32, 0, 1
    and
    armour_ug_models Polish_Nobles, Polish_Nobles_ug1
    to
    armour_ug_models Polish_Nobles, Teulu_ug1
    Also you have a problem in your modeldb file. The line:
    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 17 polish_nobles_ug1
    should read:
    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 17 Teulu_ug1
    Last edited by Musashi; 12-21-2006 at 01:52.
    Fear nothing except in the certainty that you are your enemy's begetter and its only hope of healing. For everything that does evil is in pain.
    -The Maestro Sartori, Imajica by Clive Barker

  6. #6

    Default Re: A little info on adding units with battle_models.modeldb

    The string lengths wrong in that last one, should be :
    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 9 Teulu_ug1

  7. #7
    Man-at-Arms Member Dave1984's Avatar
    Join Date
    Jun 2006
    Location
    Staffordshire
    Posts
    255

    Default Re: A little info on adding units with battle_models.modeldb

    Hi guys, thanks for the tips.

    Done all that but still having the same problem. Any ideas? Have you added anything similar and got it to work?

    I tried working around it by copying the polish nobles entry in EDU and giving it different info to look up in export_units whilst referencing the polish_nobles soldier model with the milanese texture that I added no problem, but even that gave me riderless horses, so I'm at a loss!

  8. #8
    Man-at-Arms Member Dave1984's Avatar
    Join Date
    Jun 2006
    Location
    Staffordshire
    Posts
    255

    Default Re: A little info on adding units with battle_models.modeldb

    I came up with a quick and dirty way round it for now by adding the milanese texture to the polish_nobles entry and then editing the export_units.txt file. It's not very satisfying at all knowing that Poland's polish nobles will be called Teulu (although I don't plan on having poland in the mod I'm working on) and it's probably frowned upon by far better modders than I, but until I can figure out why the new entry won't work I think I'm stuck with it.


    Shields to be reskinned later.

    Still, if anyone can tell me how to get the correct new entry to work I'd be very thankful...
    Last edited by Dave1984; 12-21-2006 at 18:38.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO