Check a mode
The game itself has three commands for mode files. You don't need any of them to play a mode, but mode-check tells you what's wrong with one that isn't listed, with the line and column. Open a terminal and run the game with the command after its name:
Windows: PowerShell, in the game's folder
.\project-reclaimer.exe mode-check "$env:LOCALAPPDATA\ProjectReclaimer\Game Modes\my-first-mode.rmeg"
macOS: Terminal
"/Applications/Project Reclaimer.app/Contents/MacOS/project-reclaimer" mode-check ~/Library/Application\ Support/ProjectReclaimer/Game\ Modes/my-first-mode.rmeg
Linux: a terminal, in the game's folder
./project-reclaimer mode-check ~/.local/share/ProjectReclaimer/Game\ Modes/my-first-mode.rmeg
On Windows, a game that updated from 0.9 keeps its download's name: type .\project and press Tab. You can drag a file onto the terminal window to paste its path. A good file answers Valid custom mode: My First Mode (script version 2).
mode-check FILE- Checks a
.rmeg,.rvtor.jsonmode the way the game does when it lists one: the header, the script, and that the game plays everything it asks for. megalo-check FILE- Reads the script alone, checks its types and lists what it needs, such as
timer.set_rateorwrite.player.score. It doesn't read the header or check that Halo 3 can do all of it. mode-compile FILE --output NEW.json- Checks the mode and writes the JSON game type it plays. Never needed to play a mode. The name comes from the header, else
--name NAME, else the file. It never overwrites a file. mode-compile … --mode MODE- For a source without a
modein its header: the game type, such asTerritories. mode-compile … --template PRESET.json- Lays the header over a saved JSON game type's settings instead of the defaults. Can't go with
--mode.
