Results 1 to 9 of 9

Thread: Units aren't in Game

Hybrid View

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

    Default Units aren't in Game

    Alright I added a berserker unit to Denmark Here is it, I made two, just in case
    Code:
    type             Beserkers
    dictionary       Beserkers
    category         infantry
    class            heavy
    voice_type       Heavy
    banner faction   main_infantry
    banner holy      crusade
    soldier          Dismounted_Huscarls, 15, 0, 1.2
    attributes       sea_faring, hide_forest, hardy, can_withdraw, frighten_foot, frighten_mounted
    formation        1.2, 1.2, 2.4, 2.4, 4, square
    stat_health      5, 0
    stat_pri         21, 30, no, 0, 0, melee, melee_blade, slashing, axe, 25, 1.2
    stat_pri_attr    ap
    stat_sec         0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    stat_sec_attr    no
    stat_pri_armour  10, 15, 20, metal
    stat_sec_armour  10, 10, flesh
    stat_heat        1
    stat_ground      2, 2, 2, 2
    stat_mental      15, normal, impetuous, lock_morale
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 1000, 0, 90, 70, 690, 4, 170
    armour_ug_levels 1, 3
    armour_ug_models Dismounted_Huscarls, Dismounted_Huscarls_ug1
    ownership        denmark
    era 0            denmark
    era 1            denmark
    Code:
    type             Beserker
    dictionary       Beserker
    category         Infantry
    class            heavy
    voice_type       Heavy
    banner faction   main_infantry
    banner holy      crusade
    soldier          Dismounted_Huscarls, , ,
    attributes       sea_faring, hide_forest, hardy, can_withdraw, frighten_foot, frighten_mounted
    formation        1.2, 1.2, 2.4, 2.4, 4, square
    stat_health      5.0,
    stat_pri         35, 32, no, 0, 0, melee, melee_blade, slashing, axe, 25, 1.2
    stat_pri_attr    ap
    stat_sec         0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    stat_sec_attr    no
    stat_pri_armour  20, 25, 30, metal
    stat_sec_armour  10, 10, flesh
    stat_heat        1
    stat_ground      2, 2, 2, 2
    stat_mental      15, normal, impeteuous, lock_morale
    stat_charge_dist 50
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 500, 0, 50, 50, 690, 4, 170
    armour_ug_levels 1, 2, 3
    armour_ug_models Dismounted_Huscarls
    ownership        denmark
    era 0            denmark
    era 1            denmark
    era 2            denmark
    And here's the model
    Spoiler Alert, click show to read: 
    9 beserkers 1 4 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod0.mesh 121 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod1.mesh 900 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod2.mesh 2500 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod3.mesh 6400 2 7 denmark 73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_denmark.texture 72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture 40 unit_sprites/denmark_Huscarls_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 38 unit_sprites/slave_Huscarls_sprite.spr 2 7 denmark 60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture 60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0 5 slave 58 unit_models/AttachmentSets/Final Danish_slave_diff.texture 58 unit_models/AttachmentSets/Final Danish_slave_norm.texture 0 1 5 Horse 12 MTW2_HR_Mace 0 2 17 MTW2_Mace_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

    But, when I go to play, it's not there


    EDIT: Yes, the spacing is correct, it didn't carry right

    EDIT 2: I realized I missed something

    Code:
    8 huscarls 1 4 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod0.mesh 121 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod1.mesh 900 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod2.mesh 2500 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod3.mesh 6400 2 7 denmark 73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_denmark.texture 72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture 40 unit_sprites/denmark_Huscarls_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 38 unit_sprites/slave_Huscarls_sprite.spr 2 7 denmark 60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture 60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0  5 slave 58 unit_models/AttachmentSets/Final Danish_slave_diff.texture 58 unit_models/AttachmentSets/Final Danish_slave_norm.texture 0  1 5 Horse 12 MTW2_HR_Mace 0  2 17 MTW2_Mace_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 12 huscarls_ug1 1 4 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod0.mesh 121 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod1.mesh 900 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod2.mesh 2500 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod3.mesh 6400 2 7 denmark 73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_denmark.texture 72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture 44 unit_sprites/denmark_Huscarls_ug1_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 42 unit_sprites/slave_Huscarls_ug1_sprite.spr 2 7 denmark 60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture 60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0  5 slave 58 unit_models/AttachmentSets/Final Danish_slave_diff.texture 58 unit_models/AttachmentSets/Final Danish_slave_norm.texture 0  1 5 Horse 12 MTW2_HR_Mace 0  2 17 MTW2_Mace_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    EDIT 3: realized how hard that was to read

    Spoiler Alert, click show to read: 

    8 huscarls 1 4 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod0.mesh 121 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod1.mesh 900 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod2.mesh 2500 52 unit_models/_Units/EN_Lmail_Hmail/huscarls_lod3.mesh 6400 2 7 denmark 73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_denmark.texture 72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture 40 unit_sprites/denmark_Huscarls_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 38 unit_sprites/slave_Huscarls_sprite.spr 2 7 denmark 60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture 60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0 5 slave 58 unit_models/AttachmentSets/Final Danish_slave_diff.texture 58 unit_models/AttachmentSets/Final Danish_slave_norm.texture 0 1 5 Horse 12 MTW2_HR_Mace 0 2 17 MTW2_Mace_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 12 huscarls_ug1 1 4 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod0.mesh 121 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod1.mesh 900 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod2.mesh 2500 56 unit_models/_Units/EN_Lmail_Hmail/huscarls_ug1_lod3.mesh 6400 2 7 denmark 73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_denmark.texture 72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture 44 unit_sprites/denmark_Huscarls_ug1_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 42 unit_sprites/slave_Huscarls_ug1_sprite.spr 2 7 denmark 60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture 60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0 5 slave 58 unit_models/AttachmentSets/Final Danish_slave_diff.texture 58 unit_models/AttachmentSets/Final Danish_slave_norm.texture 0 1 5 Horse 12 MTW2_HR_Mace 0 2 17 MTW2_Mace_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    Last edited by Fishrudder; April 23, 2009 at 06:20 PM.

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

    Default Re: Units aren't in Game

    Are you starting the game with an io.first .bat file?

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

  3. #3

    Default Re: Units aren't in Game

    Dangit, I knew I was forgetting something, thanks, that should do it... I'll get back in a minute

  4. #4

    Default Re: Units aren't in Game

    Ugh...

    This won't work, I added --io.file_first to the end of my target line (After the "" right?) and it still won't work. Maybe I didn't add the building, but since I copied them off of dismounted Huscarls, they should have the same building right?

    Also, I made some small changes to other things, they aren't showing up either :-s

  5. #5

    Default Re: Units aren't in Game

    firstly use the formatted modeldb its in the downloads section secondly have you set up the mod properly have you made a new bat and a new cfg? or a new mod folder

  6. #6

    Default Re: Units aren't in Game

    When you get your modfolder setup correctly, change the battle_models.db entry to match the soldier line and first armour_ug_models reference in your EDU; Dismounted_Huscarls.
    If the model itself is not a new one, then you dont need to add anything to the battle_models file, the new EDU entry on its own will do.

  7. #7

    Default Re: Units aren't in Game

    Alright, I see my problem, I didn't set up a mod folder, I'm gonna go do that, and get back to you, and what soldier line are you talking about Eothese

    By the way, in case you can't tell, this is my first major mod

    Ok, starting to get pissed off...

    I made the mod folder, have a batch folder, have the campaign map, and all the other neccesary crap, But the unit won't show up in the game, and I dont have it assigned to a building yet, I'm trying that next
    Last edited by Fishrudder; April 24, 2009 at 09:15 PM.

  8. #8

    Default Re: Units aren't in Game

    Did you make a .cfg for your modfolder with the all important
    [io]
    file_first = true

    The red must match you battle_model entry, the green is for any armour upgrades.
    Spoiler Alert, click show to read: 

    type Beserkers
    dictionary Beserkers
    category infantry
    class heavy
    voice_type Heavy
    banner faction main_infantry
    banner holy crusade
    soldier Dismounted_Huscarls, 15, 0, 1.2
    attributes sea_faring, hide_forest, hardy, can_withdraw, frighten_foot, frighten_mounted
    formation 1.2, 1.2, 2.4, 2.4, 4, square
    stat_health 5, 0
    stat_pri 21, 30, no, 0, 0, melee, melee_blade, slashing, axe, 25, 1.2
    stat_pri_attr ap
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    stat_sec_attr no
    stat_pri_armour 10, 15, 20, metal
    stat_sec_armour 10, 10, flesh
    stat_heat 1
    stat_ground 2, 2, 2, 2
    stat_mental 15, normal, impetuous, lock_morale
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 1000, 0, 90, 70, 690, 4, 170
    armour_ug_levels 1, 3
    armour_ug_models Dismounted_Huscarls, Dismounted_Huscarls_ug1
    ownership denmark
    era 0 denmark
    era 1 denmark


    Don't worry about adding the unit to a building yet, first step is to see it in a Custom Battle!

  9. #9

    Default Re: Units aren't in Game

    Alright, just fixed that, and the mod folder is set up, I have the .bat file in the there, and all notes I'ev changed, now I need to get it in, I thnk that's all thats left
    Last edited by Fishrudder; April 25, 2009 at 07:37 AM.

Posting Permissions

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