Results 1 to 4 of 4

Thread: [solved] trait error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default [solved] trait error

    in my system log, these errors appear:
    Spoiler Alert, click show to read: 

    21:29:47.838 [script.err] [warning] Trigger parsing warning in mods/Tsardoms/data/export_descr_character_traits.txt, at line 12727, column 36 :
    we should only have trait(CampaignSeason_admiral) additional affects for triggers(WinterToSummer_admiral)


    21:29:47.838 [script.err] [warning] Trigger parsing warning in mods/Tsardoms/data/export_descr_character_traits.txt, at line 12751, column 36 :
    we should only have trait(CampaignSeason_admiral) additional affects for triggers(Move_to_region_with_summer_during_winter_admiral)


    21:29:47.839 [script.err] [warning] Trigger parsing warning in mods/Tsardoms/data/export_descr_character_traits.txt, at line 13468, column 37 :
    we should only have trait(CampaignSeason_assassin) additional affects for triggers(WinterToSummer_assassin)


    21:29:47.839 [script.err] [warning] Trigger parsing warning in mods/Tsardoms/data/export_descr_character_traits.txt, at line 13492, column 37 :
    we should only have trait(CampaignSeason_assassin) additional affects for triggers(Move_to_region_with_summer_during_winter_assassin)


    21:29:47.839 [script.err] [warning] Trigger parsing warning in mods/Tsardoms/data/export_descr_character_traits.txt, at line 13980, column 37 :
    we should only have trait(CampaignSeason_diplomat) additional affects for triggers(WinterToSummer_diplomat)


    21:29:47.839 [script.err] [warning] Trigger parsing warning in mods/Tsardoms/data/export_descr_character_traits.txt, at line 14004, column 37 :
    we should only have trait(CampaignSeason_diplomat) additional affects for triggers(Move_to_region_with_summer_during_winter_diplomat)


    21:29:47.840 [script.err] [warning] Trigger parsing warning in mods/Tsardoms/data/export_descr_character_traits.txt, at line 14718, column 43 :
    we should only have trait(CampaignSeason_general_player) additional affects for triggers(WinterToSummer_general_player)


    etc. etc. etc......



    the character_traits file:
    Code:
    Trigger WinterToSummer_admiral
        WhenToTest CharacterTurnEnd
        
        Condition AgentType = admiral
            and Trait CampaignSeason_admiral == 2
            and I_EventCounter summer_winter == 1
        
        Affects CampaignSeason_admiral -1 Chance 100
    
    
    Trigger SummerToWinter_admiral
        WhenToTest CharacterTurnEnd
        
        Condition AgentType = admiral
            and Trait CampaignSeason_admiral == 1
            and I_EventCounter summer_winter == 2
            and not IsRegionOneOf 154, 156, 145, 150, 137, 157, 129, 130, 115
        
        Affects CampaignSeason_admiral 1 Chance 100
    
    
    
    
    Trigger Move_to_region_with_summer_during_winter_admiral
        WhenToTest CharacterTurnEnd
        
        Condition Trait CampaignSeason_admiral == 2
            and AgentType = admiral
            and I_EventCounter summer_winter == 2
            and IsRegionOneOf 154, 156, 145, 150, 137, 157, 129, 130, 115
    
        Affects CampaignSeason_admiral -1 Chance 100 
        
    
    Trigger Move_to_region_with_winter_during_winter_(unnecessary)_admiral
        WhenToTest CharacterTurnEnd
        
        Condition Trait CampaignSeason_admiral == 1
            and AgentType = admiral
            and I_EventCounter summer_winter == 2
            and not IsRegionOneOf 154, 156, 145, 150, 137, 157, 129, 130, 115
    
        Affects CampaignSeason_admiral 1 Chance 100
    does it have to do with the fact that the number is negative (..._admiral -1 Chance....)???
    Last edited by SpyrosM91; October 27, 2012 at 07:56 AM.
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  2. #2
    Kiliç Alì's Avatar Domesticus
    Artifex

    Join Date
    Feb 2011
    Location
    Italy
    Posts
    2,114

    Default Re: trait error

    Just trolling around... but theese are not errors, right? it says "warning".
    I guess it is connected with the -1. Triggers are made to work by addition, becouse in vanilla system is absurd for a character to lose a trait. Obviousely in a modding view it is not, so the log warns the programmer that a trigger working by addiction is having a negative effect.
    This is why there is the trait\antitrait system in vanilla (but since it is a bit broken, obviously a negative trigger works better).
    In a word, yes .

    Member of the Imperial House of Hader, proud client of The only and sole Ferrit

  3. #3

    Icon1 Re: trait error

    Kiliç Alì is right on both counts. Those are warnings and not errors and can be safely ignored. They were generated because you didn't use an anti-trait. Of course, if you had used an anti-trait it would have taken an extra turn to switch between the trait’s two levels.

  4. #4
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: trait error

    just as i thought..... thanks.. both (+rep)...
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

Posting Permissions

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