From 2bdeccb0e5e6477f1f5fe012c8b14beb04e12861 Mon Sep 17 00:00:00 2001 From: KintaroModding <343497502+KintaroModding@users.noreply.github.com> Date: Wed, 4 Nov 2026 15:20:42 +0100 Subject: [PATCH] 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. --- CONTRIBUTING.md | 2 +- NOTICE.md | 2 +- README.md | 4 ++-- mod.json | 2 +- openmods.md | 6 +++--- tools/build.py | 4 ++-- tools/package.py | 2 +- tools/verify_build.py | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9b0a12f..d4ffab5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/NOTICE.md b/NOTICE.md index 33c41bc..1204045 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -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 diff --git a/README.md b/README.md index 56a0ffd..6b9822d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/mod.json b/mod.json index e92d3d2..0f22efb 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { "name": "PBZ Script Compatibility", - "folder": "phantombladezero_scriptcompat", + "folder": "phantombladezero_cppbypass", "author": "Kintaro", "version": "1.0", "status": "experimental-game-test-pending", diff --git a/openmods.md b/openmods.md index 6a550c6..18ff3cd 100644 --- a/openmods.md +++ b/openmods.md @@ -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 `. diff --git a/tools/build.py b/tools/build.py index be77db5..cc8542c 100644 --- a/tools/build.py +++ b/tools/build.py @@ -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']) diff --git a/tools/package.py b/tools/package.py index 0b62757..ee17b8d 100644 --- a/tools/package.py +++ b/tools/package.py @@ -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', diff --git a/tools/verify_build.py b/tools/verify_build.py index 0f2a49e..24d24a3 100644 --- a/tools/verify_build.py +++ b/tools/verify_build.py @@ -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