Results 1 to 12 of 12

Thread: Adding unit : crash

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    sinople's Avatar These Romans are crazy!
    Join Date
    Apr 2007
    Location
    France
    Posts
    2,447

    Default Adding unit : crash

    Hello everyone,

    I tried to add a new unit to a mod but I get crash when loading the battle, I don't know why, although I tried a lot of things to correct that.

    Here are the lines :
    battle_models :
    Spoiler Alert, click show to read: 
    Code:
    21 archers_du_thargelion 
    1 1 
    79 unit_models/_units/feanor/Archers_du_Thargelion/archers_du_thargelion_lod0.mesh 6400 
    1 
    8 portugal 
    86 unit_models/_units/feanor/Archers_du_Thargelion/textures/archers_du_thargelion.texture 
    93 unit_models/_units/feanor/Archers_du_Thargelion/textures/archers_du_thargelion_normal.texture 
    40 unit_sprites/egypt_elf_archer_sprite.spr
    1 
    8 portugal 
    59 unit_models/_units/feanor/attachment/elf_attachment.texture 
    66 unit_models/_units/feanor/attachment/elf_attachment_normal.texture 
    0
    1 
    4 None 
    27 MTW2_Fast_Longbowman_String 
    20 MTW2_Non_Shield_Fast 1 
    19 MTW2_Bowman_Primary 1 
    18 MTW2_Sword_Primary 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 
    25 archers_du_thargelion_upg 
    1 1 
    79 unit_models/_units/feanor/Archers_du_Thargelion/archers_du_thargelion_lod0.mesh 6400 
    1
    8 portugal 
    86 unit_models/_units/feanor/Archers_du_Thargelion/textures/archers_du_thargelion.texture
    93 unit_models/_units/feanor/Archers_du_Thargelion/textures/archers_du_thargelion_normal.texture 
    40 unit_sprites/egypt_elf_archer_sprite.spr
    1
    8 portugal 
    59 unit_models/_units/feanor/attachment/elf_attachment.texture 
    66 unit_models/_units/feanor/attachment/elf_attachment_normal.texture 
    0
    1 
    4 None 
    27 MTW2_Fast_Longbowman_String 
    20 MTW2_Non_Shield_Fast 1 
    19 MTW2_Bowman_Primary 1 
    18 MTW2_Sword_Primary 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002



    EDU :
    Spoiler Alert, click show to read: 
    Code:
    type			 archers du Thargelion
    dictionary	   archers_du_Thargelion	 ; archers du Thargelion
    category		 infantry
    class			missile
    voice_type	   Heavy
    banner faction   main_missile
    banner holy	  crusade
    soldier		  archers_du_thargelion, 60, 0, 1
    mount_effect	 elephant +3
    attributes	   sea_faring, hide_forest, hardy, can_withdraw, free_upkeep_unit
    formation		1.2, 1.2, 2.4, 2.4, 4, square
    stat_health	  1, 3
    stat_pri		 6, 2, arrow, 150, 30, missile, missile_mechanical, piercing, none, 0, 1
    stat_pri_attr	no
    stat_sec		 7, 2, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    stat_sec_attr	no
    stat_pri_armour  4, 4, 0, leather
    stat_sec_armour  0, 0, flesh
    stat_heat		2
    stat_ground	  1, -1, 2, 1
    stat_mental	  10, normal, trained
    stat_charge_dist 15
    stat_fire_delay  0
    stat_food		60, 300
    stat_cost		1, 390, 120, 75, 75, 450, 4, 100
    armour_ug_levels 0, 1
    armour_ug_models archers_du_thargelion, archers_du_thargelion_upg
    ownership		portugal
    era 0			portugal
    era 1			portugal
    era 2			portugal
    recruit_priority_offset	5


    The log :
    Code:
    12:06:54.260 [system.rpt] [always] CPU: SSE2
    12:06:54.263 [system.rpt] [always] ==== system log start, build date: Feb 25 2008 version development ===
    12:06:54.269 [system.io] [always] mounted pack packs/data_0.pack
    12:06:54.270 [system.io] [always] mounted pack packs/data_1.pack
    12:06:54.273 [system.io] [always] mounted pack packs/data_2.pack
    12:06:54.275 [system.io] [always] mounted pack packs/data_3.pack
    12:06:54.276 [system.io] [always] mounted pack packs/data_4.pack
    12:06:54.277 [system.io] [always] mounted pack packs/localized.pack
    12:07:44.938 [system.rpt] [error] Uh oh. This isn't good. No idea why, but exiting now. Sorry pal.

    I can upload the mod (which is just 2691ko) if you want.


    Thanks

  2. #2
    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: Adding unit : crash

    Please do upload. And thanks for using "Bare Kingdoms".










  3. #3
    sinople's Avatar These Romans are crazy!
    Join Date
    Apr 2007
    Location
    France
    Posts
    2,447

    Default Re: Adding unit : crash

    Here it is.

    And thanks for the Bare Kingdoms it's useful

  4. #4
    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: Adding unit : crash

    It appears your problem are your animations for the archers. I copied the ones from the vanilla longbowmen and it worked.

    Here are the lines from the modeldb file:
    Replace
    27 MTW2_Fast_Longbowman_String
    20 MTW2_Non_Shield_Fast 1
    19 MTW2_Bowman_Primary 1
    18 MTW2_Sword_Primary

    With
    16 MTW2_Fast_Bowman
    14 MTW2_Fast_Mace 2
    19 MTW2_Bowman_Primary
    14 fs_test_shield 2
    17 MTW2_Mace_Primary
    14 fs_test_shield


    in both instances

    PS: That model needs some cleaning up. Allotment to bones and such.










  5. #5
    sinople's Avatar These Romans are crazy!
    Join Date
    Apr 2007
    Location
    France
    Posts
    2,447

    Default Re: Adding unit : crash

    I've changed the animation entries as you suggestef, the games loaded.

    However when they were on fire mod I got some unexpected problems :




    On the contrary when they are fighting with their second weapon problems got solved :


    Ps : the models are from TATW, but I know nothing about modelling, I'm just a codder.

    Thanks for your help

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

    Default Re: Adding unit : crash

    Are you using the animation files (the 'pack' and 'skeleton', .dat and .idx) and descr_skeleton.txt from TA:TW?

    I think that if they have an animated bowstring, for example, then you will need to.

    And you will need to use '27 MTW2_Fast_Longbowman_String' instead of '16 MTW2_Fast_Bowman'.

  7. #7
    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: Adding unit : crash

    Taiji is right about the animation. At the bottom of your modeldb entry are some animation references. If they are not in your vanilla descr_skeletons file, then you will have to use the descr_skeleton file from TATW and the data\animations\idx and dat files as well. Not sure if you want to do that = 95MB

    Else use another animation as suggested.










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

    Default Re: Adding unit : crash

    Looks to me like the choice is either to use a model compatible with the vanilla animations or use the animations which the model requires.

  9. #9
    sinople's Avatar These Romans are crazy!
    Join Date
    Apr 2007
    Location
    France
    Posts
    2,447

    Default Re: Adding unit : crash

    I'm not using the animations from TA:TW, but is there a way to use the model without these animations ?

  10. #10
    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: Adding unit : crash

    I guess it has to do with how the vertices are assigned in the model. That would need someone with modeling experience.










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

    Default Re: Adding unit : crash

    If the model uses '27 MTW2_Fast_Longbowman_String' in TA:TW then I think you cannot use it unless you are going to add this animation.

    The name of the animation suggests that the model includes an animated bowstring.

    Very easy to work out if this is true, just try the TA:TW animations and see if the problem you are describing disappears.

  12. #12
    sinople's Avatar These Romans are crazy!
    Join Date
    Apr 2007
    Location
    France
    Posts
    2,447

    Default Re: Adding unit : crash

    I'll try this and tell it to you

Posting Permissions

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