feat(vfx): decode retail hooks and typed tables

Replace the incomplete package path with one DatCollection-backed compatibility seam for PhysicsScripts and Animations. Preserve CreateBlockingParticle's inherited payload and following cursor, route every production and audit consumer through the corrected loaders, and apply retail's post-UnPack StartTime ordering.

Add exact stored-order PhysicsScriptTable upper-threshold resolution, high-byte DID and embedded-ID validation, plus live effect profiles with Setup-to-PhysicsDesc precedence across top-level and attached entity lifetimes. Keep blocking execution deferred and narrow TS-11 accordingly.

Pin synthetic malformed/cursor/order fixtures, installed-DAT blocking and recall audits, high-index IDs, IEEE boundaries, profile teardown, and ordinary decoder parity; synchronize architecture, inventory, milestones, roadmap, research, and memory.

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
Erik 2026-07-14 08:17:44 +02:00
parent 8dd996053d
commit 363e046112
31 changed files with 1102 additions and 73 deletions

View file

@ -11,6 +11,8 @@ internal static class ProjectileVfxDatFixtures
{
internal static readonly byte[] PhysicsScriptCreateBlockingThenAnimationDone = BuildPhysicsScript();
internal static readonly byte[] AnimationCreateBlockingThenAnimationDone = BuildAnimation();
internal static readonly byte[] OrdinaryPhysicsScript = BuildOrdinaryPhysicsScript();
internal static readonly byte[] OrdinaryAnimation = BuildOrdinaryAnimation();
private static byte[] BuildPhysicsScript()
{
@ -95,6 +97,30 @@ internal static class ProjectileVfxDatFixtures
pos += 4;
}
}
private static byte[] BuildOrdinaryPhysicsScript()
{
var bytes = new byte[24];
BinaryPrimitives.WriteUInt32LittleEndian(bytes, 0x3300F002u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(4), 1u);
BinaryPrimitives.WriteDoubleLittleEndian(bytes.AsSpan(8), 2.5);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(16), 0x04u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(20), 1u);
return bytes;
}
private static byte[] BuildOrdinaryAnimation()
{
var bytes = new byte[28];
BinaryPrimitives.WriteUInt32LittleEndian(bytes, 0x0300F002u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(4), 0u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(8), 0u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(12), 1u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(16), 1u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(20), 0x04u);
BinaryPrimitives.WriteUInt32LittleEndian(bytes.AsSpan(24), 1u);
return bytes;
}
}
public sealed class ProjectileVfxDatFixtureTests