ModVerify is a command-line tool designed to analyze mods for the game Star Wars: Empire at War and its expansion Forces of Corruption for common errors in XML and other game files.
Download the latest release from the releases page. There are two versions of the application available.
ModVerify.exe(recommended): Use this if you simply want to verify your mods. This version only works on Windows.ModVerify-NetX.zip: Cross-platform app. It works on Windows and Linux and is most likely the version you want to use to include it in some CI/CD scenarios.
You can place the files anywhere on your system, eg. your Desktop. There is no need to place it inside a mod's directory.
Note: Only the Windows version supports automatic updates. Except for that both versions have the exact same feature set. They just target a different .NET runtime. Linux and CI/CD support is not fully tested yet. Current priority is on the Windows-only version.
Simply run the executable file ModVerify.exe.
When given no specific argument through the command line, ModVerify will ask you which game or mod you want to verify.
When ModVerify is done analyzing, it will write the verification results into a folder ModVerifyResults next to the executable.
A .JSON file contains all identified issues. The additional .txt files contain the same errors but are grouped by the verifier that reported the issue.
The text files may be easier to read, while the JSON file is more useful for 3rd party tool processing.
Vanilla Empire at War is currently not supported.
ModVerify automatically check for updates.
The following applies to the Windows (.NET Framework) version only
When executed with no arguments the application automatically checks for an available update and will ask you whether you want to update now. Otherwise, the app only informs you whether an update is available.
You can use the dedicated updateApplication option to trigger an update.
.\ModVerify.exe updateApplicationNote: You may be required to put ModVerify on your AntiVirus whitelist.
You can also run the tool with command line arguments to specify custom behavior.
To see all available options, especially if you have custom folder setups, open the command line and type:
.\ModVerify.exe --helpIn general ModVerify has two operation mods.
verifyVerifying a game or modcreateBaselineCreating a baseline for a game or mod, that can be used for further verifications in order to verify you did not add more errors to your mods.
This is an example run configuration that analyzes a specific mod, uses a the FoC basline and writes the output into a dedicated directory:
.\ModVerify.exe verify --path "C:\My Games\FoC\Mods\MyMod" --outDir "C:\My Games\FoC\Mods\MyMod\verifyResults" --baseline ./focBaseline.jsonThe following verifiers are currently implemented:
- Checks whether coded presets exist
- Checks the referenced samples for validity (bit rate, sample size, channels, etc.)
- Duplicates
- Checks the referenced textures exist
- Checks the referenced models for validity (ALO file, textures, particles and shaders)
- Duplicates
- Performs assertion checks the Debug builds of the game are also doing (not complete)
- XML errors and unexpected values
If you want to create your own baseline use the createBaseline option.
ModVerify.exe createBaseline --outFile myBaseline.json --path "C:\My Games\FoC\Mods\MyMod"