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

    OK so if I want to add Genoese xBows to Scotland I should do this.......




    Original......


    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 19 genoese_crossbowmen 1 4 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod0.mesh 121 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod1.mesh 900 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod2.mesh 2500 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod3.mesh 6400 1 5 milan 76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture 77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture 49 unit_sprites/milan_Genoese_Crossbowmen_sprite.spr 1 5 milan 67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture 67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0 1 4 None 20 MTW2_Pavise_Crossbow 14 MTW2_Swordsman 2 21 MTW2_Crossbow_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 23 genoese_crossbowmen_ug1 1 4 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod0.mesh 121 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod1.mesh 900 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod2.mesh 2500 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod3.mesh 6400 1 5 milan 76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture 77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture 53 unit_sprites/milan_Genoese_Crossbowmen_ug1_sprite.spr 1 5 milan 67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture 67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0 1 4 None 20 MTW2_Pavise_Crossbow 14 MTW2_Swordsman 2 21 MTW2_Crossbow_Primary 14 fs_test_shield 2 18 MTW2_Sword_Primary 14 fs_test_shield 16


    Change to......


    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 19 genoese_crossbowmen 1 4 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod0.mesh 121 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod1.mesh 900 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod2.mesh 2500 68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod3.mesh 6400 1 6 scotland 76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture 77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture 49 unit_sprites/milan_Genoese_Crossbowmen_sprite.spr 1 6 scotland 67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture 67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0 1 4 None 20 MTW2_Pavise_Crossbow 14 MTW2_Swordsman 2 21 MTW2_Crossbow_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 23 genoese_crossbowmen_ug1 1 4 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod0.mesh 121 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod1.mesh 900 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod2.mesh 2500 72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod3.mesh 6400 1 6 scotland 76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture 77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture 53 unit_sprites/milan_Genoese_Crossbowmen_ug1_sprite.spr 1 6 scotland 67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture 67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0 1 4 None 20 MTW2_Pavise_Crossbow 14 MTW2_Swordsman 2 21 MTW2_Crossbow_Primary 14 fs_test_shield 2 18 MTW2_Sword_Primary 14 fs_test_shield 16


    And that's all I have to do???

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

    That should work, yes. Remember to tweak the export_descr_unit.txt file so that scotland is listed as an owner for Genoese Crossbowmen as well, and edit the export_descr_buildings.txt file so that you can actually produce them in campaign mode!

    They'll have Milanese colors though, unless you change the texture listing :)
    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

  3. #3

    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)

  4. #4

    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.

  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

    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

  6. #6

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

  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

    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!

  8. #8
    Discipulus et Magister Member Lord Condormanius's Avatar
    Join Date
    Nov 2006
    Location
    New Haven, CT USA
    Posts
    346

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

    I think it should look like this (changes from original in BOLD)


    19 genoese_crossbowmen
    1 4
    68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod0.mesh 121
    68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod1.mesh 900
    68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod2.mesh 2500
    68 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_lod3.mesh 6400
    2
    5 milan
    76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture
    77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture
    49 unit_sprites/milan_Genoese_Crossbowmen_sprite.spr
    6 scotland
    76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture
    77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture
    49 unit_sprites/milan_Genoese_Crossbowmen_sprite.spr
    2

    5 milan
    67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture
    67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0
    6 scotland
    67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture
    67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0

    1
    4 None
    20 MTW2_Pavise_Crossbow
    14 MTW2_Swordsman 2
    21 MTW2_Crossbow_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

    23 genoese_crossbowmen_ug1
    1 4
    72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod0.mesh 121
    72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod1.mesh 900
    72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod2.mesh 2500
    72 unit_models/_Units/LN_Brigandine_heavy/genoese_crossbowmen_ug1_lod3.mesh 6400
    2
    5 milan
    76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture
    77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture
    53 unit_sprites/milan_Genoese_Crossbowmen_ug1_sprite.spr
    6 scotland
    76 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_milan.texture
    77 unit_models/_Units/LN_Brigandine_heavy/textures/LN_ Brigandine_normal.texture
    53 unit_sprites/milan_Genoese_Crossbowmen_ug1_sprite.spr
    2

    5 milan
    67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture
    67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0
    6 scotland
    67 unit_models/AttachmentSets/Final European CB Gun_milan_diff.texture
    67 unit_models/AttachmentSets/Final European CB Gun_milan_norm.texture 0

    1
    4 None
    20 MTW2_Pavise_Crossbow
    14 MTW2_Swordsman 2
    21 MTW2_Crossbow_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
    Last edited by Lord Condormanius; 02-22-2007 at 06:51.
    "You cannot simultaneously prevent and prepare for war."
    -Albert Einstein

    "Beer is proof that God loves us and wants us to be happy."
    -Benjamin Franklin

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