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>
This commit is contained in:
parent
8922c2d06a
commit
fdc7ea71bc
7 changed files with 517 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<!--
|
||||
Offline checks for the large-address alignment fix
|
||||
(src\RynthCore.Engine\Compatibility\LargeAddressAlignmentScan.cs, compiled in): the site scan
|
||||
against the .text of a real acclient.exe read from disk, idempotence once patched, refusal of
|
||||
near-miss byte patterns, and the padding arithmetic above and below 2 GB. Nothing native: no
|
||||
AC process, no engine state.
|
||||
Run: dotnet run -c Release (exit 0 = pass, 1 = fail); after the usual separator, an AC folder or an acclient.exe.
|
||||
Default: C:\Turbine\Asheron's Call-ryn\acclient.exe.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<RootNamespace>LargeAddressAlignmentTests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\src\RynthCore.Engine\Compatibility\LargeAddressAlignmentScan.cs" Link="Engine\LargeAddressAlignmentScan.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Loading…
Reference in a new issue