Commit graph RynthCore/tools/LargeAddressAlignmentTests/LargeAddressAlignmentTests.csproj
Author SHA1 Message Date
BlankenshipG
fdc7ea71bc fix(compat): pad AC unpack buffers correctly above 2 GB (2026.10.5.23)
AC pads its pack/unpack cursor to 4 bytes with a signed "ptr % 4". In the large-address-aware
client a buffer above 0x80000000 gives a negative remainder, AC pads 4 bytes too many, zeroes
live data and parses garbage counts: kelpie's open-world crashes in motion-table and setup
unpacks (dump 2026-10-10 10:32, motion table 0x09000009 at 0x80438034).

Early init now rewrites the 190 padding sites (and r, 0x80000003 followed by the sign fix-up and
the "already aligned" je) to and r, 3 in memory. Kill-switch: engine.json
EnableLargeAddressAlignmentFix=false. Offline checks in tools/LargeAddressAlignmentTests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 10:44:31 -04:00