diff --git a/docs/cover.png b/docs/cover.png new file mode 100644 index 0000000..51cbe17 Binary files /dev/null and b/docs/cover.png differ diff --git a/openmods.json b/openmods.json new file mode 100644 index 0000000..f469839 --- /dev/null +++ b/openmods.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://openmods.nexus/openmods.schema.json", + "openmods": 1, + "name": "PBZ Script Compatibility", + "summary": "Brings script-based pak mods back to Phantom Blade Zero after the game's script check, by letting the game's own listed scripts carry edits.", + "games": ["phantom-blade-zero"], + "tags": ["compatibility", "tools"], + "cover": "docs/cover.png", + "requires": ["UE4SS for Phantom Blade Zero (built for v3.0.1-1195-g1ceefac8)"], + "gameVersions": ["Steam build 26367565"] +} diff --git a/openmods.md b/openmods.md new file mode 100644 index 0000000..6a550c6 --- /dev/null +++ b/openmods.md @@ -0,0 +1,47 @@ +# PBZ Script Compatibility + +A Phantom Blade Zero update (2026-11-04, Steam build 26367565) made the game refuse any changed game script. Mods that work by replacing one of the game's own scripts (JavaScript pak mods) then broke the main menu. This mod lets those mods work again. + +## What it does + +- It re-allows the game's own listed scripts to carry changed content, so a JavaScript pak mod that replaces one of them loads again. +- It touches only the game's own listed scripts. It adds no new script and changes nothing else in the game. +- It checks the exact game and UE4SS build before it does anything, and stays off on a build it does not know, so it never acts on the wrong version. + +It is a helper for other mods. On its own it changes nothing you can see; it only lets compatible pak mods run. + +## How to install + +1. Install UE4SS for Phantom Blade Zero, for example [UE4SS](https://github.com/KintaroModding/ue4ss) (the build this mod was made for: `v3.0.1-1195-g1ceefac8`). +2. Open the latest release on GitHub and download the zip. +3. From the zip, copy the `ue4ss` folder into the game's `platform\steam\` folder (next to the game's `PBZ.exe`). It adds `ue4ss\Mods\phantombladezero_scriptcompat\`. +4. Put the JavaScript pak mods you want into the game's `ProjectPBZ\Content\Paks\~mods\` folder as usual. +5. Start the game. + +To update, replace the folder with the one from the new release. To remove it, delete `ue4ss\Mods\phantombladezero_scriptcompat\`. A full game restart is needed after you add, remove or replace this mod. + +## Compatibility + +- Game version: Steam build 26367565 (`CL-302256_JKS-17280`). +- Needs UE4SS for Phantom Blade Zero, build `v3.0.1-1195-g1ceefac8`. +- Do not run it together with other script loaders such as PBZModLoader: both change the same game check, and the mix is untested. +- After a game patch or a UE4SS update, this mod needs a new build with new offsets. Until that build exists, it stays off on the new version (safe), and the pak mods do not load. + +## Known issues + +- Experimental. Tested so far: the game starts with no crash, the other UE4SS mods keep working, and two pak mods loaded (Animation Cancel and a map-marker mod). +- It is pinned to one exact game build and one UE4SS build. It will not act on any other. + +## How to build + +Anyone can build this mod from its source and check that the download matches it. + +1. Install the portable MSVC toolchain into a folder named `msvc` at the project root (the downloader is linked in `README.md`). +2. Build it: `python tools/build.py`. This builds `dist/ue4ss/Mods/phantombladezero_scriptcompat/dlls/main.dll` and runs the offline test. +3. Make the release zips: `python tools/package.py` (they land in `dist/`). + +To check the build against your own game files: `python tools/verify_build.py `. + +## Credits + +Made by KintaroModding. GNU General Public License v3 (see `LICENSE` and `NOTICE.md`). It includes MinHook (Tsuda Kageyu and contributors) and a small pinned subset of the UE4SS SDK headers (UE4SS contributors), each under its own license. PBZModLoader, by its own author, showed a folder-scoped way to do this; this mod is a separate, table-scoped design and neither includes nor needs it.