Source and build pipeline for my Left 4 Dead 2 add-ons. Everything is built by Python scripts and the
L4D2 Authoring Tools. Built .vpk files are not in the repo: build them yourself, or get them from the Workshop.
| Project | What it is | Build |
|---|---|---|
lastflight/ |
Last Flight: 2-chapter custom campaign (city street, then the evacuation tower with a helicopter finale and an airliner crash) | lastflight\build.cmd |
yurucamp/ |
Yuru Camp survivors: Rin, Nadeshiko, Chiaki and Aoi replace Nick, Ellis, Rochelle and Coach, converted from Garry's Mod player models | python yurucamp/build.py |
yuruyuri/ |
YuruYuri (L4D1) fix: patches an existing Workshop survivor pack for the 2026-11 engine update (eye irises, face flex order) | python yuruyuri/patch.py |
lastflight/ campaign: addon/ (packed as-is), mapsrc/ (Hammer VMFs), materialsrc/, soundsrc/, tools/
yurucamp/ survivor port: build.py + portraits/
yuruyuri/ survivor pack fix: patch.py
tools/ shared Python: MDL/VPK/VTF readers and writers, GMod -> L4D2 converter, MDL patchers
tools/debug/ one-off inspection scripts (MDL dumps, flex/eye checks)
thirdparty/ (git-ignored) other people's assets the builds read: you download these yourself
work/ (git-ignored) scratch: files extracted from the game VPKs, generated SMD/QC, compiler output
build/ (git-ignored) output: unpacked addon folders and the .vpk files
- Windows, Left 4 Dead 2, and Left 4 Dead 2 Authoring Tools (Steam > Library > Tools). They provide
bin/vbsp.exe,studiomdl.exe,vpk.exe,vtex.exeand Hammer. - Python 3.10+ on
PATH, then:pip install -r requirements.txt - The game folder is found automatically from your Steam libraries. If that fails, or you have several
installs, set it yourself:
Check what the scripts will use with
setx L4D2_DIR "E:\SteamLibrary\steamapps\common\Left 4 Dead 2"python tools/l4d2paths.py. - Only for
yurucamp/yuruyuri: put the third-party assets inthirdparty/(next section).
Run scripts from the repo root (python yurucamp/build.py, not cd yurucamp && python build.py - both work,
but the tools/debug scripts expect the root as the working directory).
These are not mine, so they are not in the repo. The build scripts stop with a message telling you which folder is missing.
| Folder | Content | Where to get it |
|---|---|---|
thirdparty/yurucamp_garrysmod/ |
Yuru Camp player models + materials by sheepylord (models/sheepylord/yurucamp/*_pm.mdl, *_arms.mdl, materials/models/sheepylord/...) |
sheepylord's Laid-Back Camp player models on the Garry's Mod Workshop. Extract the GMA (e.g. with gmad.exe extract) into this folder |
thirdparty/yuruyuri/ |
The original YuruYuri (L4D1) survivor addon by MoistGaming / dewobedil | Steam Workshop item 3173997024. Unpack its VPK (vpk.exe x, or GCFScape) into this folder |
thirdparty/ref/ |
Optional: other survivor mods used only as references by tools/debug scripts |
- |
Stock game files (survivor models, HUD portraits, UI strings) are never committed. The scripts extract them
from your own game VPKs into work/game/ at build time.
The code is under the MIT License: the Python tools and build scripts (*.py, *.cmd) and the
VScripts (*.nut). That covers tools/, lastflight/tools/, lastflight/addon/scripts/, yurucamp/build.py
and yuruyuri/patch.py.
The MIT License does not cover the rest of the repo: maps (*.vmf, *.nav), art, sound, and the mission and
addon text files. Ask before reusing them. Third-party assets keep their own authors' terms. Left 4 Dead 2 and
its stock content belong to Valve.
- Edit sources, not outputs: anything under
build/andwork/is overwritten by the next build. - Map changes: edit
lastflight/mapsrc/*.vmfin Hammer, then runlastflight\build.cmd(addnavafter changing walkable geometry). Commit the VMF and the regeneratedaddon/maps/*.nav. - Keep paths relative to the script (
__file__) and get game paths fromtools/l4d2paths.py. Don't hard-code a drive letter. - New survivor models: keep the QC eyeball iris size at 1.6 or below, and keep the official flex controller
order (see
tools/patch_eyes.pyandtools/patch_flex.pyfor why).