I have made some major changes to my Event Checker program, that are now available for download. I have renamed this project as "EU2 Lint", as an analogy to the lint programs which are utilities to check for bugs in C programs.
In addition to event parsing, it now can deal with the leader and monarch files, and all three of these types can be validated either separately or in a single execution. If leaders and/or monarchs are analyzed before the events, triggers and commands will make sure any leader/monarch ID that is referenced has been defined. I have also tied in the country.csv and text.csv as optional sources of information. The country tags defined in country.csv will be used to match with leader.TAG and monarch.TAG (and warn if TAG is invalid) filenames, and will make sure event references to country tags are valid. If the text.csv option is used, the script will validate any event name/description looking like ACTION* or EVENT* and make sure the corresponding string is a key in the text.csv file.
Since validation of a large number of files takes some time, you have the ability to save leader and monarch analyses to a data file in one step, and then import those data files for their ID references in a separate step. All three modes of operation (leader, monarch, and event) generate tab-delimited data files for all the objects they successfully parse, which can easily be brought into a spreadsheet later.
All of the command line options to this perl program can be intimidating, so the easiest way to use this is to use the example batch scripts in the win32 subdirectory as a starting point.
The online version is now using the latest code.
Most importantly for me, I have redesigned the code to allow for better code reuse. This will allow maintenance and enhancements to the scripts to be made more easily. In fact, I had done this before the leader/monarch addition, which made the addition of those a no-brainer!
Download at http://www.katica.org/cer28/eu2/. This link is unchanged from the previous version, so nothing needs to be changed in the Utilities and Tools threads in the forums.
In addition to event parsing, it now can deal with the leader and monarch files, and all three of these types can be validated either separately or in a single execution. If leaders and/or monarchs are analyzed before the events, triggers and commands will make sure any leader/monarch ID that is referenced has been defined. I have also tied in the country.csv and text.csv as optional sources of information. The country tags defined in country.csv will be used to match with leader.TAG and monarch.TAG (and warn if TAG is invalid) filenames, and will make sure event references to country tags are valid. If the text.csv option is used, the script will validate any event name/description looking like ACTION* or EVENT* and make sure the corresponding string is a key in the text.csv file.
Since validation of a large number of files takes some time, you have the ability to save leader and monarch analyses to a data file in one step, and then import those data files for their ID references in a separate step. All three modes of operation (leader, monarch, and event) generate tab-delimited data files for all the objects they successfully parse, which can easily be brought into a spreadsheet later.
All of the command line options to this perl program can be intimidating, so the easiest way to use this is to use the example batch scripts in the win32 subdirectory as a starting point.
The online version is now using the latest code.
Most importantly for me, I have redesigned the code to allow for better code reuse. This will allow maintenance and enhancements to the scripts to be made more easily. In fact, I had done this before the leader/monarch addition, which made the addition of those a no-brainer!
Download at http://www.katica.org/cer28/eu2/. This link is unchanged from the previous version, so nothing needs to be changed in the Utilities and Tools threads in the forums.