Skip to content

Witch Time v0.17.2

Choose a tag to compare

@github-actions github-actions released this 28 Nov 23:01
· 24 commits to main since this release
6b8f996

Witch Time v0.17.2

A bug-fix release fixing an exit code 4 crash on launch with modded WMB3 files whose materials have constant buffers without parameter groups.

Modded WMB3 materials no longer crash on launch with exit code 4 (#322, #329). In Bayonetta 3's WMB3 material initializer (f_7100bcd2e8), paramGroups is allocated from numParameterGroups (material + 0x24) while paramBuffers is allocated from numParamBuffers (material + 0x14), and the upload loop walked 0..bufs * 16 through paramGroups without a null or bounds check. Modded WMBs (such as Bayonetta 2 Cutscene Watch's es1801.wmb nullMat, with numParamBuffers = 1 and numParameterGroups = 0) left paramGroups null, faulting on native execution with exit code 4 where emulators returning 0 on unmapped reads skipped past it. The lifter now guards that load against a null paramGroups pointer or out-of-bounds offset and exits the loop cleanly. Tested on Linux (RADV) with both loose es1801.{dat,dtt} files and z_Bayo2_SceneWatch.pkz booting cleanly to the title screen; not yet re-tested on Windows.

Coming from v0.17.1: press REBUILD once when the launcher asks. It compiles 1 of the game's 407 lifted code files (c_00fb.c, for the WMB3 material guard) and relinks the game. PREPARING SHADERS does not run again if you are already on v0.17.1. There's no new key in config/graphics.ini, and your config/, mods/ and converted textures stay as they are.

Coming from v0.17.0: press REBUILD once when the launcher asks (1 of 407 lifted code files), and PREPARING SHADERS runs once more at your next start (v0.17.1 changed the preparation marker from _int2_ to _int2ne_ so first-run preparation builds MX_FO_NO_EARLY alpha-test fragment variants ahead of time).

Coming from v0.16.0: press REBUILD once when the launcher asks (1 of 407 lifted code files), and PREPARING SHADERS runs once more. The game also adds the language key to your config/graphics.ini, set to auto (from v0.17.0); the file as it was goes to graphics.ini.bak.

Coming from v0.15.0 or v0.15.1: press REBUILD once when the launcher asks. It compiles 6 of the game's 407 lifted code files (v0.16.0's achievement hooks plus this release's WMB3 material guard), and PREPARING SHADERS runs once more.

Coming from v0.14.3 or older: REBUILD compiles all 409 of the game's code files again, as on a first install (v0.15.0 changed runtime headers every lifted file includes).

If Update stops with "Cannot install ...: The system cannot find the path specified" (#224), your launcher is v0.10.1 or older and its folder's path is long. Download the Windows zip below, unpack it to a short path such as C:\Games\WitchTime, copy your config folder over from the old one, then pick your dump again and rebuild.

If Update stops with "The download is damaged (checksum mismatch)" (#248), try again; if it stays, download the archive below and unpack it over your folder by hand. The clearer messages from v0.12.2 show only once your launcher is v0.12.2.

Launchers v0.4.5 and older don't offer this update, because they look for the .sha256 files. Download the archive below and unpack it over your folder.

Coming from an older version, you also get these one-time steps:

  • From v0.13.0 or older: PREPARING SHADERS also re-translates shaders once at your next start (v0.14.0 raised the shader cache version, MX_VK_VERSION 23 to 24).
  • From v0.11.0 or older: the game adds the sharpness key to your config/graphics.ini, set to 0 (off); the file as it was goes to graphics.ini.bak.
  • From v0.10.2 or older: the game also adds three keys to your config/graphics.ini (frame_generation, frame_generator, frame_generation_hud). At its first start after the update, the launcher removes developer files older releases shipped (docs, tests, tools, the launcher's source and a few more).
  • From v0.9.3 or older: see also the v0.10.0 notes. Don't copy a build/ folder from one PC to another.
  • From v0.9.1 or older: the game also adds the hdr_peak key to your config/graphics.ini. Anisotropic filtering and texture detail are fixed at 16x and -1.
  • From v0.8.0 or older: FSR 3.1 compiles most of its passes once more the first time it runs.
  • From v0.7.0 or older: the game adds the upscaler key to your config/graphics.ini, set to off.
  • From v0.6.1 or older: see also the v0.6.0 and v0.5.0 notes.

Linux (x86_64 and experimental AArch64), Windows 10/11 (64-bit) and macOS (experimental, Apple silicon).

Download and run

  • Linux (x86_64): download WitchTime-v0.17.2-linux-x86_64.tar.gz, unpack it and run ./witch-time. Or download WitchTime-v0.17.2-x86_64.AppImage, make it executable and run it: its first start copies it into a WitchTime folder beside it and plays from there.
  • Linux (AArch64, experimental): download WitchTime-v0.17.2-linux-aarch64.tar.gz or WitchTime-v0.17.2-aarch64.AppImage. Built and link-tested in CI, never run on an ARM Linux device.
  • Windows: download WitchTime-v0.17.2-windows-x86_64.zip, unzip it to a folder you can write to (a short path with no special characters works best) and run witch-time.exe.
  • macOS (Apple silicon, experimental): download WitchTime-v0.17.2-macos-arm64.tar.gz, install Xcode Command Line Tools and the Homebrew dependencies listed in the README, unpack and run ./witch-time (or build/Witch Time.app).

Check a download against the SHA-256 digest GitHub lists next to it on this page. Windows Defender might flag Witch Time as a Trojan (#64), because the programs aren't code-signed. Download it only from this page.

Already on v0.5.0 or later? The launcher's title menu offers Update and keeps your config/ files. On v0.8.0 or older, start Witch Time once without --play to see the offer. If Update fails on Windows, see the note at the top.

What you need is the same as before: a Vulkan-capable GPU and driver, plus OpenGL and FreeType on Linux, or the Media Feature Pack on Windows "N" editions. The picture book also needs program 1 from the game's update 1.2.0 (extracted automatically when you set up from NSP / XCI, or from program1/ in an extracted dump; see the README).

The upscalers, frame generation and their libraries

No file of NVIDIA's or AMD's is in this release, so you copy them next to witch-time / witch-time.exe yourself and start the game again. DLSS / DLAA works on Windows and Linux; FSR 4 and frame generation are Windows only. The rows are in the game's PC settings panel (F1, or Start + Select) and in the launcher under Settings, Graphics, Upscaling.

Option Row and values Files to copy Needs
DLSS / DLAA Upscaling: DLAA, DLSS Quality to Ultra Performance Windows: nvngx_dlss.dll (from a game you own that has DLSS); Linux: libnvidia-ngx-dlss.so.<version> (from NVIDIA's DLSS SDK) NVIDIA RTX (Windows or Linux)
FSR 4 same row: FSR 4 Native AA, FSR 4 Quality to Ultra Performance amd_fidelityfx_loader_vk.dll and amd_fidelityfx_upscaler_vk.dll, from AMD's FSR SDK 2.4.0 or newer Radeon RX 6000 or newer, Adrenalin 26.10.1 or newer (Windows)
Frame generation, FSR Frame generation On, type FSR amd_fidelityfx_loader_vk.dll and amd_fidelityfx_framegeneration_vk.dll, same source an upscaler mode other than Off (Windows)
Frame generation, DLSS Frame generation On, type DLSS nvngx_dlss.dll and nvngx_dlssg.dll, from a game you own that has DLSS frame generation RTX 40 or newer, an upscaler mode other than Off (Windows)

The driver's amdxcffx64.dll is for DirectX 12 and doesn't work here.

Changes

Lifter

  • Guard WMB3 material param-group loop against null or short arrays (#322, #329): adds guard_material_param_groups in tools/wtbuild/src/lifter/eh.rs for Bayonetta 3's f_7100bcd2e8, verifying the exact instructions at 0x7100bcd48c / 0x7100bcd490 and exiting to L_7100bcd518 when paramGroups (x27) is null or x24 >= [x19 + 104] * 16, preventing an exit code 4 null dereference on modded WMB3 materials with numParamBuffers > 0 and numParameterGroups = 0.

If something fails, include build/run/witch-time-game.log (or build/run/witch-time-book.log for the picture book), the files in build/logs/, your OS and your GPU. The game keeps the four logs before the current one as witch-time-game.1.log to .4.log (1 is the newest).

This release contains no game code or assets, no keys, and no file of NVIDIA's or AMD's. Everything derived from the game is made on your PC from your own dump. Please never share it.

What's Changed

  • Lifter: guard WMB3 material param-group loop against null or short arrays (#322) (#329)

Full Changelog: v0.17.1...v0.17.2