(Extracted from the specification)
The common loadout format (CLF) is a JSON based format for defining a fitting in the EVE Online multiplayer game. The format strives to achieve portability, completeness, extendability and longevity.
Unless otherwise specified, all documents and source files are
licensed under the WTFPL license, version 2. See the COPYING
file
for the full license text.
If you want to write a reference validator in your favorite language, please read (and apply) the following:
-
Your validator should read the JSON loadout from standard input, spit its errors in the standard error stream (
stderr
) and have a return value of0
if the validation succeeded without warnings,1
if the validation succeeded with some warnings, or anything else if the validation failed. -
The binary/executable script should be called
validator
and should be callable without any arguments. If it requires compiling, use aMakefile
rule to invoke the compiler. -
Assume nothing. This is a reference implementation, so being pedantic is crucial. Use and abuse the helper JSON files. Cover all the possible cases.
-
The source is more likely to be read than used; write the most beautiful code you can, and comment anything you find worthy of an explanation.
After a major patch/expansion, you will need to update the JSON helpers.
You need a SQlite3 dump (or the SDE converted to SQLite3). You can use
the Phobos dumper to generate JSON tables, then use the
tools/json_to_sqlite
script to convert them in a SQLite3 database.
Once you have the new database, update the Makefile
accordingly,
then run:
make clean
make
You can then review the differences and commit the new helpers.