Modern open-source C# .NET 10 Asheron's Call client. Faithful port of retail client behaviour to Silk.NET with a plugin API.
ROOT CAUSE of the "giant ball with spikes" terrain corruption that the previous two hotfix attempts (lock + synchronous loading) failed to address. Threading was a red herring all along. AC dat conventions: 0xAAAA0xFFFF — LandBlock dat (terrain heightmap) 0xAAAA0xFFFE — LandBlockInfo dat (static-object metadata) WorldView.NeighborLandblockIds correctly uses 0xFFFF. My StreamingRegion.EncodeLandblockId from Phase A.1 Task 1 used 0xFFFE by mistake. Every streaming load was therefore calling LandblockLoader.Load with the LandBlockInfo id, which makes DatCollection ask DatBinReader to read a LandBlock from the LandBlockInfo file. The reader's internal buffer position lands in the middle of the wrong file's bytes, ReadBytesInternal asks for an out-of-range slice, throws ArgumentOutOfRangeException, and the landblocks that DON'T throw return half-populated LandBlock objects whose Height[] arrays contain garbage. Garbage Z values render as the spike pattern. The kicker: my Task-1 review fix added a test (Constructor_SmallRadius_IDsMatchEncodingRule) that asserted Assert.Contains(0x1234FFFEu, region.Visible). The test was passing because it pinned the wrong value. I literally codified the bug. Fix: change EncodeLandblockId's terminator from 0xFFFEu to 0xFFFFu and update the test to assert 0x1234FFFFu. The XML doc on Visible now explicitly explains the 0xFFFF/0xFFFE distinction so this can't recur. The previous two hotfixes (_datLock in |
||
|---|---|---|
| docs | ||
| src | ||
| tests | ||
| .gitignore | ||
| AcDream.slnx | ||
| CLAUDE.md | ||
| README.md | ||
acdream
Experimental modern open-source Asheron's Call client in C# / .NET 10.
Status: pre-alpha, not playable. Phase 0 only — dat file asset inventory.
Stack: .NET 10, Chorizite.DatReaderWriter for dat parsing. Silk.NET + Avalonia planned for rendering/UI (not yet wired up).
Requires: A retail Asheron's Call install (Turbine/Microsoft property — supply your own). Set ACDREAM_DAT_DIR environment variable to the directory containing client_portal.dat, client_cell_1.dat, client_highres.dat, and client_local_English.dat, or pass it as the first CLI argument.
Layout
src/AcDream.Cli/— console app that dumps asset counts from a dat directoryreferences/— local read-only reference material (ACE, ACViewer, WorldBuilder, DatReaderWriter, holtburger, retail AC install). Gitignored.
Run
dotnet run --project src/AcDream.Cli -- "C:\path\to\Asheron's Call"
Or set ACDREAM_DAT_DIR and run without args.