PDA

View Full Version : [Tool] Trait Description Validator



RedFox
04-12-2009, 00:04
Sometimes, if you happen to add dozens of new traits, you accidentally mistype a description reference. Result? Errorless CTD and following that, a few hours of pulling out your hair. If you happen to be in need of something like this, worry no more:


Validator © by RedFox
Opening Stream... export_descr_character_traits.txt
Scanning...................................................................
...........................................................................
.............................
>>ERROR: line 6583, no description for: 'Loyalty_Suppress'
.
>>ERROR: line 6596, no description for: 'Loyalty_Allow'
..........
>>ERROR: line 6815, no description for: 'gRebelGeneral'
.
>>ERROR: line 6828, no description for: 'gNotRebelGeneral'
...........................................................................
>>ERROR: line 9113, no description for: 'Study_in_Taxila1'
.
>>ERROR: line 9136, no description for: 'Study_in_Alexandria1'
.
>>ERROR: line 9159, no description for: 'Study_in_Pergamum1'
.
>>ERROR: line 9181, no description for: 'Study_in_Athens1'
.
>>ERROR: line 9203, no description for: 'Study_in_Istakhr1'
...................................
>>ERROR: line 9917, no description for: 'Roman2'
...........................................................................
...........................................................................
>>ERROR: line 13306, no description for: 'CivilWarSideWithRulerGreek'
.
>>ERROR: line 13319, no description for: 'CivilWarSideWithRebelGreek'

Task completed! Check ErrorLogTraits.txt for all Errors.
Press any key to continue . . .Just put this little program to your modfolder. It will search for >\data\export_descr_character_traits.txt and >\data\text\export_VnVs.txt

Hope some of you find this program at least a little bit useful.

Squid
04-13-2009, 21:24
It's nice that you put together a program that does this, but the ATVTW Program (https://forums.totalwar.org/vb/showthread.php?p=2074066#post2074066) already includes this functionality in addition to checking for various other errors in traits, trait triggers, ancillaries and ancillary triggers.

HouseOfHam
04-13-2009, 23:25
*cough*insert a joke about Squid's far-reaching tentacales here*cough* :)

RedFox
04-14-2009, 13:56
Yeah, but this doesn't crash if your export_descr_character_traits.txt is 100,000 lines long and it does the task without much hassle very fast. ;)

Squid
04-14-2009, 16:19
Neither does ATVTW, it works perfectly fine on EB's EDCT which is over 200,000 lines, so whatever problem you have is not related to the length of the file.

If you would have reported the error, and told me (or sent me) the set of files which caused the crash I could and would fix it.

RedFox
04-14-2009, 21:29
If I recall correctly, it froze and crashed while it was going through the ridiculous amount of triggers. If you want to test them, you can take a look at XGM's XC submod which features the same set of traits.