Results 1 to 2 of 2

Thread: Help with Switching Units to other Factions

  1. #1

    Default Help with Switching Units to other Factions

    I have been trying to give Pontus ownership of the Hai unit Zrahakir Netadzik (armored horse archers), but my efforts have only led to continual CTDs upon startup. Somewhere I must have made a mistake or was not comprehensive enough, most likely in the EDB as it is the most complex but the EDU is also acting strangely.

    I uploaded the files to check for any issues.

    What I've done since I was last able to play the game:

    -Copied the Zrahakir Netadzik .tga files into the carthage subfolder in both UI/Units and UI/Unit Info.

    -In the EDU I put carthage next to romans_scipii in the unit ownership line.

    -Created another line of model_sprite code for carthage in the DMB.

    -In the EDB I put carthage next to romans_scipii in every recruitment line where Zrahakir Netadzik is. I read that one must put the Zrahakir Netadzik in Pontus's MIC locations but is this relevant since Pontus/Hayasdan seem to share the same MICs?

    As far as I've found by searching this was all that was needed to be done, but it doesn't seem to be sufficient.

    Now when I try to start EB (after it was working fine previously) I get midway through the EB loading screen and it ctds. The only thing I can grasp is that every time I start EB and it crashes the EDU gets changed to normal (any attack/morale value I changed gets reset and the Carthage line for ownership gets deleted).

    Any help is very much appreciated!

  2. #2
    urk! Member bobbin's Avatar
    Join Date
    Aug 2008
    Location
    Tin Isles
    Posts
    3,668

    Default Re: Help with Switching Units to other Factions

    Quote Originally Posted by Veris View Post
    I have been trying to give Pontus ownership of the Hai unit Zrahakir Netadzik (armored horse archers), but my efforts have only led to continual CTDs upon startup. Somewhere I must have made a mistake or was not comprehensive enough, most likely in the EDB as it is the most complex but the EDU is also acting strangely.

    I uploaded the files to check for any issues.

    What I've done since I was last able to play the game:

    -Copied the Zrahakir Netadzik .tga files into the carthage subfolder in both UI/Units and UI/Unit Info.

    -In the EDU I put carthage next to romans_scipii in the unit ownership line.

    -Created another line of model_sprite code for carthage in the DMB.

    -In the EDB I put carthage next to romans_scipii in every recruitment line where Zrahakir Netadzik is. I read that one must put the Zrahakir Netadzik in Pontus's MIC locations but is this relevant since Pontus/Hayasdan seem to share the same MICs?

    As far as I've found by searching this was all that was needed to be done, but it doesn't seem to be sufficient.
    You seem to have done every step needed so it's probably a simple mistake somewhere. Couldn't find your uploaded files so I'll just put what you should have put in the various files here.

    EDU
    Code:
    ;9
    type             eastern missile cavalry zrahakir netadzik
    dictionary       eastern_missile_cavalry_zrahakir_netadzik      ; Zrahakir Netadzik
    category         cavalry
    class            heavy
    voice_type       General_1
    soldier          steppe_cavalry_zradhashivatir_zrahakirnetadzik, 25, 0, 1
    mount            hellenistic kataphraktoi horse
    mount_effect     elephant -1, chariot +2
    attributes       sea_faring, hide_forest
    formation        1.5, 4, 3, 6, 4, square
    stat_health      1, 2
    stat_pri         5, 44, arrow, 187, 40, missile, archery, piercing, none, 15 ,1
    stat_pri_attr    no
    stat_sec         4, 44, no, 0, 0, melee, blade, piercing, spear, 200 ,0.4
    stat_sec_attr    ap
    stat_pri_armour  20, 8, 0, metal
    stat_sec_armour  0, 0, metal
    stat_heat        4
    stat_ground      0, 0, -4, -1
    stat_mental      13, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 4165, 1041, 274, 1276, 4165
    ownership        romans_scipii, carthage
    EDB
    Code:
    recruit "eastern missile cavalry zrahakir netadzik" 0 requires factions { romans_scipii, carthage, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
                    recruit "eastern missile cavalry zrahakir netadzik" 0 requires factions { romans_scipii, carthage, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
                    recruit "eastern missile cavalry zrahakir netadzik" 0 requires factions { romans_scipii, carthage, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
    DMB
    Code:
    ; Eastern cavalry - Zradha Shivatir / Zrahakir Netadzik (Armenian)
    
    type				steppe_cavalry_zradhashivatir_zrahakirnetadzik
    skeleton			fs_mounted_archer, fs_thp_m_spearman
    indiv_range			40
    texture				parthia, eb/data/models_unit/textures/eastern/ebeastern_cavalry_zradha_shivatir_kali_parthia.tga
    texture				romans_scipii, eb/data/models_unit/textures/eastern/ebeastern_cavalry_zrahakir_netadzik_kali_scipii.tga
    texture				carthage, eb/data/models_unit/textures/eastern/ebeastern_cavalry_zrahakir_netadzik_kali_scipii.tga
    model_flexi			eb/data/models_unit/ebeastern_cavalry_zradha_shivatir_netadzik_alin_high.cas, 15
    model_flexi			eb/data/models_unit/ebeastern_cavalry_zradha_shivatir_netadzik_alin_med.cas, 30
    model_flexi			eb/data/models_unit/ebeastern_cavalry_zradha_shivatir_netadzik_alin_low.cas, 40
    model_flexi			eb/data/models_unit/ebeastern_cavalry_zradha_shivatir_netadzik_alin_lowest.cas, max
    model_sprite		parthia, 60.0, eb/data/sprites/eastern/ebsprite_eastern_missile_cavalry_zradha_shivatir_all.spr
    model_sprite		romans_scipii, 60.0, eb/data/sprites/eastern/ebsprite_eastern_missile_cavalry_zrahakir_netadzik_all.spr
    model_sprite		carthage, 60.0, eb/data/sprites/eastern/ebsprite_eastern_missile_cavalry_zrahakir_netadzik_all.spr
    model_tri			400, 0.5f, 0.5f, 0.5f

    Now when I try to start EB (after it was working fine previously) I get midway through the EB loading screen and it ctds. The only thing I can grasp is that every time I start EB and it crashes the EDU gets changed to normal (any attack/morale value I changed gets reset and the Carthage line for ownership gets deleted).

    Any help is very much appreciated!
    Are you using the trivial script? you need to replace the EDU in the sp game edu backup folder as well.


    ps as a little tip for the future put "-show_err" in the target line of your EB icon as this will sometimes tell you whats gone wrong to cause the game to crash.

    Target line should be something like this.
    Code:
    "C:\Games\Rome - Total War\RomeTW.exe" -mod:eb -show_err -ne
    Hope that works out for you!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO