Results 1 to 6 of 6

Thread: Problem with adding unit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Wartotalworldguy's Avatar Ordinarius
    Join Date
    Feb 2008
    Location
    Some island in the carribean xD
    Posts
    748

    Default Problem with adding unit

    Hey i got a problem adding a unit to game.I did everything that i need to do with the edu file and the model bd file but the game crashes if i put the spainish muskets.Here is my edu file

    type German Infantry
    dictionary German_Infantry ; German_Infantry
    category infantry
    class missile
    voice_type Light
    banner faction main_missile
    banner holy crusade
    soldier German_Infantry, 48, 0, 0.8
    attributes sea_faring, hide_forest, can_withdraw, gunpowder_unit, fire_by_rank, start_not_skirmishing, gunmen
    formation 1.2, 1.2, 2.4, 2.4, 3, square
    stat_health 1, 0
    stat_pri 14, 1, musket_bullet, 180, 20, missile, missile_gunpowder, piercing, none, musket_shot_set, 25, 1
    ;stat_pri_ex 0, 0, 20
    stat_pri_attr ap
    stat_sec 6, 1, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 0, 3, 0, flesh
    ;stat_armour_ex 0, 5, 0, 0, 3, 0, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 1, -2, 3, 2
    stat_mental 3, normal, trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 540, 150, 65, 50, 540, 4, 130
    armour_ug_levels 0, 2
    armour_ug_models German_Infantry, German_Infantry_ug1
    ownership hre
    era 1 hre

    and my modelbd file
    14 german_infantry_ug1
    1 4
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod0.mesh 121
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod1.mesh 900
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod2.mesh 2500
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod3.mesh 6400
    4
    5 hre
    71 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_german.texture
    72 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.texture
    44 unit_sprites/hre_german_infantry_ug1_sprite.spr
    5 hre
    67 unit_models/AttachmentSets/Final European CB Gun_germany_diff.texture
    67 unit_models/AttachmentSets/Final European CB Gun_germany_norm.texture 0
    1

    help plz!!!!!

  2. #2

    Default Re: Problem with adding unit

    Did you change the model number at the top of the Model Db?
    Die spam Die!
    Spoiler Alert, click show to read: 


  3. #3

    Default Re: Problem with adding unit

    Did you post the whole modeldb entry? Because if you did there is an error...

    14 german_infantry_ug1
    1 4
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod0.mesh 121
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod1.mesh 900
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod2.mesh 2500
    58 unit_models/_Units/RN_Light_Lmail/german_infantry_ug1_lod3.mesh 6400
    4
    5 hre
    71 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_german.texture
    72 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.texture
    44 unit_sprites/hre_german_infantry_ug1_sprite.spr
    5 hre
    67 unit_models/AttachmentSets/Final European CB Gun_germany_diff.texture
    67 unit_models/AttachmentSets/Final European CB Gun_germany_norm.texture 0
    1

    The red numbers need to match the number of characters that follow in the string
    The blue number needs to match the number of factions that have textures, you only have hre so it should be 1. You also need a number for the attachments info.
    Like so
    47 unit_sprites/hre_german_infantry_ug1_sprite.spr
    1
    3 hre

    Plus the anim info and the rest.
    Last edited by Eothese; November 17, 2008 at 01:19 PM.

  4. #4
    Wartotalworldguy's Avatar Ordinarius
    Join Date
    Feb 2008
    Location
    Some island in the carribean xD
    Posts
    748

    Default Re: Problem with adding unit

    ok so basically i need to change the blue numbers?and do i need to change the red numbers and to what number?
    Last edited by Wartotalworldguy; November 17, 2008 at 05:30 PM.

  5. #5
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Problem with adding unit

    More blue numbers:

    There is a tool in the download section that checks your modeldb for errors such as those. I think it is made by alpaca, can't find the link right now.

    Found it!
    ModelDB Checker










  6. #6

    Default Re: Problem with adding unit

    You need to change both, 'the red numbers need to match the number of characters that follow in the string.' In other words count the letters in, for example hre, its 3 not 5.
    So starting from the top you'll see 'german_infantry_ug1' and count 19 characters, not 14.

Posting Permissions

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