mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 14:53:56 -07:00
- Allows compositing any two templates in TemplateLoader, and not just filters: 'A|B|C' is now valid for any template A, B and C. - Allows parents to be composited paths 'A|B|C'. In such a schema, if A or B themselves specify a parent, the actual composition becomes A|pA|B|pB|C and so on. This allows, by leveraging the common schema of our entities, to reduce duplication. For convenience, templates in "special/filters/" and "mixins/" can be included by their direct name. Others have to be completely specified. See the two provided cases for examples: - 'hoplite' becomes a mixin that can be used to apply the Phalanx formation - 'builder' becomes a mixin that can be give a template the ability to build the standard structures, and gives the 'Builder' identity class. This also allows deduplicating that list of tokens. Update checkrefs & swap std::map for std::unordered_map in TemplateLoader. Differential Revision: https://code.wildfiregames.com/D3801 This was SVN commit r25223. |
||
|---|---|---|
| .. | ||
| checkrefs.pl | ||
| creationgraph.pl | ||
| Entity.pm | ||
| entvalidate.pl | ||
| readme.md | ||
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'.