ZH
games/alis / tools / hd / README.md · commit 9c722cf
# The HD edition's sprite packBigger versions of the game's pictures (Real-ESRGAN x4), drawn by the HD edition instead of the original pixelswherever the screen still shows them (`src/Alis/HdSprites.php`, `src/Hd/HdRenderer.php`). Made from the game's data:the pack is private (playground externals / private files `hd-<key>.png` + `hd-sprites.json`), never in this repository.1. Capture the pictures with their palette, 1x PNG + JSON per picture (key = hash of the bitmap, the same at run time):   - every bitmap of every script (palette guessed from the script's palettes):     `bin/jumphp php games/alis tools/hd/extract.php data/robinson var/hdcap`   - the ones seen while playing (true palette, wins over the guess): `tools/run.php ... --hd-capture=var/hdcap --replay=<inputs.jsonl>`2. Upscale (host, GPU through Vulkan; [Real-ESRGAN ncnn](https://github.com/xinntao/Real-ESRGAN/releases) unpacked in   `.alis-data/tools/realesrgan/`): `python3 -I games/alis/tools/hd/upscale.py games/alis/var/hdcap .alis-data/robinson/hd`   (only the real GPU's Vulkan driver is used: llvmpipe costs ~27 s per process; two GPU processes by default, `HD_WORKERS`).3. The desktop reads `.alis-data/<game>/hd/` directly; online: `hd-<name>` files beside the other lazy files of the game   (catalog/<game>.json "lazy") in the externals `alis/<game>/`.Check: `tools/run.php ... --hd-sprites --replay=<inputs>` writes `var/<out>/hd-sprites.txt` (frame, bitmaps, pixels covered).Status (2026-11-15): the "Special edition" that used it is withdrawn. Many of the game's "pictures" are frames of animations(films, animated flags): upscaled one by one they did not match from one frame to the next and the screen was half HD, halfnot. The code stays (HdSprites is only on when PlayScene's edition "special" asks for it, which the list no longer offers).