Skip to content

About

Left 4 Dead 2 add-on sources and build tools: Last Flight campaign, Yuru Camp survivor port, YuruYuri engine-update fix

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

L4D2 Workshop

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

Layout

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

Setup

  1. 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.exe and Hammer.
  2. Python 3.10+ on PATH, then:
    pip install -r requirements.txt
    
  3. The game folder is found automatically from your Steam libraries. If that fails, or you have several installs, set it yourself:
    setx L4D2_DIR "E:\SteamLibrary\steamapps\common\Left 4 Dead 2"
    
    Check what the scripts will use with python tools/l4d2paths.py.
  4. Only for yurucamp / yuruyuri: put the third-party assets in thirdparty/ (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).

Third-party assets

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.

License

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.

Contributing

  • Edit sources, not outputs: anything under build/ and work/ is overwritten by the next build.
  • Map changes: edit lastflight/mapsrc/*.vmf in Hammer, then run lastflight\build.cmd (add nav after changing walkable geometry). Commit the VMF and the regenerated addon/maps/*.nav.
  • Keep paths relative to the script (__file__) and get game paths from tools/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.py and tools/patch_flex.py for why).

About

Left 4 Dead 2 add-on sources and build tools: Last Flight campaign, Yuru Camp survivor port, YuruYuri engine-update fix

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages