UE4SS Patch Fix for Phantom Blade Zero 1.0.0
============================================

Game patch 1.0302256 (4 Nov 2026) stopped UE4SS for Phantom Blade Zero from starting: its UE4SS.log fills with
"Was unable to find AOB for 'GNatives'" and "... 'GUObjectArray'", and no UE4SS mod loads. This fix replaces the
two files UE4SS uses to find those two engine globals, and every UE4SS mod works again.

The new files pin no addresses: each one finds the engine code that uses the global, takes the address from that
code, and accepts it only when several separate checks agree. They work on the launch build and on patch 1.0302256,
and should keep working after later patches as long as those two engine functions don't change.

Needs
  UE4SS for Phantom Blade Zero (by Vercadi) installed: dwmapi.dll and the ue4ss folder next to the big PBZ.exe in
  PBZ\platform\steam. This fix is only the two signature files, nothing else.

Install
  Extract the zip into the game folder (...\steamapps\common\PBZ, the folder with "platform") and let it overwrite
  PBZ\platform\steam\ue4ss\UE4SS_Signatures\GNatives.lua and GUObjectArray.lua. Start the game.

Check
  PBZ\platform\steam\ue4ss\UE4SS.log now says:
    [UE4SS Patch Fix] GUObjectArray found at 0x...
    [UE4SS Patch Fix] GNatives found at 0x... (255 of 255 handlers in the exe)
  and your mods start ("Mod '...' has enabled.txt, starting mod").

Not for
  The other UE4SS packages for PBZ (OFFICIAL UE4SS for PBZ, UE4SS for PhantomBladeZero by KarmaP12): they find these
  globals their own way.

Uninstall
  Reinstall UE4SS for Phantom Blade Zero. When its author updates it for the patch, that update replaces these files,
  which is fine.

Credits
  Vercadi, for UE4SS for Phantom Blade Zero; the UE4SS team. Fix by Squiffles1 (Phantom Tweaks, Style Rank, Hundred
  Blades).
