ZAP 9.2 SSE - Whipping System Fix
by XTH SSE

Two leftovers from an old script rename in the original ZaZ Animation
Pack. Neither was caused by the SSE conversion - only meshes and
animations were converted. Both are in the LE version too.

Between them they are the reason the whipping system floods the papyrus
log and never works.


1. THE COMPILED SCRIPT

  Error: Cannot open store for class "whp_plyr", missing file?
  Error: Property zazwhpAnims on script zazWhp_NPCscript ... cannot be bound

zazWhp_NPCscript.psc, line 3, declares the property with a class that no
longer exists:

      Whp_Plyr Property zazwhpAnims Auto

while the script it should point at is:

      Scriptname zazWhp_Plyr_Script extends ReferenceAlias

zazWhp_NPCscript.pex has been patched so the property refers to
zazWhp_Plyr_Script. Only that one string was changed - every other byte
is identical to the original, including its compile stamp.


2. THE PLUGIN

  Error: Script Whp_Plyr cannot be bound to alias playerAlias on quest
         zbfWhpAnimsPlyr because the script does not exist

Quest zbfWhpAnimsPlyr, alias playerAlias, carried two scripts in its VMAD:
the correct zazWhp_Plyr_Script and a dead Whp_Plyr entry with five stale
properties. The dead entry broke the alias type, so the NPC scripts could
not bind to it either.

The dead entry has been removed from ZaZAnimationPack.esm. 121 bytes cut,
the alias script count corrected from 2 to 1, subrecord and record sizes
adjusted. Record count is unchanged at 24013 and the file parses to its
exact end. Nothing else in the plugin was touched.

Credit for finding both goes to MMn3e, who traced them byte by byte.


INSTALLATION

Install after ZAP 9.2 and let it overwrite. Run your behaviour engine
again afterwards.

The plugin is byte-identical in the CBBE and the UUNP build, so this patch
works with both.
