module

Launcher::Catalog

Constants

ASSET_DIRS = {"levels", "localization", "mp", "patches", "resources"}

Unpacked asset roots linked next to fsgame.ltx for CoP/CS-layout sources (present ones only).

COP_FSGAME = dedent("$app_data_root$\t\t= true|false|$fs_root$|_appdata_\\\n$arch_dir$\t\t= false| false| $fs_root$\n$game_arch_mp$\t\t= false| false| $fs_root$|\t\t mp\\\n$arch_dir_levels$\t= false| false| $fs_root$|\t\t levels\\\n$arch_dir_resources$\t= false| false| $fs_root$|\t\t resources\\\n$arch_dir_localization$\t= false| false| $fs_root$|\t\t localization\\\n$arch_dir_patches$\t= false| true| $fs_root$|\t\t patches\\\n$game_data$\t\t= false|\ttrue|\t$fs_root$|\t\tgamedata\\\n$game_ai$\t\t= true|\t\tfalse|\t$game_data$|\t\tai\\\n$game_spawn$\t\t= true|\t\tfalse|\t$game_data$|\t\tspawns\\\n$game_levels$\t\t= true|\t\tfalse|\t$game_data$|\t\tlevels\\\n$game_meshes$\t\t= true|\t\ttrue|\t$game_data$|\t\tmeshes\\| *.ogf;*.omf| Game Object files\n$game_anims$\t\t= true|\t\ttrue|\t$game_data$|\t\tanims\\| *.anm;*.anms| Animation files\n$game_dm$\t\t= true|\t\ttrue|\t$game_data$|\t\tmeshes\\|\t *.dm|\t\t Detail Model files\n$game_shaders$\t\t= true|\t\ttrue|\t$game_data$|\t\tshaders\\\n$game_sounds$\t\t= true|\t\ttrue|\t$game_data$|\t\tsounds\\\n$game_textures$\t\t= true|\t\ttrue|\t$game_data$|\t\ttextures\\\n$game_config$\t\t= true|\t\tfalse|\t$game_data$|\t\tconfigs\\\n$game_weathers$\t\t= true| false|\t$game_config$|\t environment\\weathers\n$game_weather_effects$\t= true| false|\t$game_config$|\t environment\\weather_effects\n$textures$\t\t= true| true| $game_data$|\t\t textures\\\n$level$\t\t\t= false|\tfalse|\t$game_levels$\n$game_scripts$\t\t= true| false|\t$game_data$|\t\t scripts\\|\t *.script|\t Game script files\n$logs$\t\t\t= true|\t\tfalse|\t$app_data_root$|\tlogs\\\n$screenshots$\t\t= true|\t\tfalse|\t$app_data_root$|\tscreenshots\\\n$game_saves$\t\t= true|\t\tfalse|\t$app_data_root$|\tsavedgames\\\n$downloads$\t\t= false| false| $app_data_root$")
GAMES = {"soc" => Game.new(id: "soc", title: "S.T.A.L.K.E.R.: Shadow of Chernobyl", mode_flag: "-shoc", game_mode: "shoc", config_dir: "config", fsgame_ltx: SOC_FSGAME, experimental: true, notes: "Not an officially supported engine platform yet, but it runs (see OpenXRay issue #392). Configs and scripts come from the .db archives; only gamedata/config/openxray.ltx is overlaid."), "cs" => Game.new(id: "cs", title: "S.T.A.L.K.E.R.: Clear Sky", mode_flag: "-cs", game_mode: "cs", config_dir: "configs", fsgame_ltx: COP_FSGAME, experimental: true, notes: "The engine has a -cs mode, but it is untested. Treated like CoP: unpacked folders are linked, .db archives root-scanned."), "cop" => Game.new(id: "cop", title: "S.T.A.L.K.E.R.: Call of Pripyat", mode_flag: "-cop", game_mode: "cop", config_dir: "configs", fsgame_ltx: COP_FSGAME, notes: "The engine's native platform. GOG/Steam installs ship unpacked levels/resources/localization/mp/patches plus gamedata/configs+scripts; all of it is linked and the engine's updated scripts are overlaid on top.")}
SOC_FSGAME = dedent("$app_data_root$\t\t= true|\tfalse|\t$fs_root$|\t\t_appdata_\\\n$arch_dir$\t\t= false|\tfalse|\t$fs_root$\n$game_data$ \t\t= false|\ttrue|\t$fs_root$|\t\tgamedata\\\n$game_ai$\t\t= true|\t\tfalse|\t$game_data$|\t\tai\\\n$game_spawn$\t\t= true|\t\tfalse|\t$game_data$|\t\tspawns\\\n$game_anims$\t\t= true|\t\ttrue|\t$game_data$|\t\tanims\\\n$game_levels$\t\t= true|\t\tfalse|\t$game_data$|\t\tlevels\\\n$game_meshes$\t\t= true|\t\ttrue|\t$game_data$|\t\tmeshes\\\n$game_dm$\t\t= true|\t\ttrue|\t$game_data$|\t\tmeshes\\\n$game_shaders$\t\t= true|\t\ttrue|\t$game_data$|\t\tshaders\\\n$game_sounds$\t\t= true|\t\ttrue|\t$game_data$|\t\tsounds\\\n$game_textures$\t\t= true|\t\ttrue|\t$game_data$|\t\ttextures\\\n$game_scripts$\t\t= true|\t\tfalse|\t$game_data$|\t\tscripts\\\n$game_config$\t\t= true|\t\tfalse|\t$game_data$|\t\tconfig\\\n$level$\t\t\t= false|\tfalse|\t$game_levels$\n$game_saves$\t\t= true|\t\tfalse|\t$app_data_root$|\tsavedgames\\\n$logs$\t\t\t= true|\t\tfalse|\t$app_data_root$|\tlogs\\\n$screenshots$\t\t= true|\t\tfalse|\t$app_data_root$|\tscreenshots\\")

Class methods

[](id : String) : Game
Source
[]?(id : String) : Game | Nil
Source
validate_install(game : Game, dir : String) : String | Nil

Validate an ALREADY-ASSEMBLED distribution folder (the wizard's "use an existing folder" branch): everything the game needs to actually start — fsgame.ltx at the root, the engine binary plus its shared modules in bin/, the GL shaders, and the game data itself (an assembled install mirrors the source copy's data markers at its root, so the source check closes the list). Returns nil when the folder looks runnable, or an i18n error KEY.

Source
validate_source(game : Game, dir : String) : String | Nil

Validate a candidate game source directory. Returns nil when the directory looks like this game's install, or an i18n error KEY (render it with Launcher::L.t) saying why it does not.

Source

Nested types