Page 5 of 9 FirstFirst 123456789 LastLast
Results 81 to 100 of 164

Thread: ATVTW - Trait/Ancillary Validator

  1. #81
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Re-uploaded as the download I had previously put up was corrupted and wouldn't open.
    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

  2. #82
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,067
    Blog Entries
    35

    Default Re: ATVTW - Trait/Ancillary Validator

    Rather curious thing: there is no problem setting the tool up for most of my mods, except for "Regions and Provinces" - I am getting an 'unhandled exception' error. The setting worked on previous versions, so I thought maybe a registry snafu and deleted the setting.
    Same error when I set up a new setting.

    Hope the error message helps.

    Another thing: when I try to edit the setting (any), it insists on a new name for the setting (duplicate name). Which means I will have to create a new setting if I want to use a new path. That function maybe is not really needed?

    Spoiler Alert, click show to read: 
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at TWLibrary.ConditionTemplate.ExportPairs.IsRequirementMet(Event e)
    at TWLibrary.ConditionTemplate.<>c__DisplayClass2.<IsRequirementMet>b__1(ExportPairs exPair)
    at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
    at TWLibrary.ConditionTemplate.IsRequirementMet(Event e)
    at TWLibrary.Condition.CheckForProblems(HardcodedLists& hcList, CustomLists& cList, Settings& settings, Options& options)
    at TWLibrary.TWList`1.CheckForProblems(HardcodedLists& hcList, CustomLists& cList, Settings& settings, Options& options)
    at TWLibrary.Trigger.CheckForProblems(HardcodedLists& hcList, CustomLists& cList, Settings& settings, Options& options)
    at TWLibrary.TWList`1.CheckForProblems(HardcodedLists& hcList, CustomLists& cList, Settings& settings, Options& options)
    at ATVTW.ATVTWForm.CheckForProblems()
    at ATVTW.ATVTWForm.ucParseFiles_Click(Object sender, EventArgs e)
    at ATVTW.ATVTWForm.SetSettingsAndParseFiles(Settings newSettings)
    at ATVTW.ATVTWForm.mnuFileNew_Click(Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    ATVTW
    Assembly Version: 2.1.2.80
    Win32 Version: 2.1.2.80
    CodeBase: file:///C:/MyGames/Medieval%20II%20Total%20War/mods/ATVTW.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    TWLibrary
    Assembly Version: 1.1.0.69
    Win32 Version: 1.1.0.69
    CodeBase: file:///C:/MyGames/Medieval%20II%20Total%20War/mods/TWLibrary.DLL
    ----------------------------------------
    System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.












  3. #83
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Any chance you will make ATVTW read custom factions and not report COMBAT_V_FACTION?

  4. #84
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Still working on it.
    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

  5. #85
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Version 2.1.3

    This is a bug fix release:

    Changes from 2.1.2 Version:

    • Fixed crash if a bad event is encountered in a trigger
    • Restored ancillary listing to the ancillary trigger tab
    • Added all other faction names from the kingdoms campaigns to the M2TW Combat_V_Faction_X set of attributes (this should reduce attribute errors until a better solution is found)

    Go to the first post to get the new version.
    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

  6. #86
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: ATVTW - Trait/Ancillary Validator

    I notice that recently you've changed to this:

    GeneralWithAncKilled now check for ancillary type instead of ancillary name
    this throws up a lot of errors where the GeneralWithAncKilled refers to an ancilliary - as per docudemons - and not an ancilliary type

  7. #87
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    The docudemons are wrong, there's a discussion about it somewhere. The condition was supposed to check for ancillary but was set to check for ancillary type. The worst part is the error checking for the log checks for ancillary so using it the way its coded to be used will generate an error in your log if the ancillary type doesn't match the ancillary name.
    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

  8. #88

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by Rozanov View Post
    I notice that recently you've changed to this:



    this throws up a lot of errors where the GeneralWithAncKilled refers to an ancilliary - as per docudemons - and not an ancilliary type
    It's based on anc type Military, etc.
    I have used this condition in many triggers and always give a new type, in order to get i want.

  9. #89
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: ATVTW - Trait/Ancillary Validator

    Thanks for info - hopefully someone will amend the docudemons or put some sort of note on them for that condition.

    ah - there's thread about GeneralWithAncKilled here:
    http://www.twcenter.net/forums/showt...89#post3331689

    and this:
    The ‘GeneralWithAncKilled’ condition looks for the ancillary’s type, not its name. See posts 503 to 511:
    http://www.twcenter.net/forums/showt...269194&page=26

    discussion seemed to fizzlle out.

    would the errors give rise to end of battle CTDs I wonder - we're getting quite a few in stainless steel?

  10. #90

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by Rozanov View Post
    would the errors give rise to end of battle CTDs I wonder - we're getting quite a few in stainless steel?
    I have made triggers with type as Marshall of Antioch and Jerusalem etc and i get it when i conquer those cities and i'm sure i have tested it in battlemap also not just by auto resolve.

    But i will check it just to make sure as my mod will be ruined lol and post a VM to you.

  11. #91
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    As part of technical staff I'm trying out a new bug tracking/feature request system. If you have any bugs to report or features to request for ATVTW please add them to ATVTW Bug/Feature Tracker.

    If you have any problems with the tracker please PM me with the details.
    Last edited by Squid; December 14, 2010 at 11:08 AM.
    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

  12. #92
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: ATVTW - Trait/Ancillary Validator

    quick q:

    running a campaign script through the validator

    throws up

    Line 6715 - Error: Invalid condition , expected 'Trait <trait name> <login token> <level>', found 'Trait FactionRegent > 0'.

    Code:
    monitor_event BecomesFactionLeader FactionType norway
        and not FactionIsLocal
        and not Trait FactionRegent > 0 (no error for this line)
    
        historic_event norway_king_event
    
    end_monitor
    
    monitor_event BecomesFactionLeader FactionType norway
        and not FactionIsLocal
        and Trait FactionRegent > 0 (Line 6715)
    
        historic_event norway_regent_event
    
    end_monitor
    but no error for "and not Trait FactionRegent > 0"

    is that correct?

  13. #93
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Check to see if there's a tab instead of space on the line or visa versa.
    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

  14. #94
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: ATVTW - Trait/Ancillary Validator

    checked - same error for every faction.
    tab at start of both lines in every case.

  15. #95
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    The first line not reporting an error does not mean anything because I forgot to check for the use of not in a condition line. As for the error I think its an bug where I've coded the script checking to look for lines that have too many arguments on them. I'm investigating.
    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

  16. #96
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: ATVTW - Trait/Ancillary Validator

    Thx for taking the time to sort out problem!

  17. #97
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    This has been fixed for the next release, see the bug tracker I linked above.
    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

  18. #98
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Version 2.2.0

    Added:

    • Ability to validate advice files, export_descr_advice.txt and text/export_advice.txt are now required

    Changes/Fixes from v2.1.3:

    • All events are now included in ATVTW (previously only character related events)
    • Various performance improving changes
    • Fixed a parsing error when reading to a new entry if an error is found
    • Fixed parsing error where the parser though the file was ended when there was one last line to read
    • Fixed condition parser not properly parsing unit names (each word in the unit name had been considered separate)
    • Fixed crash for empty character, antitrait, excludecultures and excludedancillaries lines (i.e. with nothing after the key word)
    • Reading settlements no longer requires descr_strat.txt (fixed bug where not all settlements were recognized if the settlement wasn't listed in descr_strat.txt)
    • Fixed errors in the path to descr_regions.txt
    • Fixed crash with unknown condition name
    • Fixed some typos in condition checking code
    • Fixed various typos in event and condition listings
    • Fixed script parsing not recognizing the not keyword
    • Fixed script parsing looking for too many things on a trait or ancillary related condition
    • Fixed various errors in error messages

    Go to the first post to get the new version.
    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

  19. #99
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Version 2.2.1

    Changes/Fixes from v2.2.0:

    • Lists of conditions, effects and affects now color only the lines with an error
    • Fixed bug with conditions with no requirement
    • Added == to M2TW logic tokens
    • Added named_character to character types (named character is still included)
    • Added a check to EDCT validation for ancillary related condition as they do not work in EDCT
    • Fixed inability to edit settings
    • Fixed a typo that prevented very_hard being recognized as a campaign difficulty
    • Fixed bad argument list for condition PercentageUnitAttribute
    • Added conditions I_HotseatEnabled & I_IsFactionAIControlled
    • Fixed two mispellings of Siege
    • Fixed enum reader expecting a new enumeration but finding a non-comment
    • Fixed corrupted settings not being deleted because the registry entries had been opened in read-only mode.

    Go to the first post to get the new version.
    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

  20. #100
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,067
    Blog Entries
    35

    Default Re: ATVTW - Trait/Ancillary Validator

    Thanks for the X-mas goodies!










Tags for this Thread

Posting Permissions

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