Results 1 to 5 of 5

Thread: <IsCrusade> condition CTD

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    RaZor HeaD's Avatar Decanus
    Join Date
    Sep 2008
    Location
    Primarily Chicago IL. Presently DeKalb IL.
    Posts
    580

    Default <IsCrusade> condition CTD

    - I'm getting a CTD after only playing a few turns.
    - It only happens during the AI's turn.
    - I think it may have something to do with The Real People Mod - by Matz that I've installed.
    - The log says it's a problem with the export_descr_character_traits and I suspect that it's a typo error.

    system.log
    Spoiler Alert, click show to read: 
    02:34:39.343 [game.script] [error] Trigger processing error in <CGeneric14_1a>
    : <crusade> is unavailable from event <CharacterTurnStart>
    when testing <IsCrusade> condition

    02:34:39.343 [game.script] [error] Trigger processing error in <CGeneric14_1b>
    : <crusade> is unavailable from event <CharacterTurnStart>
    when testing <IsCrusade> condition

    02:34:39.343 [game.script] [error] Trigger processing error in <CGeneric14_2a>
    : <crusade> is unavailable from event <CharacterTurnStart>
    when testing <IsJihad> condition

    02:34:39.344 [game.script] [error] Trigger processing error in <CGeneric14_2b>
    : <crusade> is unavailable from event <CharacterTurnStart>
    when testing <IsJihad> condition


    My export_descr_character_traits file with suspected typos in red.
    - Shouldn't characterreligion be CharacterReligion?
    - Shouldn't IsRegionjihadTarget be IsRegionJihadTarget?
    I've tried changing them but no go.
    Spoiler Alert, click show to read: 
    ;------------------------------------------
    Trigger CGeneric14_1a
    WhenToTest CharacterTurnStart
    Condition IsCrusade
    and characterreligion catholic
    and IsOnCrusade
    Affects ReligiousMotivation1 1 Chance 100
    Trigger CGeneric14_1b
    WhenToTest CharacterTurnStart
    Condition IsCrusade
    and IsRegionCrusadeTarget
    and characterreligion catholic
    Affects ReligiousMotivation2 1 Chance 100
    Affects ReligiousMotivation3 1 Chance 100
    Affects ReligiousMotivation4 1 Chance 100
    ;------------------------------------------
    Trigger CGeneric14_2a
    WhenToTest CharacterTurnStart
    Condition IsJihad
    and characterreligion islam
    and IsOnCrusade
    Affects ReligiousMotivation1 1 Chance 100
    Trigger CGeneric14_2b
    WhenToTest CharacterTurnStart
    Condition IsJihad
    and IsRegionjihadTarget
    and characterreligion islam
    Affects ReligiousMotivation2 1 Chance 100
    Affects ReligiousMotivation3 1 Chance 100
    Affects ReligiousMotivation4 1 Chance 100
    ;------------------------------------------

    I'm kinda stumped because I'm just starting to learn how to write script, so I've really no idea where to look.
    Last edited by RaZor HeaD; July 29, 2009 at 03:21 AM.

  2. #2
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: <IsCrusade> condition CTD

    Apart from the typo, as the log said, "IsCrusade" cannot be used with CharacterTurnStart, and it is also needed either:

    Code:
    Trigger CGeneric14_1a
    WhenToTest CharacterTurnStart
    Condition IsOnCrusade
    and CharacterReligion catholic
    
    Affects ReligiousMotivation1 1 Chance 100 
    
    Trigger CGeneric14_1b
    WhenToTest CharacterTurnStart
    Condition IsOnCrusade
    and IsRegionCrusadeTarget
    and CharacterReligion catholic
    
    Affects ReligiousMotivation2 1 Chance 100 
    Affects ReligiousMotivation3 1 Chance 100 
    Affects ReligiousMotivation4 1 Chance 100

    If you like, check the trait generator from my sig.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  3. #3
    RaZor HeaD's Avatar Decanus
    Join Date
    Sep 2008
    Location
    Primarily Chicago IL. Presently DeKalb IL.
    Posts
    580

    Default Re: <IsCrusade> condition CTD

    Thanks for the timely and very helpful response my friend.
    I'll try this an see what transpires.

    Learning how to script sure makes my head ache though.

    BTW +rep 2 U

  4. #4
    RaZor HeaD's Avatar Decanus
    Join Date
    Sep 2008
    Location
    Primarily Chicago IL. Presently DeKalb IL.
    Posts
    580

    Default Re: <IsCrusade> condition CTD

    as the log said, "IsCrusade" cannot be used with CharacterTurnStart, and it is also needed either
    Then In the same way, if I get a log entry that says...

    <crusade> is unavailable from event <CharacterTurnStart>
    when testing <IsJihad> condition

    ...and the script in the export_descr_character_traits says...

    WhenToTest CharacterTurnStart

    Condition IsJihad
    and CharacterReligion islam
    and IsOnCrusade

    ...It should instead read...

    WhenToTest CharacterTurnStart

    Condition IsOnCrusade
    and CharacterReligion islam

    ...do I have that right?

  5. #5
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: <IsCrusade> condition CTD

    Yes, change the other triggers accordingly.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

Posting Permissions

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