Default runtime directories
By default, Crimsonland uses your operating system’s per-user data directory:- Linux
- macOS
- Windows
Runtime directory structure
The runtime directory contains:Custom runtime directory
You can override the default location using theCRIMSON_RUNTIME_DIR environment variable or the --base-dir flag.
Using environment variable
- Development and testing
- Portable installations
- Multiple isolated game instances
Using command-line flag
The
--base-dir and --runtime-dir flags are aliases for the same option.Development setup
For source development, use a local runtime directory to avoid polluting your system:.bashrc, .zshrc, etc.) to make it permanent:
Configuration file
Location
The main configuration file iscrimson.cfg in your runtime directory:
Inspecting configuration
View current configuration values:Configuration options
Thecrimson.cfg binary file contains settings for:
- Display: Screen resolution, windowed mode, color depth
- Graphics: Texture scaling, rendering options
- Audio: Volume levels, sound effects, music
- Controls: Key bindings, mouse sensitivity
- Gameplay: Difficulty settings, player preferences
The config file uses a binary format matching the original game. Use
crimson config to inspect values rather than editing directly.Assets directory
By default, Crimsonland looks for game assets in the runtime directory. You can specify a custom assets location:- Original PAQ archives from the GOG release
- Extracted assets in a custom location
- Multiple asset versions for testing
Asset loading priority
- Extracted filesystem tree (if available)
- PAQ archives (
crimson.paq, etc.) - Auto-download missing assets (if permitted)
Logs and debugging
Logs are stored in thelogs/ subdirectory of your runtime directory:
- Debug overlays in-game
- Verbose logging
- Additional diagnostic information
Replay files
Replays are automatically saved to:- Played back with
crimson replay play <file> - Verified headlessly with
crimson replay verify <file> - Rendered to video with
crimson replay render <file>
Common patterns
Portable installation
Create a self-contained installation:Multiple profiles
Run with different save profiles:Testing configuration
Test with a clean runtime:Next steps
CLI reference
Explore all available commands and flags
Assets setup
Learn about PAQ archives and asset extraction
Replays
Work with deterministic replay files
Troubleshooting
Resolve common configuration issues