Files

9.2 KiB

Octo patch server (2026-11-23)

Streams signed updates to OctoWoW clients, the way the 1.12 client used to patch itself. The 70334 client has no patch downloader of its own, so a small launcher does it: OctoUpdater.exe in the client root (next to .build.info) checks the channel, installs what is missing, then starts _classic_beta_\WowB.exe.

Pieces

Piece Where
Publisher publish.py — turns a frozen content step (stage-plan.json) or a set of loose files into a signed channel
Channel repo /mnt/Games/@project/patchserver/repo/<channel>/ — manifest.txt, manifest.txt.sig, blobs/<sha256>.zst
Server container octo-patchserver (python:3.13-slim, http.server, repo mounted read-only), port 8095 on all interfaces (LAN and WireGuard addresses of the build PC)
Updater updater/OctoUpdater.cpp, built by updater/build.sh (mingw, static, zstd 1.5.7 decoder, WinHTTP, BCrypt)
Signing key private: claude-linux-build-20261121/signing-key-PRIVATE/patch-manifest-key.pem (never publish); public: patch-manifest-public.pem, embedded in the exe

What the updater guarantees

  • The manifest must carry a valid RSA-3072 signature from the patch key, or nothing is installed.
  • A CONTENT step runs only when the client's build key is the step's parent, and only after the same exact checks install.py makes (file hashes, index generations, 547-ish alias spans, new paths absent).
  • Every downloaded blob and every decoded file is checked against the signed sha256.
  • New files are staged under _patch/stage, moved in, and .build.info is switched last (old one kept in _patch/build.info.<parent>). An interrupted run leaves the client on its old build; a rerun reuses staged blobs.
  • A new data.N archive is shipped as a zstd --patch-from delta against data.N-1, which the step already pins byte-exact: the 0f1c step is 96 MB to download instead of 699 MB.
  • FILES steps (natives, addons) replace a file only when it is in the expected prior state; old copies go to _patch/backup/<id>/; applied ids are listed in _patch/applied.txt.
  • The game is refused updates while WowB.exe runs. If the server is unreachable or a check fails, the updater shows why (_patch/updater.log) and still starts the game on the intact previous build.

Publishing a new content step

cd ops/patchserver
python3 publish.py --repo /mnt/Games/@project/patchserver/repo --channel octo \
    add-content /mnt/Games/@project/gateway/runtime/continuation-20261113/claude-lane/content/<step>-frozen-candidate

