Results 1 to 5 of 5

Thread: {SOLVED} Trait - parsing error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Minas Moth's Avatar Senator
    Join Date
    Feb 2011
    Location
    Croatia
    Posts
    1,338

    Default {SOLVED} Trait - parsing error

    ok, here's just a part of my system log...

    Spoiler Alert, click show to read: 
    log
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 12986, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 12997, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13042, column 21
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13051, column 21
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13060, column 21
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13081, column 21
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13116, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13169, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13179, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13189, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13198, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13209, column 19
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13210, column 19
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13219, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13228, column 15
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13236, column 35
    unit category not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13238, column 19
    Trait not recognised
    15:08:56.944 [game.script] [error] Condition parsing error in mods/Third_Age_3/data/export_descr_character_traits.txt, at line 13239, column 19
    Trait not recognised

    this are my constant problems with traits...

    at line 13228 i have this:
    Code:
    Trigger MasterArcherMM2
        WhenToTest GovernorBuildingCompleted
    
        Condition SettlementBuildingFinished = marksmans_range
        and Trait MasterArcher >= 1
    
        Affects MasterArcher 2 chance 50
    this refers to this trait:
    Code:
    ;------------------------------------------
    Trait MasterArcher
        Characters all
    
        Level arc
            Description arc_desc
            EffectsDescription arc_effects_desc
            Threshold 1
    
            Effect MovementPoints 1
            Effect LineOfSight 3
    
        level roa
            Description roa_desc
            EffectsDescription roa_effects_desc
            Threshold 4
    
            Effect MovementPoints 3
            Effect LineOfSight 6
    
        Level msta
            Description msta_desc
            EffectsDescription msta_effects_desc
            Threshold 7
    
            Effect MovementPoints 6
            Effect LineOfSight 9
    all the levels have coresponding names in the exportVnVs.txt file:
    Code:
    ¬------------------------------------------
    {arc}Archer Tactics
    {arc_desc}Relying on archers, this general can spot his enemies and inflict them heavy casulties even before main battle lines engage.
    {arc_gain_desc}Bows and ranged warfare always facinated this general. Now he has set on a path on becoming Archer Commander.
    {arc_effects_desc} 5% increase in Movement Points, increased Line of Sight due to archer-scouts
    ¬------------------------------------------
    {roa}Relies on Archers
    {roa_desc}Archers are involved in all battle plans of this general. Victory is never achived without them.
    {roa_gain_desc}Furthering his knowledge in archer tactics, this main gained new understanding of how things work on a battlefield.
    {roa_effects_desc}15% increase in Movement Points, increased Line of Sight due to scouting-parties
    ¬------------------------------------------
    {msta}Master of Archers
    {msta_desc}A true master of archery. His archers always deliver fatal blow to his enemies.
    {msta_gain_desc}Inventing new archer tactica and improving old ones made this general a true master.
    {msta_effects_desc}30% increase in Movement Points, increased Line of Sight.
    ¬------------------------------------------


    so why the hell it crashes always? i'm using the Notepad++, Dos/Windws and ANSI coding for export_character_traits.txrt and Dos/Windows and UCS-2 Little Endian for expor_tVnVs.txt

    the unit category problem i don't get also the code is following:
    Code:
    ;------------------------------------------
    Trigger MasterArcherMM1
        WhenToTest GovernorUnitTrained
    
        Condition TrainedUnitCategory missile
        and Attribute Command >= 3
        and not Trait Drillmaster = 1
        and not Trait Stablemaster = 1
        and IsGeneral
    
        Affects MasterArcher 1 chance 6
    
    ;------------------------------------------
    and docudemons states that missile is one of the unit categories...

    any help would be appreciated...
    Last edited by Minas Moth; February 16, 2012 at 11:53 AM.

  2. #2
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Trait - parsing error

    ---------------------------------------------------
    Identifier: TrainedUnitCategory
    Trigger requirements: unit
    Parameters: category description (infantry, cavalry, siege, non_combatant, ship, handler)
    Sample use: TrainedUnitCategory cavalry
    Description: Test to see if the unit is of a particular category
    Battle or Strat: Strat
    Class: GOVERNOR_TRAINED_UNIT_TYPE_TEST
    Implemented: Yes
    Author: Lee
    ---------------------------------------------------
    Identifier: TrainedUnitClass
    Trigger requirements: unit
    Parameters: unit class (light, heavy, spearmen, skirmish, missile)
    Sample use: TrainedUnitClass heavy
    Description: Test to see if the unit is of a particular class
    Battle or Strat: Strat
    Class: TRAINED_UNIT_CLASS_TEST
    Implemented: Yes
    Author: Grig

    As for the rest, no idea what the problem is. Your work looks fine.

    Quote Originally Posted by Minas Moth View Post
    so why the hell it crashes always? i'm using the Notepad++, Dos/Windws and ANSI coding for export_character_traits.txrt and Dos/Windows and UCS-2 Little Endian for expor_tVnVs.txt
    What? Why? .. Might have nothing to do with anything but I don't need to pay attention to stuff like that, and so neither should you.

    Is there some advantage gained?
    Last edited by Taiji; February 16, 2012 at 08:45 AM.

  3. #3
    Minas Moth's Avatar Senator
    Join Date
    Feb 2011
    Location
    Croatia
    Posts
    1,338

    Default Re: Trait - parsing error

    not an advantage... but if the language isn't what it should be then, you will get crash with report that some of the very first lines in the file are wrong... but this isn't a problem, i think everything is ok in that department...

    so you have no idea what that Trait not recognised line means? that's a bummer...

    now, it's giving me this message when i try to start a new campaign...

    Code:
    17:35:58.605 [system.io] [trace] exists: 8714: caching file: mods/third_age_3/data/ui/custom_portraits/denethor/portrait_old.tga (1238143766)
    17:35:58.605 [system.io] [trace] exists: 8715: caching file: mods/third_age_3/data/ui/custom_portraits/denethor/portrait_young.tga (1238143734)
    17:35:58.605 [system.io] [info] exists:   found mods/Third_Age_3/data/ui/custom_portraits/Denethor/portrait_old.tga (from: D:\Igre\Medieval II)
    17:35:58.605 [system.io] [info] exists:   found mods/Third_Age_3/data/ui/custom_portraits/Denethor/portrait_old.tga (from: D:\Igre\Medieval II)
    17:35:58.606 [system.io] [info] exists:   found mods/Third_Age_3/data/ui/custom_portraits/Denethor/portrait_old.tga (from: D:\Igre\Medieval II)
    17:35:58.606 [system.io] [info] exists:   found mods/Third_Age_3/data/ui/custom_portraits/Denethor/portrait_old.tga (from: D:\Igre\Medieval II)
    17:35:58.606 [game.script.trigger] [trace] Trigger <factionleader> fired
    17:35:58.608 [bink] [debug] [mods/Third_Age_3/data/fmv/menu/DUMP0000.BIK]Pause on
    17:35:58.837 [system.rpt] [error] Medieval 2: Total War encountered an unspecified error and will now exit.
    i looked at that trigger and everything is finw there... so i'm really at lost here... should i maybe delete export_VnVs.strings file or something like that?
    Last edited by Minas Moth; February 16, 2012 at 10:56 AM.

  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Trait - parsing error

    Oh I see, so that code difference stuff is just a guide and makes no real difference? (If it makes a difference then it's possibly breaking it, since the difference is not required.)

    BTW you didn't respond to the docudemons bit - You need to use class not category to specify missile.

    And yeah I know what 'trait not recognised' means, it's plain english, it means it isn't in the list of traits that the program is using to recognise traits - So something is wrong with your coding (like editor automatically breaking it for you).

    Also, when is it crashing? I have no idea what's going on except CTD and roughly what you did. When it crashes might give some clue as to what is crashing it.
    Last edited by Taiji; February 16, 2012 at 11:48 AM.

  5. #5
    Minas Moth's Avatar Senator
    Join Date
    Feb 2011
    Location
    Croatia
    Posts
    1,338

    Default Re: Trait - parsing error

    i did the changes you suggested (the docudemons ones) and they fixed that part...

    i also fixed all the other stuff... searched the forums, used ATVTW tool and it's done...

    so this one is SOLVED.

    so someone please close it...

Posting Permissions

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