Page 3 of 9 FirstFirst 123456789 LastLast
Results 41 to 60 of 163

Thread: ATVTW - Trait/Ancillary Validator

  1. #41
    Gigantus's Avatar I am thinking more about running away now then I did as a kid, but by the time I put my teeth in, my glasses on and find my car keys I forget why I am going.
    Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    49,176
    Blog Entries
    26

    Default Re: ATVTW - Trait/Ancillary Validator

    You'r da man!




  2. #42
    izanagi11's Avatar Semisalis
    Join Date
    Jul 2006
    Location
    Chicago, IL
    Posts
    417

    Default Re: ATVTW - Trait/Ancillary Validator

    This is a lifesaver, thanx for the new update!
    "The shape of you, the shape of me, the shape of everything I see.."

  3. #43
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: ATVTW - Trait/Ancillary Validator


  4. #44

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by Sqυιd View Post
    The three attributes are: Generosity, Boldness and Disposition. So Gigantus if you've got some time and want to toss those into a trait and load up M2TW and Kingdoms and see if the game barfs on those attributes it would be appreciated.
    Just a little note here: Those three attributes do work in-game, however, I have yet to see them exert any effect on gameplay. The game accepts them fine, but there doesn't seem to be any effect. Either they were never fully implemented, or I'm using them for the wrong characters. Will continue to experiment and report back.
    Son of PW

  5. #45
    Kahvipannu's Avatar Bring me Solo & wookie
    Join Date
    May 2009
    Location
    Finland
    Posts
    3,671

    Default Re: ATVTW - Trait/Ancillary Validator

    Thank you so much for this

  6. #46
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Version 2.1.0

    This is a new feature release:

    Improvements:

    • Will scan scripts and if it finds any traits/ancillaries will check to make sure they exist
    • When scanning descr_strat if a trait/ancillary is being assigned to a faction from a culture that is excluded from acquiring the trait/ancillary this will be reported as an error

    Changes from 2.0.7 Version:

    • Fixed bug where in RTW if you weren't using religion not all settlement names would be read correctly
    • Fixed a bug when reading enums where the enums in game text is multiple lines in length
    • Fixed the contents of the form not resizing when the window is resized
    • Fixed bad spacing in various error/warning messages
    • Fixed the move to end of list and move forward 1 buttons
    • Can scroll when moused over the status window
    • Can now double-click on a setting to open it
    • Can now right-click and delete a selected setting
    • Added in the I_FactionLeaderTrait and I_FactionLeaderAttribute conditions for M2TW (I'd swear I'd already added them)

    Go to the first post to get the new version.
    Last edited by Squid; February 19, 2010 at 11:21 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

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

    Default Re: ATVTW - Trait/Ancillary Validator

    This prog saves hours of looking through all the files - does the job very quickly and efficiently.
    Pretty much essential to any mod that touches on traits etc.

    (Now to work out why Combat_V_Faction_ (factionname) only works for some factions and not others.)

  8. #48
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Great Tool!
    Now 1 question, is it only me, or does the program always show all ancillaries as orphans? Traits orphans check works fine.

  9. #49
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

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

    Default Re: ATVTW - Trait/Ancillary Validator

    There's definitely a problem with the orphans code right now. Thanks for pointing it out, I'm working on a fix.
    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

  10. #50
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Well, other noticeable bugs would include:
    not recognising any integer.integer as a 'double value' (Error: For condition GeneralHPLostRatioinBattle, 0.8 is not a valid 'double value'.)
    not recognising byzantium as a faction (Error: For condition FactionType, byzantium is not a valid 'faction type'.)

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

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by gracul View Post
    Well, other noticeable bugs would include:
    not recognising any integer.integer as a 'double value' (Error: For condition GeneralHPLostRatioinBattle, 0.8 is not a valid 'double value'.)
    not recognising byzantium as a faction (Error: For condition FactionType, byzantium is not a valid 'faction type'.)
    I'd need to see your file set your using the program with. The first the trigger Battle_General_Took_Hits trigger in vanilla m2tw correctly recognizes 0.3 as a double value so I'm wondering if you've accidentally used a O instead of 0 in the number or some other odd character for a period. For the second in the vanilla files it recognizes byzantium in the trigger random_birth_byzantium.
    Last edited by Squid; March 12, 2010 at 03:02 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. #52
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    If i would use a period or an O, or if byzantium would not be a faction type - system.log would throw me out errors which is not the case.

    Attachement:
    Last edited by gracul; March 12, 2010 at 04:56 AM.

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

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

    Default Re: ATVTW - Trait/Ancillary Validator

    I've run your files through both the currently released version and the one I'm currently working on (which fixes the orphans problem) and the byzantium error is because its not adding byzantium to the list of valid factions because there's a comma missing after the color red in the primary color line (line 387 I believe). Add that comma and the byzantium error disappears. As for the GeneralHPLostRatioinBattle error, I can't reproduce it with either the current version or my in progress version.

    Thanks though for the files, it pointed out at least another dozen error or bugs in my code which will be fixed in the next release.
    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. #54
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Wow, thanks!

    Well, this is the only thing I can actually give:

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

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Now I'm confused. I'm looking at the exact same trigger running on the exact same version of the program (I downloaded it again today) and it says no errors or warning for the trigger. What's the exact version of .Net Framework are you using? There's got to be something different about your computer because I'm not getting the same behaviour as your seeing with the same version of the program and the same files.
    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. #56
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    .Net Framework: 3.5.30729.01

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Q: would the missing comma refered to above in the descr_sm_factions.txt file have other effects?

    I had a problem with a campaign_script line:
    console_command diplomatic_stance teutonic_order byzantium war - other factions parsed correctly, but not the byzantium one.

  18. #58
    gracul's Avatar 404 Not Found
    Artifex

    Join Date
    Dec 2007
    Location
    Poland
    Posts
    2,009

    Default Re: ATVTW - Trait/Ancillary Validator

    Yeah that's probably it.

    Another thing is, could you change the trait parser so that if a trait is hidden, it won't throw out errors when there is no description in vnvs.txt?

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

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

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by Rozanov View Post
    Q: would the missing comma refered to above in the descr_sm_factions.txt file have other effects?

    I had a problem with a campaign_script line:
    console_command diplomatic_stance teutonic_order byzantium war - other factions parsed correctly, but not the byzantium one.
    The game engine is weird it can function with incorrectly formatted files, but what the game does (or doesn't do) with incorrectly formatted files is anyone guess. For example in EDB and EDCT/EDA files in RTW (and likely M2TW as well) you should never have tab characters. The files will work properly up until some random number or placement of tabs and then will CTD. Do nothing else but remove all tabs and everything is good again.

    My guess is you have something wrong with the byzantium entry and the engine is having issues with it.

    Quote Originally Posted by gracul View Post
    Yeah that's probably it.

    Another thing is, could you change the trait parser so that if a trait is hidden, it won't throw out errors when there is no description in vnvs.txt?
    I could do that, but I'd hesitate to remove it entirely and might make it a warning. In case you weren't aware you can use the a vnv entry multiple times. So in my EDCT all traits that are hidden use hidden_level_name hidden_desc and hidden_effects_desc which says basically this trait should be hidden contact me if you see 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

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

    Default Re: ATVTW - Trait/Ancillary Validator

    tx for that squid - the only difference was a space after the final letter of war.
    have removed and am hoping for the best!
    (won't fire until T260.)

    (tabs and spaces can cause all sorts of problems - but sometimes it wants a tab and not a space.)
    --
    back to topic ......

    (update - the Byz thing is now fixed in the script - works properly now.)
    Last edited by Gorrrrrn; March 16, 2010 at 04:06 PM.

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
  •