Steps must be added in chain order (each step's parent = previous child). Natives / addon files:

python3 publish.py --repo ... --channel octo add-files natives-<hash> \
    _classic_beta_/GWNativeBackend.dll=<signed dll> _classic_beta_/GWNativeWire.dll=<...> ...

The prior state each PUT expects is read from the canonical client at publish time.

Client setup

New players need only the installer, not the 81 GB zip:

  • Windows: put OctoUpdater.exe in an empty folder (e.g. C:\Games\OctoWoW) and double-click it. With no client there it installs one, then updates and starts the game. Started from a folder with other files it installs into an OctoWoW subfolder. It defaults to url=https://dl.hybridgateway.eu/, channel=octo.
  • Linux: ./octo-install.sh [folder] (default ~/Games/OctoWoW; needs curl, openssl, sha256sum), then play-linux.sh in that folder (umu-run + GE-Proton) runs the same updater and the game.

Both fetch the signed file list <channel>/install.txt (+ .sig) and download the release tree at <channel>/install/<release>/OctoWoW/ one file at a time: each file goes to <file>.part, resumes with an HTTP Range request after any break, is retried with back-off, and is SHA-256 checked (damaged → fetched again). .build.info comes last, so an unfinished install never looks like a client; starting again continues. _patch/verified.txt remembers checked files. --repair (both tools) re-checks every file. Patch blobs of normal updates resume the same way.

Publishing a release tree: unpack the client on the server (per-file sha256 manifest), then install_list.py --repo R --channel octo --release <id> --files <manifest.json> --check-against <local client> signs the list only after comparing every hash with the local release source; push_vps.sh uploads it. nginx serves .build.info only inside install/<release>/OctoWoW/, and never caches install.txt*.

An existing client folder keeps OctoUpdater.cfg:

url=https://dl.hybridgateway.eu/
channel=octo
launch=1

Windows: double-click OctoUpdater.exe instead of WowB.exe. Linux: play-linux.sh runs it under Proton. Flags: --check (report only), --no-launch, --no-dialog, --repair.

Base release, torrent and peer-to-peer install

The server keeps one frozen base release (<channel>/install/<release>/OctoWoW/, listed in the signed install.txt) plus the channel's update steps. A fresh install downloads the base, then applies every update on top. Never change files inside the base tree: it is the torrent's web seed, and a changed file breaks the torrent's pieces. New updater/DLL versions reach players as FILES/STORE steps. When updates pile up, cut a new base release (new install tree, install_list.py, make_torrent.py, p2p_list.py) and remove the old one.

  • make_torrent.py --tree <dir with OctoWoW/> --files <manifest.json> --release <id> --out X.torrent --tracker ...: files in install.txt order, every file's SHA-256 checked, web seed https://dl.hybridgateway.eu/octo/install/<id>/.
  • p2p_list.py --repo R --channel octo --release <id> --torrent X.torrent --torrent-url p2p/X.torrent --aria2 aria2c-1.37.0.exe --aria2-url p2p/aria2c-1.37.0.exe signs install-p2p.txt (checks torrent = install.txt). p2p/ also holds the aria2 GPL source and licence.
  • OctoUpdater (fresh install, >= 2 GB missing): pinned aria2 downloads the torrent straight into place (.build.info and the running exe diverted to _patch/p2p/hold); afterwards every file is hash-checked and the rest comes over HTTP. Falls back to HTTP when the list is missing, aria2 fails, or speed stays 0 for 5 min. cfg: p2p=0, p2p_min_gb, p2p_seed_minutes, p2p_upload_limit, p2p_stall_seconds, p2p_args.
  • Player choice (11-30): a fresh install or repair with no p2p= line asks once (Yes = peer-to-peer, No = direct download only) and saves p2p=1/0 in OctoUpdater.cfg. OctoUpdater.exe --no-p2p / --p2p change the saved choice. P2P only runs during an install/repair download (seed time 0); normal updates and play never use it.
  • Fresh install asks where to install (or --dir <path>), then makes a desktop shortcut OctoWoW.
  • octo-install.sh does the same with a system aria2c (OCTO_P2P=0 turns it off).
  • nginx: the base tree's three dot-files (.build.info, _classic_beta_/.flavor.info, Data/wow_classic_beta/.residency) are exempt from the dot-file 404; install(-p2p).txt(.sig) are no-cache.

Release 20261127 (compacted base, 2026-11-27)

Replaces 20261124 as install.txt / install-p2p.txt: 5387 files, 66.85 GB (was 81.3 GB). Built from a reflink copy of the OCTO client limited to old-base paths + every step PUT target + Data/, then brought to the newest step by the real OctoUpdater (--no-launch --no-dialog: 5 steps applied, store check 0.0 GB unused); updater work dirs and WTF removed. VPS upload: 4881 unchanged files hard-linked from install/20261124 (base trees are immutable), 506 files (15.6 GB) rsynced; all 5387 hashes verified on the VPS. Torrent infohash b3add74d31da8b686f5911cedf5e83a0f12b0462. client/ now offers the current OctoUpdater.exe and OctoWoW-20261127.torrent. Keep install/20261124 until existing p2p downloads of the old torrent have finished, then delete it (its hard links keep the shared files alive).

2026-11-27 (later): owner rule "addons only on Gitea, not in the patch channel". Step pfquest-forever-20261127 removed from the channel; install.txt re-signed without pfQuest, pfQuest-turtle and a stray _claude-preimage folder (5114 files, 66.82 GB; the tree on the VPS is unchanged, the 273 files are just no longer listed). New torrent OctoWoW-20261127b.torrent (infohash a38fc01a37b86685fb640bd6782457119e46b0f8) replaces OctoWoW-20261127.torrent in p2p/ and client/. Client-integration addons (Octo*, WoWHybrid*, aux AH window, Turtle_ShopUI) stay: they are client parts. Third-party addon ports live in their own Gitea repos.

Verified 2026-11-24 (installer)

Release 20261124 tree (4949 files, 81.3 GB) unpacked on the VPS; 4944 hashes agree with the OCTO client, the 3 DLLs updated since and the 2 zip-only extras checked by hand. octo-install.sh and OctoUpdater.exe (Wine): a 1 GiB archive cut to a 200-300 MB .part resumed (HTTP 206, only the rest sent), result byte-identical; OctoUpdater then applied the channel's 4 FILES steps; second run: nothing to do.

Verified 2026-11-23

LOCAL rolled back to b7d02d14 with install.py, then OctoUpdater.exe under GE-Proton: signature OK, 589 preconditions OK, 96 MB fetched, data.233 rebuilt from the delta, client at 0f1c6476 byte-identical to the hand install (all copy targets + .build.info match the plan). Rerun: 0 updates. Tampered manifest: refused, nothing installed. Launch through the updater: login screen with the gateway natives loaded.