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

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

    First of all, I'd like to say that battle_models.modeldb is one very confusing file.

    Do you know how to enter a completely new unit? The reason I ask is because I've made completely new mounts for both the Templar and Hospitaller knights. Could I get away by just copying the mailed knights entry and changing everything to say "templar" instead of "mailed"? (That's how I named the files, anyways)

  2. #2

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

    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

    This bit should be at the bottom, its the positioning for a torch on the skeleton. Shouldnt have an effect though as long as you dont add one to the first or last positions.
    Last edited by Casuir; 12-20-2006 at 10:12.

  3. #3
    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

  4. #4

    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 !!!

  5. #5
    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!

  6. #6

    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?

  7. #7
    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

  8. #8

    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

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