Skip to content

Advanced

FaithBeam edited this page Oct 28, 2026 · 6 revisions

Welcome to the advanced wiki! You'll find more in-depth explanations and options here. For a list of every command and option, see Commands.

Preserve User Settings

You can preserve your user settings (user.ltx: hotkeys, graphics) between updates with this switch.

Switch: --preserve-user-settings

Commands:

  • full-install
  • update apply
stalker-gamma full-install --preserve-user-settings
stalker-gamma update apply --preserve-user-settings

Preserve MCM Settings

This keeps your MCM settings between updates.

Switch: --preserve-mcm-settings

Commands:

  • full-install
  • update apply
stalker-gamma full-install --preserve-mcm-settings
stalker-gamma update apply --preserve-user-settings --preserve-mcm-settings

Resume a Failed Install

If full-install or update apply fails or is cancelled partway through, the CLI writes resume.txt to your gamma folder. It records which addons were already downloaded and extracted. Run the same command again with --resume to pick up where it stopped instead of starting over:

stalker-gamma full-install --resume
stalker-gamma update apply --resume
  • Resume with the same command that failed. A resume.txt written by full-install can't be resumed with update apply, and the reverse is also true.
  • If there's no resume.txt, --resume logs a warning and starts from scratch.
  • resume.txt is deleted when the command succeeds.

Download Threads

Download Threads = the number of concurrent downloads and extracts. The default is 4, and the allowed range is 1–20.

Set it permanently on your profile (replace X):

stalker-gamma config set DownloadThreads X

Or override it for a single run:

stalker-gamma full-install --download-threads X

ModDB can limit download speed per addon. If each download runs at about 2 MB/s, you're probably limited, and raising Download Threads a lot helps. If you have the processing power, 10 is a good start in that case. On slow disks or low-RAM machines, go lower instead.

Changing Settings

config set changes one setting on the active profile. Setting names are case-insensitive.

stalker-gamma config set <setting> <value>
stalker-gamma config info   # check the result
Setting What it is
ProfileName The CLI profile's name
Anomaly, Gamma, Cache Install paths. Use absolute paths; config set doesn't resolve relative ones.
Mo2Profile The MO2 profile the mo2 mod commands work on
DownloadThreads See Download Threads
ModPackMakerUrl, ModListUrl Where the addon list and MO2 mod order come from
GammaSetupRepoUrl, GammaSetupRepoBranch gamma_setup repo
StalkerGammaRepoUrl, StalkerGammaRepoBranch Stalker_GAMMA repo
GammaLargeFilesRepoUrl, GammaLargeFilesRepoBranch gamma_large_files_v2 repo
TeivazAnomalyGunslingerRepoUrl, TeivazAnomalyGunslingerRepoBranch teivaz_anomaly_gunslinger repo
PythonApiUrl Leave as is unless you know you need it

Multiple Profiles

You can keep several installs, for example a stable one and a testing one, each with its own profile. Every command works on the active profile.

stalker-gamma config create --name testing \
  --anomaly ~/games/gamma-testing/anomaly \
  --gamma ~/games/gamma-testing/gamma \
  --cache ~/games/gamma/cache   # profiles can share a cache

stalker-gamma config list          # -> marks the active profile
stalker-gamma config use gamma     # switch back
stalker-gamma config delete testing

config create makes the new profile active. Deleting a profile only removes it from the CLI's settings. Your files stay on disk.

Custom Repos and Pinning a Version

Each GAMMA git repo has a URL and a branch setting. The branch setting also accepts a commit SHA, which lets you pin your install to a specific GAMMA version or try a fork:

stalker-gamma config set StalkerGammaRepoBranch <commit-sha>
stalker-gamma config set GammaSetupRepoUrl https://github.com/<you>/gamma_setup

To use a different addon list, such as the Steam Deck / Potato Mode lists, set ModListUrl and ModPackMakerUrl, or pass --mod-list-url and --mod-pack-maker-url to config create.

Minimal Install

--minimal deletes each archive from your cache after it's extracted. A full install then takes about 100 GB instead of about 150 GB.

stalker-gamma full-install --minimal

The trade-offs: installs are more likely to fail, and every update has to download its addons again, so updates are much slower. Use it only if you're short on space.

Freeing Up Cache Space

When GAMMA updates an addon, the old archive stays in your cache. To see what can be removed, then remove it:

stalker-gamma cache prune check
stalker-gamma cache prune apply

Anomaly archives are never pruned.

Faster Re-installs

  • --skip-extract-on-hash-match: skip extracting archives whose MD5 hash matches.
  • --skip-github-downloads: don't re-download GitHub addons that are already in your cache.
  • --use-anomaly-mirror: download Anomaly as an archive that extracts about 9× faster. See Anomaly Mirror.

Clone this wiki locally