Page 1 of 2 12 LastLast
Results 1 to 20 of 25

Thread: CTD in Custom Battle screen?

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 CTD in Custom Battle screen?

    When I create a new chariot unit for Persia I get a CTD in the custom battle menu? So each time the game loads fine and once I select the chariot unit in the custom battle menu, the game then CTD's? this happens only to the chariot unit when I try and click on the unit card.

    I have the battle_models, export_descr_units, descr_mounts and the export_units, descr_skeletons text files with all the correct entries. All the texture and mesh files are also in the correct folders as per the text entries below?

    I have established it is the mesh for the actual chariot and the horse (mount_persia_scythedchariot_lod0.mesh), as I tried another chariot and the game loaded fine? Any ideas what this can be please? Thanks

    here is my text entries:

    EDU
    Code:
    type             Persian Chariot
    dictionary       Persian_Chariot      ; Persian Chariot, f
    category         cavalry
    class            heavy
    voice_type       Heavy
    banner faction   main_cavalry
    banner holy      crusade_cavalry
    soldier          persia_chariotrider, 6, 6, 1
    mount            persiascythedchariot
    mount_effect     horse +4, camel +2
    attributes       sea_faring, hardy, can_withdraw, can_run_amok, frighten_foot, frighten_mounted
    formation        7, 11, 13, 16, 2, square
    stat_health      1, 4 ;;relatively weak
    stat_pri         50, 80, no, 0, 0, melee, melee_simple, piercing, none, 0, 1
    ;stat_pri_ex      0, 0, 0
    stat_pri_attr    no
    stat_sec         50, 80, no, 0, 0, melee, melee_simple, piercing, none, 0, 1 
    ;stat_sec_ex      0, 0, 0
    stat_sec_attr    area, ap 
    stat_pri_armour  18, 6, 0, metal
    ;stat_armour_ex   5, 0, 0, 0, 7, 0, 0, metal
    stat_sec_armour  15, 5, flesh
    stat_heat        1
    stat_ground      0, 0, 0, 0  ;0, 1, -6, -1
    stat_mental      21, disciplined, highly_trained, lock_morale
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 1625, 542, 100, 75, 540, 4, 130
    armour_ug_levels 0, 1
    armour_ug_models persia_chariotrider
    ownership        russia
    era 2            russia
    recruit_priority_offset    25  ;    5
    ;unit_info        8, 8, 8
    battle models DB
    Code:
    27 mount_persia_scythedchariot 
    1 1 
    55 unit_models/Toons/mount_persia_scythedchariot_lod0.mesh 40000 
    1
    6 russia
    52 unit_models/Toons/persia_chariot_scythed.tga.texture 
    52 unit_models/Toons/persia_chariot_scythednorm.texture 
    41 unit_sprites/russia_Mount_Pony_sprite.spr 
    1 
    8 Elephant 
    10 fs_chariot 0  
    0 0 -1 0 0 0 0 0 0 
    19 persia_chariotrider 
    1 1 
    47 unit_models/Toons/persia_chariotrider_lod0.mesh 6400 
    3 
    6 france
    40 unit_models/Toons/persia_cat.tga.texture 
    40 unit_models/Toons/persia_catnorm.texture 
    42 unit_sprites/egypt_ME_Bodyguard_sprite.spr 
    7 england
    40 unit_models/Toons/persia_cat.tga.texture 
    40 unit_models/Toons/persia_catnorm.texture 
    42 unit_sprites/egypt_ME_Bodyguard_sprite.spr 
    6 russia
    40 unit_models/Toons/persia_cat.tga.texture 
    40 unit_models/Toons/persia_catnorm.texture 
    42 unit_sprites/egypt_ME_Bodyguard_sprite.spr 
    3
    6 france  
    45 unit_models/Toons/persia_facesarm.tga.texture 
    45 unit_models/Toons/persia_facesarmnorm.texture 0
    7 england 
    45 unit_models/Toons/persia_facesarm.tga.texture 
    45 unit_models/Toons/persia_facesarmnorm.texture 0 
    6 russia
    45 unit_models/Toons/persia_facesarm.tga.texture 
    45 unit_models/Toons/persia_facesarmnorm.texture 0 
    1 
    8 Elephant 
    17 MTW2_Chariot_Crew 0  
    1 
    21 MTW2_Arquebus_Primary 0 -1 0 0 0 0 0 0
    descr_mount
    Code:
    type				persiascythedchariot
    class				elephant
    model				mount_persia_scythedchariot
    radius				3                    ; was 5.5
    x_radius			1.3
    y_offset			0
    height				2.5
    mass				25
    banner_height			1
    bouyancy_offset			3
    water_trail_effect		elephant_water_trail
    root_node_height		1.0	;was 2.84
    attack_delay			0
    dead_radius			3.5
    tusk_z				3.0
    tusk_radius			2.3
    riders				2
    rider_offset			0.0, -0.75, -1.3 	
    rider_offset			0.2, -1.2, -1.3
    export_units
    Code:
    {Persian_Chariot_descr_short}Scythed chariots are fearsome devices, covered in scythe blades to cut down any infantry foolish enough to stand still when charged!
    {Persian_Chariot_descr} Originally invented in Ancient Mesopotamia by the Hittites, innovated upon by the Egyptians, and perfected by the Persians, Xenophon records the power of the scythed chariot when he noted: "the chariots dashing into Greek ranks, broke up their formation.
    {Persian_Chariot}	Persian Chariot
    descr_skeleton
    Code:
    type		fs_chariot		;chariots with 2 horses
    scale		1.12
    
    anim		default				data/animations/fs_chariot/med_elephant_default.CAS						-fr	-evt:data/animations/fs_chariot/med_elephant_default.evt
    anim		stand_a_idle			data/animations/fs_chariot/med_elephant_stand_a_idle.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_stand_a_idle.evt
    anim		stand_a_to_walk			data/animations/fs_chariot/med_elephant_stand_a_to_walk.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_stand_a_to_walk.evt
    anim		stand_a_to_run			data/animations/fs_chariot/med_elephant_stand_a_to_run.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_stand_a_to_run.evt
    anim		stand_a_to_charge		data/animations/fs_chariot/med_elephant_stand_a_to_charge.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_stand_a_to_charge.evt
    
    anim		stand_a_lf_idle_1		data/animations/fs_chariot/med_elephant_stand_a_hf_idle_1.CAS					-fr
    anim		stand_a_lf_idle_2		data/animations/fs_chariot/med_elephant_stand_a_hf_idle_2.CAS					-fr		
    anim		stand_a_lf_idle_3		data/animations/fs_chariot/med_elephant_stand_a_hf_idle_1.CAS					-fr		
    
    anim		stand_a_lf_idle_1		data/animations/fs_chariot/med_elephant_stand_a_hf_idle_3.CAS					-fr		
    
    
    anim		stand_a_turn_45_cw_1		data/animations/fs_chariot/med_elephant_stand_a_turn_45_cw_1.CAS		-mintd:10	-maxtd:68	-evt:data/animations/fs_chariot/med_elephant_stand_a_turn_45_ccw_1.evt
    anim		stand_a_turn_45_ccw_1		data/animations/fs_chariot/med_elephant_stand_a_turn_45_ccw_1.CAS		-mintd:10	-maxtd:68	-evt:data/animations/fs_chariot/med_elephant_stand_a_turn_45_ccw_1.evt
    anim		stand_a_turn_90_cw_1		data/animations/fs_chariot/med_elephant_stand_a_turn_45_cw_1.CAS		-mintd:67	-maxtd:115	-evt:data/animations/fs_chariot/med_elephant_stand_a_turn_45_cw_1.evt
    anim		stand_a_turn_90_ccw_1		data/animations/fs_chariot/med_elephant_stand_a_turn_45_ccw_1.CAS		-mintd:67	-maxtd:115	-evt:data/animations/fs_chariot/med_elephant_stand_a_turn_45_ccw_1.evt
    
    anim		walk				data/animations/fs_chariot/med_elephant_walk.CAS						-fr	-evt:data/animations/fs_chariot/med_elephant_walk.evt
    anim		walk_to_run			data/animations/fs_chariot/med_elephant_walk_to_run.CAS						-fr	-evt:data/animations/fs_chariot/med_elephant_walk_to_run.evt
    anim		walk_to_stand_a			data/animations/fs_chariot/med_elephant_walk_to_stand_a.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_walk_to_stand_a.evt
    
    anim		run				data/animations/fs_chariot/med_elephant_run.CAS							-fr	-evt:data/animations/fs_chariot/med_elephant_run.evt
    anim		run_to_walk			data/animations/fs_chariot/med_elephant_run_to_charge.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_run_to_charge.evt
    anim		run_to_stand_a			data/animations/fs_chariot/med_elephant_run_to_stand_a.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_run_to_stand_a.evt
    anim		run_to_charge			data/animations/fs_chariot/med_elephant_run_to_walk.CAS						-fr	-evt:data/animations/fs_chariot/med_elephant_run_to_walk.evt
    
    anim		charge				data/animations/fs_chariot/med_elephant_charge.CAS							-evt:data/animations/fs_chariot/med_elephant_charge.evt
    anim		charge_attack			data/animations/fs_chariot/med_elephant_charge.CAS					-fr	-if:7	-evt:data/animations/fs_chariot/med_elephant_charge_attack.evt
    
    ;;no attack; attack by charging
    anim		attack_mid_low_1		data/animations/fs_chariot/med_elephant_stand_a_to_charge_concat_med_elephant_charge_concat_med_elephant_run_to_stand_a.CAS					-fr	-if:7	-evt:data/animations/fs_chariot/med_elephant_stand_a_idle.evt
    anim		attack_mid_centre_1		data/animations/fs_chariot/med_elephant_stand_a_to_charge_concat_med_elephant_charge_concat_med_elephant_run_to_stand_a.CAS					-fr -if:7 	-evt:data/animations/fs_chariot/med_elephant_stand_a_idle.evt
    anim		attack_mid_high_1		data/animations/fs_chariot/med_elephant_stand_a_to_charge_concat_med_elephant_charge_concat_med_elephant_run_to_stand_a.CAS					-fr -if:7	-evt:data/animations/fs_chariot/med_elephant_stand_a_idle.evt
    
    ;anim		attack_mid_low_1		data/animations/fs_chariot/med_elephant_stand_a_idle.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_stand_a_idle.evt
    ;anim		attack_mid_centre_1		data/animations/fs_chariot/med_elephant_stand_a_idle.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_stand_a_idle.evt
    ;anim		attack_mid_high_1		data/animations/fs_chariot/med_elephant_stand_a_idle.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_stand_a_idle.evt
    
    
    ;anim		attack_mid_low_1		data/animations/fs_chariot/med_elephant_attack_mid_centre_1.CAS					-fr	-if:34, -evt:data/animations/fs_chariot/med_elephant_attack_mid_low_1.evt
    ;anim		attack_mid_centre_1		data/animations/fs_chariot/med_elephant_attack_mid_centre_1.CAS					-fr	-if:13	-evt:data/animations/fs_chariot/med_elephant_attack_mid_centre_1.evt
    ;anim		attack_mid_high_1		data/animations/fs_chariot/med_elephant_attack_mid_high_1.CAS					-fr	-if:21, -evt:data/animations/fs_chariot/med_elephant_attack_mid_high_1.evt
    
    anim		die_forward_1			data/animations/fs_chariot/med_elephant_die_forward_1.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_die_forward_1.evt
    anim		die_backward_1			data/animations/fs_chariot/med_elephant_die_forward_1.CAS					-fr	-evt:data/animations/fs_chariot/med_elephant_die_forward_1.evt
    
    
    anim		idle_to_swim			data/animations/fs_chariot/med_elephant_stand_a_to_walk.CAS					-fr	-id -0.1, 4.75, 4.84	-if:15
    anim		swim_to_idle			data/animations/fs_chariot/med_elephant_walk_to_stand_a.CAS					-fr
    anim		swim_idle			data/animations/fs_chariot/med_elephant_stand_a_idle.CAS						-fr
    anim		swim				data/animations/fs_chariot/med_elephant_walk.CAS						-fr
    anim		swim_attack			data/animations/fs_chariot/med_elephant_attack_mid_centre_1.CAS						-fr	-id 0.0, 4.17, 5.21		-if:13
    Last edited by ToonTotalWar; November 23, 2011 at 02:44 AM.

  2. #2
    Moon's Avatar Centenarius
    Join Date
    Oct 2008
    Location
    The dark side
    Posts
    878

    Default Re: CTD in Custom Battle screen?

    Animations and descr_skeleton file.

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

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by Moon View Post
    Animations and descr_skeleton file.
    They are both correct as the fs_chariot entry is in the descr_skeleton text file. there is no fs_chariot entry in the Animation's folder though?

  4. #4
    Moon's Avatar Centenarius
    Join Date
    Oct 2008
    Location
    The dark side
    Posts
    878

    Default Re: CTD in Custom Battle screen?

    Take a look at Bwian's working chariot and compare yours to his.
    http://www.twcenter.net/forums/downl...o=file&id=2239

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

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by Moon View Post
    Take a look at Bwian's working chariot and compare yours to his.
    http://www.twcenter.net/forums/downl...o=file&id=2239
    Thanks mate, will look at and report back! +rep

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

    Default Re: CTD in Custom Battle screen?

    Still getting the CTD in custom battle screen? the only thing I have changed is the creation of the "fs_chariot" folder in the "animations folder?

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

    Default Re: CTD in Custom Battle screen?

    anyone still help with this error please?

  8. #8

    Default Re: CTD in Custom Battle screen?

    Have you checked all the sprites and textures are where they should be? Refer to the chariots entry in the model.db
    for the sprites and textures, if you have missed one it will say in the log, but it may be a few a lines up from the bottom and iirc it WONT be an error entry.
    What does the log report say?


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

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by dannyxx30 View Post
    Have you checked all the sprites and textures are where they should be? Refer to the chariots entry in the model.db
    for the sprites and textures, if you have missed one it will say in the log, but it may be a few a lines up from the bottom and iirc it WONT be an error entry.
    What does the log report say?
    Attached log report mate, I cannot see anything in there that is incorrect? I checked the sprites and they are present as well.
    Last edited by ToonTotalWar; November 22, 2011 at 03:00 PM.

  10. #10

    Default Re: CTD in Custom Battle screen?

    Yeah logs clear, you could try a trace log.

    Here Gigantus told you to remove these descr_mount entries http://www.twcenter.net/forums/showt...2#post10625012 , one of them is for a chariot, have you added it back again?


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

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by dannyxx30 View Post
    Yeah logs clear, you could try a trace log.

    Here Gigantus told you to remove these descr_mount entries http://www.twcenter.net/forums/showt...2#post10625012 , one of them is for a chariot, have you added it back again?
    Yes mate, I have added them back otherwise my chariot will not work in game? the chariot needs the descr_mount entry to work properly

    here is trace log
    Last edited by ToonTotalWar; November 22, 2011 at 03:22 PM.

  12. #12

    Default Re: CTD in Custom Battle screen?

    That log doesn't appear to give any clues either!

    Try the chariot in a campaign battle, use the create_unit command etc, to make 100% sure it is the chariot. Double check you have everything in the right place. Sorry i cant give you an answer for the problem, maybe you could contact Eothese or Anthonius, someone who knows units and mounts etc.


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

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by dannyxx30 View Post
    That log doesn't appear to give any clues either!

    Try the chariot in a campaign battle, use the create_unit command etc, to make 100% sure it is the chariot. Double check you have everything in the right place. Sorry i cant give you an answer for the problem, maybe you could contact Eothese or Anthonius, someone who knows units and mounts etc.
    Thanks mate for trying to help out.

    What is this I read about having to re pack animations? do you know of this method?

  14. #14

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by ToonTotalWar View Post
    Thanks mate for trying to help out.

    What is this I read about having to re pack animations? do you know of this method?
    Not something i've done im afraid, so i've never looked into it, check out the tools, resources and tutorial section, there's bound to be some info about it there!


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

    Default Re: CTD in Custom Battle screen?

    Ok seem to be moving forward with this problem! the game now only CTD's when I place the cursor on the unit card in custom battle screen?? any ideas on what this can be?

  16. #16
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: CTD in Custom Battle screen?

    Entries int he export_units.txt?

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

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by irishron View Post
    Entries int he export_units.txt?
    {Egyptian_Chariot_descr_short} Scythed chariots are fearsome devices, covered in scythe blades to cut down any infantry foolish enough to stand still when charged!
    {Egyptian_Chariot_descr} Originally invented in Ancient Mesopotamia by the Hittites, innovated upon by the Egyptians, and perfected by the Persians, Xenophon records the power of the scythed chariot when he noted: the chariots dashing into Greek ranks, broke up their formation.
    {Egyptian_Chariot} Egyptian Chariot Bodyguard

    I dont think there is anything wrong with the entry? the unit name matches the EDU.

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

    Default Re: CTD in Custom Battle screen?

    ok I tried another chariot type and that worked (Britons Chariot)!! so I have established there is a problem with the mesh, but having looked at the file all looks fine?

  19. #19

    Default Re: CTD in Custom Battle screen?

    Similar thread here, it sounds very similar. http://www.twcenter.net/forums/showthread.php?t=494861


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

    Default Re: CTD in Custom Battle screen?

    Quote Originally Posted by dannyxx30 View Post
    Similar thread here, it sounds very similar. http://www.twcenter.net/forums/showthread.php?t=494861
    yeah, it is exactly the same as my problem. But I have my mount named correctly as it is part of the chariot model, so i am no further forward.

Page 1 of 2 12 LastLast

Posting Permissions

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