> JEsMS
JEsMS
 

Updater

Syntax: java -cp:JEsMS.jar updtr [-dS][-dI][-uR][-f:<fixtures>]

Updater is the tool used by JEsMS administrators to update team rosters after a week of matches (If you already know ESMS, Updater is the updtr.exe replacement).

Updater has two ways to detect which matches should be considered when doing an update. The easiest and more secure way consists in using the -f flag; indicating explicitely the fixture file (see Fixture Generator) Updater will search for the last league week played, extract the set of matches played (which must be in the current directory) and update rosters using those matches.

The second way (the one used when no fixtures file is indicated) consists in using timestamp on commentary matches: Commentary files generated by JEsMS contains a timestamp field (see Commentary XML file structure) which is filled by JEsMS with the current date. Updater check current date and will consider only that subset of commentary files (in the current directory) whose timestamp field is the same as current date.

These two update methods tries to reduce possibility of errors, such as considering old matches when calculating new fixtures, since updater should be launched as soon as games are played/generated the timestamp method has been implemented, after that, considering that usually matches played are reported in fixtures.xml, the other method (-f flag) has been implemented. If you need to use the timestamp method on old commentary files simply fix the timestamp date in the match commentary file with a text editor and updater will start considering it.

OPTIONS:

-dS
When using the -dS flag, Updater will decrease suspension days for teams which played matches
-dI
When using the -dI flag, Updater will decrease injury days for teams which played matches
-uR
When using the -uR flag, Updater will update statistics/abilities for teams which played matches
-f:<fixtures>
Used to indicate a fixtures.xml file to the updater, Updater will use that fixtures file to calculate the set of matches to use for update.