Results 1 to 9 of 9

Thread: New Unit in game causes CTD on startup?

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 New Unit in game causes CTD on startup?

    Can someone look at these entries and tell me why my game crashes on startup when I have entered this text into EDU and battle_models text file?

    The unit in question is just a basic Spear Auxillia unit:

    Code:
    type             roman infantry auxillia
    dictionary       roman_infantry_auxillia      ; roman infantry auxillia, m
    category         infantry ;Quality Spear
    class            spearmen
    voice_type       Heavy
    accent           English
    banner faction   main_spear
    banner holy      crusade
    soldier          roman_infantry_auxillia, 60, 0, 1
    attributes       free_upkeep_unit, sea_faring, hide_forest, can_withdraw, mercenary_unit
    formation        1.0, 0, 2.0, 2.0, 4, square, schiltrom
    stat_health      1, 0
    stat_pri         6, 4, no, 0, 0, melee, melee_blade, piercing, spear, 15, 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  5, 4, 8, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        0 ;        6
    stat_ground      0, 0, 0, 0  ;      1, -1, 2, 1
    stat_mental      7, normal, trained
    stat_charge_dist 6
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 425, 425, 85, 65, 625, 4, 130
    armour_ug_levels 0, 1, 2, 3 ; 2
    armour_ug_models roman_infantry_auxillia
    ownership        all ;        england
    era 2            england ;, hre, papal_states
    recruit_priority_offset    0  ;    20
    Code:
    23 roman_infantry_auxillia 
    1 4
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000
    1 
    4 merc 
    50 unit_models/toonys/roman_infantry_auxillia.texture 
    57 unit_models/toonys/roman_infantry_auxillia_normal.texture 
    53 unit_sprites/england_Dummy_EN_Spearmen_ug2_sprite.spr 
    1 
    4 merc 
    50 unit_models/toonys/roman_infantry_auxillia.texture 
    57 unit_models/toonys/roman_infantry_auxillia_normal.texture 0  
    1 
    4 None 
    10 MTW2_Spear 0  
    2 
    18 MTW2_Spear_primary 
    14 fs_test_shield 0 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    Last edited by ToonTotalWar; October 21, 2011 at 10:55 AM.

  2. #2
    Polycarpe's Avatar Back into action!
    Join Date
    Feb 2010
    Location
    Quebec, Canada
    Posts
    3,338

    Default Re: New Unit in game causes CTD on startup?

    Try this one.

    Spoiler Alert, click show to read: 
    23 roman_infantry_auxillia
    1 1
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000
    1
    4 merc
    50 unit_models/toonys/roman_infantry_auxillia.texture
    57 unit_models/toonys/roman_infantry_auxillia_normal.texture
    53 unit_sprites/england_Dummy_EN_Spearmen_ug2_sprite.spr
    1
    4 merc
    50 unit_models/toonys/roman_infantry_auxillia.texture
    57 unit_models/toonys/roman_infantry_auxillia_normal.texture 0
    1
    4 None
    10 MTW2_Spear 0
    2
    18 MTW2_Spear_primary
    14 fs_test_shield 0
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002


    Remember to add +1 to the serial number at the top of the BMDB file.
    Last edited by Polycarpe; October 21, 2011 at 11:30 AM.

  3. #3

    Default Re: New Unit in game causes CTD on startup?

    This:
    "ownership all ; england"

    Has to be :
    ownership england ; all

    There is no such faction as "all", so the game won't recognize it. If you want it to be available to all factions, you'll have to type in all of them.

    And I think the model names in the EDU have to be capitalized:
    soldier Roman_infantry_auxillia

    I'm not sure if the second one is necessary, but it's done with all the vanilla units like that, even though the names in the modeldb are written without capital letters.

    If these don't work, your log entry would be helpful.

  4. #4
    Polycarpe's Avatar Back into action!
    Join Date
    Feb 2010
    Location
    Quebec, Canada
    Posts
    3,338

    Default Re: New Unit in game causes CTD on startup?

    Quote Originally Posted by vercassivelaunos View Post
    This:
    "ownership all ; england"

    Has to be :
    ownership england ; all

    There is no such faction as "all", so the game won't recognize it. If you want it to be available to all factions, you'll have to type in all of them.

    And I think the model names in the EDU have to be capitalized:
    soldier Roman_infantry_auxillia

    I'm not sure if the second one is necessary, but it's done with all the vanilla units like that, even though the names in the modeldb are written without capital letters.

    If these don't work, your log entry would be helpful.
    The "all" for the ownership section do work (I use it in my mod ). When we add "; [faction name]", it's just a reminder for which faction get access to it.

    No need to capitalize the first letters, as long the BMDB is the same as in the EDU (capitalized or not), you won't have problem.

    The value is for the number of entry in the BMDB section

    1 3
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000


    As you can see, there's three entries right there, so you have to put "3". For your entry, you had only one entry, so you have to write "1".

    It doesn't really change the quality of the mesh really, one entry with a value or resolution of 6400 will do the job without problems. It saves some work .
    Last edited by Polycarpe; October 21, 2011 at 11:45 AM.

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

    Default Re: New Unit in game causes CTD on startup?

    Quote Originally Posted by St. Polycarpe View Post
    The "all" for the ownership section do work (I use it in my mod ). When we add "; [faction name]", it's just a reminder for which faction get access to it.

    No need to capitalize the first letters, as long the BMDB is the same as in the EDU (capitalized or not), you won't have problem.

    The value is for the number of entry in the BMDB section

    1 3
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000
    52 unit_models/toonys/roman_infantry_auxillia_lod0.mesh 5000


    As you can see, there's three entries right there, so you have to put "3". For your entry, you had only one entry, so you have to write "1".

    It doesn't really change the quality of the mesh really, one entry with a value or resolution of 6400 will do the job without problems. It saves some work .
    thanks mate, really informative

  6. #6
    Polycarpe's Avatar Back into action!
    Join Date
    Feb 2010
    Location
    Quebec, Canada
    Posts
    3,338

    Default Re: New Unit in game causes CTD on startup?

    "Un autre client satisfait"! (Another satisfying customer)

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

    Default Re: New Unit in game causes CTD on startup?

    Quote Originally Posted by St. Polycarpe View Post
    "Un autre client satisfait"! (Another satisfying customer)
    indeed

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

    Default Re: New Unit in game causes CTD on startup?

    Quote Originally Posted by St. Polycarpe View Post
    It doesn't really change the quality of the mesh really, one entry with a value or resolution of 6400 will do the job without problems. It saves some work .
    Actually it does change the poly count for the models on the battlefield, assuming the modeler made the effort. That's what the extra lines are for, as well as determining the range at which sprites are used for the various unit detail levels in graphic options.

    So it causes problems if you care about people with lower end PCs, or high standards in terms of FPS, and especially if you intend to use units that hit the soldier limit.

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

    Default Re: New Unit in game causes CTD on startup?

    Worked a treat mate!!! +rep

    what does that number actually do when you change it from a 4 to a 1?

Posting Permissions

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