Results 1 to 6 of 6

Thread: CTD of Traits and ancillaries that happen at random that could not detect by validator.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Suppanut's Avatar Idea-O-Matic
    Join Date
    Mar 2007
    Location
    Thailand
    Posts
    3,784

    Icon5 CTD of Traits and ancillaries that happen at random that could not detect by validator.

    I have problem with my creation, Ethnic Traits 3 for XC, for a while, as I could not get rid this kind of CTD that related to trait and ancillaries with characteristic like this.

    Condition= BI1.6, Mod extended culture 4 alpha, AI play testing

    - Happan randomly and usually after game start more than 80 turns
    - Gamebreaking CTD but could be discriminated from other CTD as when remove trigger from EDA and EDCT and load old save it will be able to pass through that point
    - CTD is true no matter as long as it has chance of triggers, no matter how much the chance is
    - Could located the origin area that related to CTD to the trigger or triggers from EDA or EDCT, which when removed or made condition of them not true it will be able to pass through CTD point without problem.
    - trait and ancillaries itself seem fine as it could be add by other mean without CTD in other turn or other game start.
    - some trigger that cause this kind of CTD may identical to vanilla or BI vanilla yet it cause CTD which seem to happen to only that turn. After that turn, the same condition may work properly.
    - if it happen once then it will be more likely to happen again in that game in about 10-20 turns
    - if it happen again, it may not happen at the same triggers or points like earlier ones or from other game start.

    What is this? And how could I fix it?

    Thanks in advance.
    Is proudly patroned by the Great Balikedes.



  2. #2

    Default Re: CTD of Traits and ancillaries that happen at random that could not detect by validator.

    What event does the trigger fire upon? Is it, for example, PreBattle?

  3. #3
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: CTD of Traits and ancillaries that happen at random that could not detect by validator.

    Which version of ATVTW did you use, I just released a new one yesterday (or early this morning depending on where you're located)?

    What is the trigger? What is/are the trait(s)/religions being affected by it? What are all the enum entries associated with it? (Put all in code tags please)
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  4. #4
    Suppanut's Avatar Idea-O-Matic
    Join Date
    Mar 2007
    Location
    Thailand
    Posts
    3,784

    Default Re: CTD of Traits and ancillaries that happen at random that could not detect by validator.

    I use 1.1.0 and your validator made me far more shorter work. Thank you.

    Your 2.0 has bug which made it not support big files, I persume from test on EB and get the same bug error on program, as I try it and it has program error. But I will looking forward for next version.


    here is example from EDA, top part.

    Code:
    ;------------------------------------------
    Ancillary Spear_Carrier
        Image helmeted_soldier_ancillary.tga
        ExcludedAncillaries shieldbearer, swordbearer, Shield-maiden
        ExcludeCultures roman
        Description Spear_Carrier_desc
        EffectsDescription Spear_Carrier_effects_desc
        Effect Influence  1 
        Effect BodyguardValour  1  
        Effect NavalCommand  -1 
        Effect Bribery  7
    Trigger part
    Code:
    ;------------------------------------------
    Trigger trigger_Spear_Carrier_01
        WhenToTest PostBattle
        Condition GeneralHPLostRatioinBattle <= 80
              and GeneralNumKillsInBattle > 7
              and WonBattle
              and not Routs
              and Trait BarbarianWarriorSkill > 0
              and Attribute Bribery < 35
              and IsGeneral
    
        AcquireAncillary Spear_Carrier chance  10 
    
    ;------------------------------------------
    Trigger trigger_Spear_Carrier_02
        WhenToTest PostBattle
        Condition GeneralHPLostRatioinBattle <= 80
              and GeneralNumKillsInBattle > 7
              and WonBattle
              and not Routs
              and Trait Impetuous > 0
              and Attribute Bribery < 35
              and IsGeneral
    
        AcquireAncillary Spear_Carrier chance  5

    Here is description in EA

    Code:
    ¬---------------
    
    {Spear_Carrier}    Spear Carrier
    
    {Spear_Carrier_desc}
    Someone to carry and care for a general's equipments is always in benefit to a busy leader.
    
    {Spear_Carrier_effects_desc}
    +1 Influence, +1 to the valour of your general's bodyguards
    Last edited by Suppanut; October 31, 2009 at 08:18 PM.
    Is proudly patroned by the Great Balikedes.



  5. #5

    Default Re: CTD of Traits and ancillaries that happen at random that could not detect by validator.

    Can you comment out all condition lines in the triggers, see if it CTDs and if not then start adding them back 1 at a time, checking every time?

  6. #6
    Suppanut's Avatar Idea-O-Matic
    Join Date
    Mar 2007
    Location
    Thailand
    Posts
    3,784

    Default Re: CTD of Traits and ancillaries that happen at random that could not detect by validator.

    I try comment all triggers and gradually allow triggers one by one so many times, many time to see that the problem triggers are the same in each savegame but random every start new game.

    Problem seem to be that trait or ancillary is triggered in the condition that true that turn as next turn or next new game, the old trigger is not problem anymore.
    Is proudly patroned by the Great Balikedes.



Posting Permissions

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