Rename the mod slug to phantombladezero_cppbypass

Rename phantombladezero_scriptcompat -> phantombladezero_cppbypass across
mod.json (folder), the install/deploy/log paths, the GitHub URL in NOTICE.md,
the build output path and the release zip names, and the docs. The display name
"PBZ Script Compatibility" and the internal C++ class are unchanged. Build and
both release zips verified under the new name.
This commit is contained in:
KintaroModding committed 2026-11-04 15:20:42 +01:00
1 parent 663b0d73f4
commit 2bdeccb0e5
8 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ shown in CONTRIBUTORS.md.
## Ways to help
- Report a bug: what you did, what happened, and the mod's log
`ue4ss/Mods/phantombladezero_scriptcompat/compatibility.log`.
`ue4ss/Mods/phantombladezero_cppbypass/compatibility.log`.
- Re-pin the mod for a new game or UE4SS build: the offsets and hashes in
`src/build_profile.hpp`, found with `tools/inspect_validators.py` and
`tools/dump_functions.py`. See README.md.
+1 -1
View File
@@ -19,7 +19,7 @@ These terms apply to this program and to every work based on it.
Where a work based on this program shows its legal notices, such as a log
banner, a mod page or a README, keep showing the line "Based on PBZ Script
Compatibility by KintaroModding and contributors" with the address
https://github.com/KintaroModding/phantombladezero_scriptcompat.
https://github.com/KintaroModding/phantombladezero_cppbypass.
2. Marked as different (section 7c). A modified version must not claim to be the
original or an official release. Give it a name of its own (see term 3), and
+2 -2
View File
@@ -22,12 +22,12 @@ unpatched. Future game or UE4SS updates require a reviewed compatibility update.
## Install and first game test
1. Close the game. Use the supported UE4SS build and its working PBZ configuration.
2. Copy the package's `ue4ss/Mods/phantombladezero_scriptcompat` folder into the
2. Copy the package's `ue4ss/Mods/phantombladezero_cppbypass` folder into the
existing `ue4ss/Mods` folder beside the game's platform executable.
3. Keep PBZModLoader out of this test. Coexistence has not been tested.
4. Test with one script pak mod that has been updated against this game build.
5. Start the game. Inspect
`ue4ss/Mods/phantombladezero_scriptcompat/compatibility.log`.
`ue4ss/Mods/phantombladezero_cppbypass/compatibility.log`.
6. Look for `Both validators hooked` and an `Allowed listed project script` entry
for the mod's script. Confirm that menu labels display normally and the mod's
gameplay change works. A hook log alone does not establish gameplay success.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "PBZ Script Compatibility",
"folder": "phantombladezero_scriptcompat",
"folder": "phantombladezero_cppbypass",
"author": "Kintaro",
"version": "1.0",
"status": "experimental-game-test-pending",
+3 -3
View File
@@ -14,11 +14,11 @@ It is a helper for other mods. On its own it changes nothing you can see; it onl
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\`.
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_cppbypass\`.
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.
To update, replace the folder with the one from the new release. To remove it, delete `ue4ss\Mods\phantombladezero_cppbypass\`. A full game restart is needed after you add, remove or replace this mod.
## Compatibility
@@ -37,7 +37,7 @@ To update, replace the folder with the one from the new release. To remove it, d
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.
2. Build it: `python tools/build.py`. This builds `dist/ue4ss/Mods/phantombladezero_cppbypass/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 <PBZ.exe> <UE4SS.dll>`.
+2 -2
View File
@@ -43,10 +43,10 @@ flags = ['/nologo','/c','/std:c++20','/O2','/MD','/EHsc','/W4','/WX','/permissiv
for source in ['dllmain','compatibility']:
run([compiler/'cl.exe',*flags,f'/Fo{build/source}.obj',ROOT/'src'/f'{source}.cpp'])
run([compiler/'lib.exe','/nologo',f'/def:{ROOT/"tools/vendor/ue4ss-sdk/UE4SS.def"}','/machine:x64',f'/out:{build/"UE4SS.lib"}'])
out = ROOT/'dist/ue4ss/Mods/phantombladezero_scriptcompat/dlls'
out = ROOT/'dist/ue4ss/Mods/phantombladezero_cppbypass/dlls'
out.mkdir(parents=True,exist_ok=True)
run([compiler/'link.exe','/nologo','/DLL','/INCREMENTAL:NO','/OPT:REF','/OPT:ICF',
f'/OUT:{out/"main.dll"}',f'/IMPLIB:{build/"scriptcompat.lib"}',
f'/OUT:{out/"main.dll"}',f'/IMPLIB:{build/"cppbypass.lib"}',
build/'dllmain.obj',build/'compatibility.obj',*objects,build/'UE4SS.lib','kernel32.lib','bcrypt.lib'])
run([compiler/'cl.exe',*flags,'/DCOMPAT_TESTING',f'/Fo{build/"compatibility-test.obj"}',ROOT/'src/compatibility.cpp'])
run([compiler/'cl.exe',*flags,f'/Fo{build/"native_hooks.obj"}',ROOT/'tests/native_hooks.cpp'])
+1 -1
View File
@@ -7,7 +7,7 @@ import zipfile
ROOT=Path(__file__).resolve().parents[1]
out=ROOT/'dist'
version=json.loads((ROOT/'mod.json').read_text())['version']
stem=f'phantombladezero_scriptcompat_{version}_experimental'
stem=f'phantombladezero_cppbypass_{version}_experimental'
binary=out/(stem+'.zip')
source=out/(stem+'_source.zip')
binary_files=[out/'README.md',out/'LICENSE',out/'NOTICE.md',out/'CONTRIBUTORS.md',
+1 -1
View File
@@ -40,7 +40,7 @@ native=subprocess.run([str(ROOT/'build/native_hooks.exe'),str(prologues)],cwd=RO
capture_output=True,text=True,check=True)
report['native_tests']=native.stdout.splitlines()
print(native.stdout,end='')
dll=ROOT/'dist/ue4ss/Mods/phantombladezero_scriptcompat/dlls/main.dll'
dll=ROOT/'dist/ue4ss/Mods/phantombladezero_cppbypass/dlls/main.dll'
mod=pefile.PE(str(dll),fast_load=True)
mod.parse_data_directories(directories=[0,1])
assert mod.FILE_HEADER.Machine==0x8664