mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
- Small popup page accessible from the main menu via Learn to Play. - Lets the player read through the tips with 'Previous' and 'Next' buttons. - Tips continue to be shown on the loading screen. -> but there without the scrolling ability. - Added two new hotkeys for quicker tip changing (item.prev and item.next) -> set to the left and right arrows respectively by default. - Responsible scripts are placed in gui/reference/tips/. - The tip text files have been moved to gui/reference/tips/texts/. - Tip image files have been moved to art/textures/ui/tips/. - Added a series of new sprites (textures in art/textures/ui/tipdisplay/) -> comprises a title decoration, a bullet point sprite, and a new button style. |
||
|---|---|---|
| .. | ||
| scriptlib | ||
| checkrefs.py | ||
| creationgraph.pl | ||
| creationgraph.py | ||
| entvalidate.pl | ||
| entvalidate.py | ||
| readme.md | ||
Checkrefs.py
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
- Python 3.6+ interpreter installed
- lxml for the -a option.
Usage
- cd in
source/tools/entityand run the script.
usage: checkrefs.py [-h] [-u] [-x] [-a] [-t] [-m MOD [MOD ...]]
Checks the game files for missing dependencies, unused files, and for file integrity.
options:
-h, --help show this help message and exit
-u, --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.
-x, --check-map-xml check maps for missing actor and templates.
-a, --validate-actors
run the validator.py script to check if the actors files have extra or
missing textures.
-t, --validate-templates
run the validator.py script to check if the xml files match their (.rng)
grammar file.
-m MOD [MOD ...], --mods MOD [MOD ...]
specify which mods to check. Default to public.