1
0
forked from 0ad/0ad
0ad/source/tools/entity
Freagarach ea72437739 Move GenericName, History and Icon from the civ-JSON to cmpIdentity.
Since the players/civs already have cmpIdentity, use it.
This forces civs to have corresponding XML in the `special/players/`
folder.

Also moves the files from `special/player/` to `special/players/`
consistent with other folders. And moves the generic `player.xml` one
level up.

Differential revision: https://code.wildfiregames.com/D4473
Help and comments by: @Stan, @wraitii
This was SVN commit r26298.
2022-02-05 06:24:45 +00:00
..
checkrefs.pl Move GenericName, History and Icon from the civ-JSON to cmpIdentity. 2022-02-05 06:24:45 +00:00
creationgraph.pl Improve and fix checkrefs.pl, add a readme for usage, add mod support, add command line arguments. 2019-02-24 21:19:20 +00:00
Entity.pm Implement mul_round in checkrefs. 2021-04-12 16:33:54 +00:00
entvalidate.pl Improve and fix checkrefs.pl, add a readme for usage, add mod support, add command line arguments. 2019-02-24 21:19:20 +00:00
readme.md Fix lineendings. 2019-07-12 17:40:40 +00:00

Checkrefs.pl

Description

This script checks the game files for missing dependencies, unused files, and for file integrity. If mods are specified, all their dependencies are also checked recursively. This script is particularly useful to detect broken actors or templates.

Requirements

  • Perl interpreter installed
  • Dependencies:
    • XML::Parser
    • XML::Simple
    • Getopt::Long
    • File::Find
    • Data::Dumper
    • JSON

Usage

  • cd in source/tools/entity and run the script.
Usage: perl checkrefs.pl [OPTION]...
Checks the game files for missing dependencies, unused files, and for file integrity.
      --check-unused         check for all the unused files in the given mods and their dependencies. Implies --check-map-xml. Currently yields a lot of false positives.
      --check-map-xml        check maps for missing actor and templates.
      --validate-templates   run the validate.pl script to check if the xml files match their (.rng) grammar file. This currently only works for the public mod.
      --mod-to-check=mods    specify which mods to check. 'mods' should be a list of mods separated by '|'. Default value: 'public|mod'.