Results 1 to 8 of 8

Thread: AI losing a battle causes a crash

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default AI losing a battle causes a crash

    I've made a trait that gives generals traits if they lose to another religion. However when the AI loses to another religion the game crashes (this does not occur if they are sieging the enemy). Does anyone know what I am doing wrong (the error log gives no information)?

    Here are the traits (unorthodox refers to a new religion I made but the problem occurs regardless of the religion of the loser):

    Code:
    ;------------------------------------------
    Trait Fearscatholic
        Characters family
        AntiTraits Hatescatholic
    
        Level Nervous_Battling_Catholics
            Description Nervous_Battling_Catholics_desc
            EffectsDescription Nervous_Battling_Catholics_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_catholic -1 
            Effect Piety -1 
    
        Level Fears_Catholic_Warriors
            Description Fears_Catholic_Warriors_desc
            EffectsDescription Fears_Catholic_Warriors_effects_desc
            Threshold  2 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_catholic -2 
            Effect Piety -2 
    
        Level Terrified_of_Catholic_Warriors
            Description Terrified_of_Catholic_Warriors_desc
            EffectsDescription Terrified_of_Catholic_Warriors_effects_desc
            Threshold  4 
    
            Effect TroopMorale -2 
            Effect Combat_V_Religion_catholic -3 
            Effect Piety -4 
    
    
    
    ;------------------------------------------
    Trait Hatescatholic
        Characters family
        AntiTraits Fearscatholic
    
        Level Dislikes_Catholics
            Description Dislikes_Catholics_desc
            EffectsDescription Dislikes_Catholics_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_catholic  1 
            Effect Piety 1 
    
        Level Hates_Catholics
            Description Hates_Catholics_desc
            EffectsDescription Hates_Catholics_effects_desc
            Threshold  2 
    
            Effect Combat_V_Religion_catholic  2 
            Effect Piety 2 
    
        Level Loathes_Catholics
            Description Loathes_Catholics_desc
            EffectsDescription Loathes_Catholics_effects_desc
            Threshold  4 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_catholic  3 
            Effect Piety 3 
    
    
    
    ;------------------------------------------
    Trait Fearsorthodox
        Characters family
        AntiTraits Hatesorthodox
    
        Level Nervous_Battling_Orthodox
            Description Nervous_Battling_Orthodox_desc
            EffectsDescription Nervous_Battling_Orthodox_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_orthodox -1 
            Effect Piety -1 
    
        Level Fears_Orthodox_Warriors
            Description Fears_Orthodox_Warriors_desc
            EffectsDescription Fears_Orthodox_Warriors_effects_desc
            Threshold  2 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_orthodox -2 
            Effect Piety -2 
    
        Level Terrified_of_Orthodox_Warriors
            Description Terrified_of_Orthodox_Warriors_desc
            EffectsDescription Terrified_of_Orthodox_Warriors_effects_desc
            Threshold  4 
    
            Effect TroopMorale -2 
            Effect Combat_V_Religion_orthodox -3 
            Effect Piety -4 
    
    
    
    ;------------------------------------------
    Trait Hatesorthodox
        Characters family
        AntiTraits Fearsorthodox
    
        Level Dislikes_Orthodox
            Description Dislikes_Orthodox_desc
            EffectsDescription Dislikes_Orthodox_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_orthodox  1
            Effect Piety 1  
    
        Level Hates_Orthodox
            Description Hates_Orthodox_desc
            EffectsDescription Hates_Orthodox_effects_desc
            Threshold  2 
    
            Effect Combat_V_Religion_orthodox  2 
            Effect Piety 2 
    
        Level Loathes_Orthodox
            Description Loathes_Orthodox_desc
            EffectsDescription Loathes_Orthodox_effects_desc
            Threshold  4 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_orthodox  3 
            Effect Piety 3 
    
    
    
    ;------------------------------------------
    Trait Fearsislam
        Characters family
        AntiTraits Hatesislam
    
        Level Wary_of_Muslims
            Description Wary_of_Muslims_desc
            EffectsDescription Wary_of_Muslims_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_islam -1 
            Effect Piety -1 
    
        Level Fears_Muslims
            Description Fears_Muslims_desc
            EffectsDescription Fears_Muslims_effects_desc
            Threshold  2 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_islam -2 
            Effect Piety -2 
    
        Level Terrified_of_Islam
            Description Terrified_of_Islam_desc
            EffectsDescription Terrified_of_Islam_effects_desc
            Threshold  4 
    
            Effect TroopMorale -2 
            Effect Combat_V_Religion_islam -3 
            Effect Piety -4 
    
    
    
    ;------------------------------------------
    Trait Hatesislam
        Characters family
        AntiTraits Fearsislam
    
        Level Dislikes_Muslims
            Description Dislikes_Muslims_desc
            EffectsDescription Dislikes_Muslims_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_islam  1 
            Effect Piety 1 
    
        Level Hates_Muslims
            Description Hates_Muslims_desc
            EffectsDescription Hates_Muslims_effects_desc
            Threshold  2 
    
            Effect Combat_V_Religion_islam  2 
            Effect Piety 2 
    
        Level Loathes_Muslims
            Description Loathes_Muslims_desc
            EffectsDescription Loathes_Muslims_effects_desc
            Threshold  4 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_islam  3 
            Effect Piety 3 
    
    
    
    ;------------------------------------------
    Trait Fearsheretic
        Characters family
        AntiTraits Hatesheretic
    
        Level Wary_of_Heresy
            Description Wary_of_Heresy_desc
            EffectsDescription Wary_of_Heresy_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_heretic -1 
            Effect Piety -2 
    
    
        Level Fears_Heretics
            Description Fears_Heretics_desc
            EffectsDescription Fears_Heretics_effects_desc
            Threshold  2 
    
            Effect Combat_V_Religion_heretic -2 
            Effect Piety -4 
    
    
        Level Terrified_of_Heretics
            Description Terrified_of_Heretics_desc
            EffectsDescription Terrified_of_Heretics_effects_desc
            Threshold  4 
    
            Effect Combat_V_Religion_heretic -3 
            Effect Piety -6 
    
    
    ;------------------------------------------
    Trait Hatesheretic
        Characters family
        AntiTraits Fearsheretic
    
        Level Dislikes_Heretics
            Description Dislikes_Heretics_desc
            EffectsDescription Dislikes_Heretics_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_heretic  1
            Effect Piety 1  
    
        Level Hates_Heretics
            Description Hates_Heretics_desc
            EffectsDescription Hates_Heretics_effects_desc
            Threshold  2 
    
            Effect Combat_V_Religion_heretic  2 
            Effect Piety 2 
    
    
        Level Loathes_Heretics
            Description Loathes_Heretics_desc
            EffectsDescription Loathes_Heretics_effects_desc
            Threshold  4 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_heretic  3 
            Effect Piety 4 
    
    
    
    ;------------------------------------------
    Trait Fearspagan
        Characters family
        AntiTraits Hatespagan
    
        Level Wary_of_Pagans
            Description Wary_of_Pagans_desc
            EffectsDescription Wary_of_Pagans_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_pagan -1 
            Effect Piety -1 
    
        Level Fears_Pagans
            Description Fears_Pagans_desc
            EffectsDescription Fears_Pagans_effects_desc
            Threshold  2 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_pagan -2 
            Effect Piety -2 
    
        Level Terrified_of_Pagan_Ways
            Description Terrified_of_Pagan_Ways_desc
            EffectsDescription Terrified_of_Pagan_Ways_effects_desc
            Threshold  4 
    
            Effect TroopMorale -2 
            Effect Combat_V_Religion_pagan -3 
            Effect Piety -4 
    
    
    ;------------------------------------------
    
    Trait Hatespagan
        Characters family
        AntiTraits Fearspagan
    
        Level Dislikes_Pagans
            Description Dislikes_Pagans_desc
            EffectsDescription Dislikes_Pagans_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_pagan  1 
            Effect Piety 1 
    
        Level Hates_Pagans
            Description Hates_Pagans_desc
            EffectsDescription Hates_Pagans_effects_desc
            Threshold  2 
    
            Effect Combat_V_Religion_pagan  2 
            Effect Piety 2 
    
        Level Loathes_Paganism
            Description Loathes_Paganism_desc
            EffectsDescription Loathes_Paganism_effects_desc
            Threshold  4 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_pagan  3 
            Effect Piety 3 
    
    ;------------------------------------------
    Trait Hatesunorthodox
        Characters family
        AntiTraits Fearsunorthodox
    
        Level Dislikes_unorthodox
            Description Dislikes_unorthodox_desc
            EffectsDescription Dislikes_unorthodox_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_unorthodox  1 
            Effect Piety 1 
    
        Level Hates_unorthodox
            Description Hates_unorthodox_desc
            EffectsDescription Hates_unorthodox_effects_desc
            Threshold  2 
    
            Effect Combat_V_Religion_unorthodox  2 
            Effect Piety 2 
    
        Level Loathes_unorthodox
            Description Loathes_unorthodox_desc
            EffectsDescription Loathes_unorthodox_effects_desc
            Threshold  4 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_unorthodox  3 
            Effect Piety 3 
    
    ;------------------------------------------
    
    Trait Fearsunorthodox
        Characters family
        AntiTraits Hatesunorthodox
    
        Level Wary_of_unorthodox
            Description Wary_of_unorthodox_desc
            EffectsDescription Wary_of_unorthodox_effects_desc
            Threshold  1 
    
            Effect Combat_V_Religion_unorthodox -1 
            Effect Piety -1 
    
        Level Fears_unorthodox
            Description Fears_unorthodox_desc
            EffectsDescription Fears_unorthodox_effects_desc
            Threshold  2 
    
            Effect TroopMorale -1 
            Effect Combat_V_Religion_unorthodox -2 
            Effect Piety -2 
    
        Level Terrified_of_unorthodox
            Description Terrified_of_unorthodox_desc
            EffectsDescription Terrified_of_unorthodox_effects_desc
            Threshold  4 
    
            Effect TroopMorale -2 
            Effect Combat_V_Religion_unorthodox -3 
            Effect Piety -4 
    
    
    ;------------------------------------------
    Here are the triggers:

    Code:
    ;------------------------------------------
    Trigger hate_n_fear_50
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion catholic
              and not CharacterReligion heretic
              and not WonBattle
              and BattleSuccess = crushing
              and I_ConflictType Normal
              and BattleOdds >= 0.9
              and TargetReligion catholic
    
        Affects Fearscatholic  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_51
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion orthodox
              and not CharacterReligion heretic
              and not WonBattle
              and BattleSuccess = crushing
              and I_ConflictType Normal
              and BattleOdds >= 0.9
              and TargetReligion orthodox
    
        Affects Fearsorthodox  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_52
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion islam
              and not WonBattle
              and BattleSuccess = crushing
              and I_ConflictType Normal
              and BattleOdds >= 0.9
              and TargetReligion islam
    
        Affects Fearsislam  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_53
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion pagan
              and not WonBattle
              and BattleSuccess = crushing
              and I_ConflictType Normal
              and BattleOdds >= 0.9
              and TargetReligion pagan
    
        Affects Fearspagan  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_54
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not WonBattle
              and BattleSuccess = crushing
              and I_ConflictType Normal
              and BattleOdds >= 0.9
              and TargetReligion heretic
    
        Affects Fearsheretic  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_55
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion unorthodox
              and not WonBattle
              and BattleSuccess = crushing
              and I_ConflictType Normal
              and BattleOdds >= 0.9
              and TargetReligion unorthodox
    
        Affects Fearsunorthodox  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_56
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion catholic
              and not WonBattle
              and BattleSuccess >= clear
              and I_ConflictType Normal
              and BattleOdds >= 0.5
              and BattleOdds < 1.5
              and TargetReligion catholic
    
        Affects Hatescatholic  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_57
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion orthodox
              and not WonBattle
              and BattleSuccess >= clear
              and I_ConflictType Normal
              and BattleOdds >= 0.5
              and BattleOdds < 1.5
              and TargetReligion orthodox
    
        Affects Hatesorthodox  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_58
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion islam
              and not WonBattle
              and BattleSuccess >= clear
              and I_ConflictType Normal
              and BattleOdds >= 0.5
              and BattleOdds < 1.5
              and TargetReligion islam
    
        Affects Hatesislam  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_59
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion pagan
              and not WonBattle
              and BattleSuccess >= clear
              and I_ConflictType Normal
              and BattleOdds >= 0.5
              and BattleOdds < 1.5
              and TargetReligion pagan
    
        Affects Hatespagan  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_60
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not WonBattle
              and BattleSuccess >= clear
              and I_ConflictType Normal
              and BattleOdds >= 0.5
              and BattleOdds < 1.5
              and TargetReligion heretic
    
        Affects Hatesheretic  1  Chance  100 
    
    ;------------------------------------------
    Trigger hate_n_fear_61
        WhenToTest GeneralAssaultsGeneral
    
        Condition not CharacterReligion heretic
              and not CharacterReligion unorthodox
              and not WonBattle
              and BattleSuccess >= clear
              and I_ConflictType Normal
              and BattleOdds >= 0.5
              and BattleOdds < 1.5
              and TargetReligion unorthodox
    
        Affects Hatesunorthodox  1  Chance  100 
    
    ;------------------------------------------
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  2. #2
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: AI losing a battle causes a crash

    Why don't you check PostBattle? GeneralAssaultsGeneral will probably trigger before the battle and therefore some conditions won't be available which likely triggers your crash.

    No thing is everything. Every thing is nothing.

  3. #3

    Default Re: AI losing a battle causes a crash

    Okay I tried changing 'GeneralAssaultsGeneral' to 'PostBattle' but when M2TW crashed I got this error message. Any ideas on how to fix this?

    Code:
    13:22:00.468 [system.rpt] [always] CPU: SSE2
    13:22:00.484 [system.rpt] [always] ==== system log start, build date: Apr 23 2007 version bld-medieval2-update2-84 (37970) ===
    13:22:00.500 [system.io] [always] mounted pack packs/data_0.pack
    13:22:00.500 [system.io] [always] mounted pack packs/data_1.pack
    13:22:00.500 [system.io] [always] mounted pack packs/data_2.pack
    13:22:00.500 [system.io] [always] mounted pack packs/data_3.pack
    13:22:00.515 [system.io] [always] mounted pack packs/data_4.pack
    13:22:00.515 [system.io] [always] mounted pack packs/localized.pack
    13:24:31.296 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:31.296 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:31.296 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:31.296 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:31.296 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:57.500 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:57.500 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:57.500 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:57.500 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:24:57.515 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:11.062 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:11.062 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:11.062 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:11.062 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:11.062 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:37.531 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:37.531 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:37.531 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:37.531 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:37.531 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_50> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_51> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_53> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_54> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_55> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:25:41.328 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:33.703 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:33.703 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:33.703 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:33.703 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:33.703 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:42.812 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:42.812 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:42.812 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:42.812 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:42.812 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:48.468 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:48.468 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:48.468 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:48.468 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:29:48.468 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_51> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_52> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_53> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_54> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_55> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:31:13.250 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:20.906 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:20.906 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:20.906 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:20.906 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:20.921 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:21.234 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:21.234 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:21.234 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:21.234 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:32:21.234 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:05.484 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:05.484 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:05.484 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:05.484 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:05.484 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:39.875 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:39.875 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:39.875 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:39.875 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:35:39.890 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:35.578 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:35.578 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:35.578 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:35.578 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:35.578 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:39.515 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:39.515 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:39.515 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:39.515 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:39.515 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_50> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_51> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_53> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_54> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_55> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_56> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:36:40.421 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:37:53.343 [game.script] [error] Trigger processing error in <hate_n_fear_57> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:37:53.359 [game.script] [error] Trigger processing error in <hate_n_fear_58> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:37:53.359 [game.script] [error] Trigger processing error in <hate_n_fear_59> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:37:53.359 [game.script] [error] Trigger processing error in <hate_n_fear_60> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:37:53.359 [game.script] [error] Trigger processing error in <hate_n_fear_61> 
    : <target_faction> is unavailable from event <PostBattle>
    when testing <TargetReligion> condition
    13:38:14.453 [system.rpt] [error] Medieval 2: Total War encountered an unspecified error and will now exit.
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  4. #4
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: AI losing a battle causes a crash

    Right, I forgot: PostBattle doesn't export a target faction. You'll have to use GeneralFoughtFaction or GeneralFoughtCulture in this case - or use event counters and the script to save the target faction before the battle (with the assault event)

    No thing is everything. Every thing is nothing.

  5. #5

    Default Re: AI losing a battle causes a crash

    Do I have to replace 'PostBattle' or 'TargetReligion' with GeneralFoughtCulture? Also would 'GeneralFoughtReligion' work?
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  6. #6
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: AI losing a battle causes a crash

    Quote Originally Posted by uanime5 View Post
    Do I have to replace 'PostBattle' or 'TargetReligion' with GeneralFoughtCulture? Also would 'GeneralFoughtReligion' work?
    Unfortunately there's no GeneralFoughtReligion condition. Check the docudemons for more details.

    You'd have to replace the TargetReligion condition, but with an entry for each faction. In addition, it appears that in Kingdoms factions can change their religion so you might in general want to use the second approach.

    No thing is everything. Every thing is nothing.

Posting Permissions

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