← ClaudeAtlas

stalker-soc-spawnlisted

Edit a S.T.A.L.K.E.R. Shadow of Chernobyl all.spawn reproducibly - decompile the vanilla spawn with universal_acdc, describe removals/modifications/additions in a Python edit list, rebuild and install all.spawn; move the actor start, remove vanilla NPCs/story triggers, strip vanilla logic, place static props and lamps, list level objects. Use for any SoC all.spawn / level population / actor start position change.
webpnk/stalker-soc-skills · ★ 0 · DevOps & Infrastructure · score 67
Install: claude install-skill webpnk/stalker-soc-skills
# SoC all.spawn pipeline Never hand-edit binaries or the decompiled text: all changes live in `src\spawn\spawn_edits.py` and are re-applied to the pristine decompiled vanilla spawn on every build. ## Setup (once per workspace) Copy `scripts\*` into `<root>\src\spawn\` and `templates\spawn_edits.py` there too, then: ```powershell & <root>\src\spawn\decompile_spawn.ps1 # -> work\spawn_soc\all_soc\alife_<level>.ltx, way_<level>.ltx ``` Any Python 3 runs the scripts; Blender's bundled one works: `"C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\bin\python.exe"`. ## Workflow 1. Find objects: `python list_objects.py l01_escape` (section counts) / `python list_objects.py l01_escape stalker m_trader` (names, positions, story ids). 2. Describe the change in `spawn_edits.py`: - `REMOVE_SECTIONS[level][section] = reason` - all objects of a section (e.g. every vanilla `stalker`), `REMOVE[level] = [(name, reason)]` - single objects (story restrictors, respawners, level changers), `STRIP_LOGIC` - keep a zone but drop its vanilla `[logic]`, - `MODIFY[level][name] = {key: value}` - any key; `custom_data` replaces the heredoc, - `ADD[level] = [...]` - clone a vanilla object of the same class (`template`) and override keys; helpers `prop()` (static decoration) and `lamp()` (hanging light). 3. `python build_spawn.py` - applies edits (fails loudly if a name isn't found), compiles with ACDC, installs `game\gamedata\spawns\all.spawn`, writes `REMOV