Results 1 to 9 of 9

Thread: Crash after adding unit?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Crash after adding unit?

    Ok any help on this error please: Could not find soldier battle model for unit type 'Delmo_Greek'.

    I have added 1 to the top line, having added the extra unit

    This is my models_db:

    11 Delmo_Greek
    1 1
    40 unit_models/toonys/Delmo_Greek_lod0.mesh 5000
    1
    4 merc
    38 unit_models/toonys/Delmo_Greek.texture
    59 unit_models/toonys/resgestae_armouredphalangitenorm.texture
    49 unit_sprites/england_Dummy_EN_Spearmen_sprite.spr
    1
    4 merc
    38 unit_models/toonys/Delmo_Greek.texture
    48 unit_models/toonys/resgestae_makwepsnorm.texture 0
    1
    4 None
    24 MTW2_Fast_Spear_Overhand
    19 MTW2_Fast_Swordsman 2
    18 MTW2_Spear_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

    This is my EDU:

    type Greek Delmo
    dictionary Greek Delmo ; Greek Infantry, ep
    category infantry
    class heavy
    voice_type General
    accent Mediterranean
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Delmo_Greek, 36, 0, 3, 0.35
    officer rs2_spartan_captain
    officer rs2_spartan_standard_bearer
    mount_effect horse +2, camel +2 ;;hoplites
    attributes free_upkeep_unit, sea_faring, hide_forest, very_hardy, can_withdraw
    move_speed_mod 0.85
    formation 0, 0.5, 2.4, 2.4, 4, square
    stat_health 1, 0
    stat_pri 21, 21, no, 0, 0, melee, melee_blade, piercing, spear, 0, 1
    stat_pri_attr spear, spear_bonus_6
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 1
    stat_sec_attr no
    stat_pri_armour 10, 8, 26, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 0 ; 3
    stat_ground 0, 0, 0, 0 ; 1, 0, 2, 0
    stat_mental 18, disciplined, highly_trained
    stat_charge_dist 6
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 3200, 0, 60, 50, 555, 1, 100
    armour_ug_levels 0, 1, 2, 3 ; 3, 4
    armour_ug_models Delmo_Greek
    ownership milan, slave
    ;era 0 spain, aragon, portugal, milan, venice, papal_states, sicily
    ;era 1 spain, aragon, portugal, milan, venice, papal_states, sicily
    era 2 milan
    recruit_priority_offset 0 ; 20

  2. #2

    Default Re: Crash after adding unit?

    Quote Originally Posted by ToonTotalWar View Post
    This is my EDU:
    Code:
    type Greek Delmo
    dictionary Greek_Delmo ; Greek Infantry, ep
    category infantry
    class heavy
    voice_type General
    accent Mediterranean
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Delmo_Greek, 36, 0, 3, 0.35
    officer                     rs2_spartan_captain
    officer                     rs2_spartan_standard_bearer
    mount_effect     horse +2, camel +2 ;;hoplites
    attributes free_upkeep_unit, sea_faring, hide_forest, very_hardy, can_withdraw
    move_speed_mod     0.85 
    formation 0, 0.5, 2.4, 2.4, 4, square 
    stat_health 1, 0
    stat_pri 21, 21, no, 0, 0, melee, melee_blade, piercing, spear, 0, 1
    stat_pri_attr spear, spear_bonus_6 
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 1
    stat_sec_attr no
    stat_pri_armour 10, 8, 26, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 0 ; 3
    stat_ground 0, 0, 0, 0 ; 1, 0, 2, 0
    stat_mental 18, disciplined, highly_trained
    stat_charge_dist 6
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 3200, 0, 60, 50, 555, 1, 100
    armour_ug_levels 0, 1, 2, 3 ; 3, 4
    armour_ug_models Delmo_Greek
    ownership milan, slave
    ;era 0 spain, aragon, portugal, milan, venice, papal_states, sicily
    ;era 1 spain, aragon, portugal, milan, venice, papal_states, sicily
    era 2 milan
    recruit_priority_offset 0 ; 20
    Add the red bit, at the top, second line down!


  3. #3
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Crash after adding unit?

    Different problem:

    Quote Originally Posted by ToonTotalWar View Post
    armour_ug_levels 0, 1, 2, 3 ; 3, 4
    armour_ug_models Delmo_Greek
    With one battle_models entry should be:

    armour_ug_levels 0 ; 3, 4
    armour_ug_models Delmo_Greek

    Because if it doesn't upgrade then it should not have upgrade levels.

    And if it does upgrade and has only one model then it should look like this:

    armour_ug_levels 0, 1, 2, 3 ; 3, 4
    armour_ug_models Delmo_Greek, Delmo_Greek, Delmo_Greek, Delmo_Greek
    Last edited by Taiji; October 12, 2011 at 04:58 PM.

  4. #4
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Crash after adding unit?

    Still getting error on loading screen after the two changes: Could not find soldier battle model for unit type 'Delmo_Greek'.

  5. #5

    Default Re: Crash after adding unit?

    is delmo_greek the last entry in your edu?

    could you be upto the 500 hardcode limit?


  6. #6
    ToonTotalWar's Avatar Indefinitely Banned
    Join Date
    Aug 2005
    Location
    Newcastle upon Tyne
    Posts
    1,733

    Default Re: Crash after adding unit?

    Quote Originally Posted by dannyxx30 View Post
    is delmo_greek the last entry in your edu?

    could you be upto the 500 hardcode limit?
    Yes it is last entry and how do I find if I am at 500 entries? thanks

    EDIT: I got it working as I had to delete a unit so i must have been upto 500
    Last edited by ToonTotalWar; October 12, 2011 at 06:31 PM.

  7. #7

    Default Re: Crash after adding unit?

    Quote Originally Posted by ToonTotalWar View Post
    Yes it is last entry and how do I find if I am at 500 entries?
    Lol!! afaik you can only count them!!

    Anyway glad to hear you now have it sorted!


  8. #8

    Default Re: Crash after adding unit?

    Quote Originally Posted by ToonTotalWar View Post
    how do I find if I am at 500 entries?
    Notepad++ and count the number of repeating unique lines like Soldier in a particular unit entry.

  9. #9
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Crash after adding unit?

    I thought the error message was different for that issue .. glad it's sorted anyway

Posting Permissions

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