Modern open-source C# .NET 10 Asheron's Call client. Faithful port of retail client behaviour to Silk.NET with a plugin API.
User reported that some NPCs (Pathwarden, Town Crier) didn't breathe. Diagnostic logging revealed: 1. Both NPCs are correctly registered as animated at CreateObject time with the standard 30fps human breath cycle (anim=0x03000001). 2. Immediately after spawn the server sends an UpdateMotion with stance=0x0003 cmd=0x0000 for these NPCs. 3. MotionResolver.GetIdleCycle returned NULL for that combination, because StyleDefaults didn't have an entry for stance=3. 4. OnLiveMotionUpdated treated the NULL as "switch to a static pose" and removed the entity from _animatedEntities. Two fixes: A. MotionResolver.ResolveIdleCycleInternal — when stance is set but StyleDefaults has no entry for it, fall back to the table's DefaultStyle/DefaultSubstate instead of returning null. The server-supplied stance was just an unmappable override; the table default is the correct "I have no better information" answer. Pulled the table-default lookup into a small TryGetTableDefault helper so both fallback paths use the same code. B. OnLiveMotionUpdated — never REMOVE an animated entity. If the re-resolved cycle is bad (null, framerate=0, or single-frame), leave the existing cycle running so the entity continues to breathe with whatever it already had. The defensive "remove on re-resolve failure" was the bug — it silently un-registered NPCs the moment the server sent any partial motion update. Together these mean: any NPC that successfully registers as animated at spawn stays animated, even if the server's subsequent motion updates are incomplete or use stance values our resolver doesn't have a mapping for. Strips the [BREATHE] and [MOTION] diagnostic spew added during the investigation now that the cause is identified. 220 tests still green. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| 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.