Re-pin the bypass for game patch 1.0304629 (1.3)

The 2026-11-28 patch (Steam build 26936481, CL-304629_JKS-17496) moved
every pinned function and shrank the script table from 241 to 221 rows
(198 project scripts). The byte validator is unchanged; the lookup, text
validator, normalizer and free helper only changed their relative calls.

- build_profile.hpp: new exe hash, image size, timestamp, RVAs, counts
  and function digests.
- verify_build.py reads the validator RVAs from the profile instead of
  fixed numbers.
- Version 1.3; README, openmods files and mod.json name the new build.

Offline: native tests and verify_build.py pass against the new PBZ.exe
with UE4SS v4.0.0. The in-game test is pending.
This commit is contained in:
KintaroModding committed 2026-11-28 15:20:03 +01:00
1 parent 30d7fcc159
commit cf57b151be
8 files changed
+34 -31

No files matched your search

+8 -6
View File
@@ -1,12 +1,14 @@
# UE4SS C++ BYPASS
An independent UE4SS C++ mod by Kintaro. Experimental version 1.2.
An independent UE4SS C++ mod by Kintaro. Experimental version 1.3.
Allows modified contents for the 218 listed `project/` scripts and additional
Allows modified contents for the 198 listed `project/` scripts and additional
project JavaScript/JSON modules supplied by mods. This lets compatible script
pak mods run after the 2026-11-04 update, including mods that add new modules.
**Version 1.2 adds UE4SS v4.0.0. It passes the standalone native tests and was
**Version 1.3 is re-pinned for game patch 1.0304629 (Steam build 26936481,
2026-11-28). It passes the standalone native tests and the offline checks against
the new `PBZ.exe`; its in-game test is pending. Version 1.2 adds UE4SS v4.0.0. It passes the standalone native tests and was
confirmed in game on UE4SS v4.0.0, with an existing-script pak replacement
(Animation Cancel) and with additional project modules. Version 1.0 was confirmed
in game with Animation Cancel on UE4SS build 1195. Pinned to one game build and
@@ -14,8 +16,8 @@ two verified UE4SS builds.**
## Supported versions
- Phantom Blade Zero Steam build 26367565, CL-302256_JKS-17280.
- PBZ.exe SHA-256: `4415933ce33476f14c837abb61a1b60af8b78cd81783896501913a7aac69e423`.
- Phantom Blade Zero Steam build 26936481 (patch 1.0304629), CL-304629_JKS-17496.
- PBZ.exe SHA-256: `044f0c0436ea59b09c542a06cf7efda6d79513c6694e8718c5dfff57745d4bf7`.
- UE4SS v4.0.0, commit `30afe5fff94a94c2313e220b2002059a080da9a0`, `UE4SS.dll` SHA-256
`3843d81a8280096b0de3c750eebf15507e374c250dc551cbf07e7be7acc1e2ba` (the official release zip).
- UE4SS build 1195 (`v3.0.1-1195-g1ceefac8`), commit `1ceefac8b8c286f0fb3eb62b4aae075ff81df0bd`, `UE4SS.dll`
@@ -54,7 +56,7 @@ in-flight callbacks cannot jump into freed code. Hot reload is unsupported.
## Scope
Both the byte-content and text-content validators are hooked. Existing records
in the verified 241-entry table retain the project-only exception. For a module
in the verified 221-entry table retain the project-only exception. For a module
absent from that table, the game's own path normalizer must produce a canonical
`project/` path ending in `.js` or `.json`. The returned string is released with
the matching game allocator. Both additional helper functions are pinned and
+4 -4
View File
@@ -2,12 +2,12 @@
"name": "UE4SS C++ BYPASS",
"folder": "phantombladezero_cppbypass",
"author": "Kintaro",
"version": "1.2",
"status": "experimental-ue4ss-v4-game-test-positive",
"version": "1.3",
"status": "experimental-game-test-pending",
"kind": "ue4ss-cpp",
"game": "phantombladezero",
"gameVersion": "CL-302256_JKS-17280",
"steamBuild": "26367565",
"gameVersion": "CL-304629_JKS-17496",
"steamBuild": "26936481",
"ue4ssBuilds": {
"v4.0.0": "30afe5fff94a94c2313e220b2002059a080da9a0",
"v3.0.1-1195-g1ceefac8": "1ceefac8b8c286f0fb3eb62b4aae075ff81df0bd"
+1 -1
View File
@@ -7,5 +7,5 @@
"tags": ["compatibility", "tools"],
"cover": "docs/cover.webp",
"requires": ["UE4SS for Phantom Blade Zero (v4.0.0 or v3.0.1-1195-g1ceefac8)"],
"gameVersions": ["Steam build 26367565"]
"gameVersions": ["Steam build 26936481"]
}
+2 -2
View File
@@ -26,14 +26,14 @@ To update, replace the folder with the one from the new release. To remove it, d
## Compatibility
- Game version: Steam build 26367565 (`CL-302256_JKS-17280`).
- Game version: Steam build 26936481, patch 1.0304629 of 2026-11-28 (`CL-304629_JKS-17496`). Version 1.2 is for the older Steam build 26367565.
- Needs UE4SS for Phantom Blade Zero: `v4.0.0` or `v3.0.1-1195-g1ceefac8`. UE4SS v4.0.0 itself has no Phantom Blade Zero configuration yet (it comes with the next UE4SS release); use a package that adds it.
- PBZModLoader has the same function and needs no UE4SS. Running both at the same time is redundant, but it causes no problems. Other script loaders may conflict.
- 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. Version 1.0 was tested in game with Animation Cancel and a map-marker mod. Version 1.1 adds support for new project modules, and version 1.2 adds UE4SS v4.0.0. Version 1.2 was tested in game on UE4SS v4.0.0, with Animation Cancel and with new project modules.
- Experimental. Version 1.0 was tested in game with Animation Cancel and a map-marker mod. Version 1.1 adds support for new project modules, and version 1.2 adds UE4SS v4.0.0. Version 1.2 was tested in game on UE4SS v4.0.0, with Animation Cancel and with new project modules. Version 1.3 has the new offsets for patch 1.0304629; its in-game test is pending.
- Mods must still match the current game scripts. This bypass cannot restore removed modules referenced by an outdated startup script.
- It is pinned to one exact game build and two exact UE4SS builds. It will not act on any other.
+15 -15
View File
@@ -2,28 +2,28 @@
#include <cstdint>
#include <cstddef>
namespace compat::profile {
inline constexpr char game_sha256[] = "4415933ce33476f14c837abb61a1b60af8b78cd81783896501913a7aac69e423";
inline constexpr char game_sha256[] = "044f0c0436ea59b09c542a06cf7efda6d79513c6694e8718c5dfff57745d4bf7";
// Verified UE4SS.dll builds. The pinned SDK headers and all 17 imported UE4SS exports are identical in both.
struct Ue4ssBuild { const char* name; const char* sha256; };
inline constexpr Ue4ssBuild ue4ss_builds[] = {
{"v4.0.0", "3843d81a8280096b0de3c750eebf15507e374c250dc551cbf07e7be7acc1e2ba"},
{"v3.0.1-1195-g1ceefac8", "e1fb9a7e1d868afef6a091c2012e711c3ec47f05d100ba37f9631a4f75f31df2"},
};
inline constexpr std::uint32_t image_size = 0x1e0bb000;
inline constexpr std::uint32_t timestamp = 0x6ae7ae3f;
inline constexpr std::uint32_t normalize_rva = 0x62e77f0;
inline constexpr std::uint32_t free_rva = 0x12e0af0;
inline constexpr std::uint32_t lookup_rva = 0x62ea0e0;
inline constexpr std::uint32_t bytes_rva = 0x62f65a0;
inline constexpr std::uint32_t text_rva = 0x62f65e0;
inline constexpr std::uint32_t table_rva = 0xbec50f0;
inline constexpr std::size_t record_count = 241, project_count = 218;
inline constexpr std::uint32_t image_size = 0x1d40b000;
inline constexpr std::uint32_t timestamp = 0x6b072f6d;
inline constexpr std::uint32_t normalize_rva = 0x62b5b00;
inline constexpr std::uint32_t free_rva = 0x12e33f0;
inline constexpr std::uint32_t lookup_rva = 0x62b83f0;
inline constexpr std::uint32_t bytes_rva = 0x62c48b0;
inline constexpr std::uint32_t text_rva = 0x62c48f0;
inline constexpr std::uint32_t table_rva = 0xbeb09d0;
inline constexpr std::size_t record_count = 221, project_count = 198;
struct Function { std::uint32_t rva, size; const char* sha256; };
inline constexpr Function functions[] = {
{0x62ea0e0, 0xc5, "0d48d620658e94f5b2bc61949a3afb33243a815d5d9d170151b5994dbf8d3d10"},
{0x62f65a0, 0x3d, "6524f51e4381b0a4451568d0d73ed2166b2c886cce418b5088468938b7ef0b7f"},
{0x62f65e0, 0x246, "c43c4152c10face4075bf3f48e6701a2ae65956670460020d66ab13d59bd4ba4"},
{0x62e77f0, 0x291, "d344815997df52b4ad2cd51f686cc70b739c91e79ca3bfca92c0cb82b73b8b0a"},
{0x12e0af0, 0x34, "c1bddf2841a7a293b39d827480c49b5b95219caa2f563e7031cca17069e0526c"},
{0x62b83f0, 0xc5, "a279545f87871515be033d264c60af6e0c569d888a1e0e007e6959aa3b316ca8"},
{0x62c48b0, 0x3d, "6524f51e4381b0a4451568d0d73ed2166b2c886cce418b5088468938b7ef0b7f"},
{0x62c48f0, 0x246, "e7fca94cf4ec093d5a6bce0a8309f36fa826aa28b5480d7667cf87620ab79aa5"},
{0x62b5b00, 0x291, "57e96b845b299247377553fc53cbd7eb36ce023b85f80ac07cca09c366da615b"},
{0x12e33f0, 0x34, "5fea0c4dd553f360ee69bf735305a9d4fe9184c820ec7aeff53abcbc39e70529"},
};
}
+1 -1
View File
@@ -198,7 +198,7 @@ bool install(const std::filesystem::path& directory) {
attempted = true;
logfile = CreateFileW((directory/L"compatibility.log").c_str(), FILE_APPEND_DATA,
FILE_SHARE_READ|FILE_SHARE_WRITE, nullptr, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr);
log("\r\nUE4SS C++ BYPASS 1.2 experimental: startup\r\n");
log("\r\nUE4SS C++ BYPASS 1.3 experimental: startup\r\n");
try {
auto* image = reinterpret_cast<unsigned char*>(GetModuleHandleW(nullptr));
if (file_hash(module_path(nullptr)) != profile::game_sha256)
+1 -1
View File
@@ -10,7 +10,7 @@ class ScriptCompatibility final : public RC::CppUserModBase {
public:
ScriptCompatibility() {
ModName = STR("UE4SS C++ BYPASS");
ModVersion = STR("1.2");
ModVersion = STR("1.3");
ModDescription = STR("Compatibility for existing and additional project scripts");
ModAuthors = STR("Kintaro");
HMODULE module{};
+2 -1
View File
@@ -41,7 +41,8 @@ for block in getattr(game,'DIRECTORY_ENTRY_BASERELOC',[]):
assert not start<=reloc.rva<end,'Runtime code digest would require ASLR relocation'
report['code_digests_are_aslr_independent']=True
prologues=ROOT/'build/game-prologues.bin'
prologues.write_bytes(game.get_data(0x62f65a0,64)+game.get_data(0x62f65e0,64))
bytes_rva,text_rva=(int(re.search(rf'{n}_rva = (0x[0-9a-f]+)',profile)[1],16) for n in ('bytes','text'))
prologues.write_bytes(game.get_data(bytes_rva,64)+game.get_data(text_rva,64))
native=subprocess.run([str(ROOT/'build/native_hooks.exe'),str(prologues)],cwd=ROOT,
capture_output=True,text=True,check=True)
report['native_tests']=native.stdout.splitlines()