Run headless simulation of a replay and verify claimed statistics match actual results.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/banteg/crimson/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Arguments
Replay file path (
.crd).If a filename is provided without path, also searches base-dir/replays/Options
Stop after N ticks.Default: Full replayUseful for partial verification or debugging.
Enable replay RNG trace mode during simulation.Records all RNG calls for debugging desync issues.
Output format.
human— Human-readable textjson— Machine-readable JSON
Optional JSON output path for verify result payload.
Base path for runtime files.Default: Per-user OS data directory
Alias for
--base-dir.Output Format
Human Format (default)
JSON Format
Exit Codes
0— Success, all claims verified1— Error (file not found, codec error, etc.)3— Header stats mismatch (score/kills don’t match)
Verification Process
- Load Replay — Parse
.crdfile and validate structure - Headless Simulation — Run game logic without rendering
- Compare Stats — Match simulated results against claimed header values
- Report — Output verification result
Verified Fields
When replay is complete (--max-ticks not used), verifies:
Total simulation ticks.
Game time in milliseconds.
Final score / experience points.
Total creature kills.
Weapon with most shots fired.
Total shots fired across all weapons.
Total shots that hit enemies.
Examples
Basic Verification
Verify with JSON Output
Partial Verification
Partial verification skips header claim comparison.
Debug with RNG Tracing
Verify from Custom Directory
Batch Verification
Error Handling
File Not Found
1
Score Mismatch
3
Version Incompatibility
1
Use Cases
Speedrun Verification
Verify claimed times and scores:Automated Testing
CI/CD Integration
Leaderboard Validation
Validate submitted replay before accepting:Performance
Headless verification is fast:- No rendering overhead
- No asset loading
- Pure simulation logic
- Typical: 10-20x realtime speed
SHA256 Integrity
The verification result includes replay file SHA256:- Replay file hasn’t been modified
- Tamper detection
- Cryptographic proof of authenticity
See Also
- replay play — Play with rendering
- replay benchmark — Performance benchmarking
- replay verify-checkpoints — Checkpoint verification
- Replay System — Overview