crimson.cfg configuration file used by the game.
Usage
Options
Path to
crimson.cfg file.Default: base-dir/crimson.cfgBase path for runtime files.Default: Per-user OS data directoryOverride with
CRIMSON_RUNTIME_DIR environment variable.Alias for
--base-dir.Output Format
The command prints configuration values in human-readable format:Configuration Fields
Thecrimson.cfg file is a binary structure containing:
Window width in pixels.
Window height in pixels.
Bits per pixel (color depth).Typically
32 for RGBA8888.Windowed mode flag.
0= Fullscreen1= Windowed
Texture scaling factor.
1= Original resolution2= 2x upscaled
Player name as null-terminated ASCII string.
Examples
Inspect Default Config
Inspect Custom Config
Inspect with Custom Runtime Dir
Config File Location
Default locations by platform: Linux:CRIMSON_RUNTIME_DIR:
Binary Format
Thecrimson.cfg file uses a fixed binary structure defined in grim.config.CRIMSON_CFG_STRUCT.
Key characteristics:
- Fixed size (varies by version)
- Little-endian integers
- Null-terminated strings
- Padding bytes for alignment
Modifying Config
The game writescrimson.cfg automatically when settings change. To manually edit:
- Run the game once to generate default config
- Modify in-game settings
- Config is saved on exit
Missing Config
Ifcrimson.cfg doesn’t exist, the game creates it with defaults:
Error Handling
Config Not Found
Corrupted Config
If the config file is corrupted, delete it and let the game recreate:See Also
- Run Command — Launch game with custom window size
- Runtime Configuration — Runtime directory structure