Modern open-source C# .NET 10 Asheron's Call client. Faithful port of retail client behaviour to Silk.NET with a plugin API.
Replace the ad-hoc movement simulation with the ported retail physics: - PlayerMovementController now owns a PhysicsBody (gravity, friction, Euler integration with sub-stepping) and a MotionInterpreter (motion state machine, speed constants from retail dat). - Orientation quaternion is synced from Yaw each frame (Yaw=0 → +X, matching the cos/sin convention the camera and outbound messages expect). - Horizontal velocity is composed from MotionInterpreter.get_state_velocity() speeds (WalkAnimSpeed=3.12, RunAnimSpeed=4.0, SidestepAnimSpeed=1.25 from decompiled globals) then pushed via PhysicsBody.set_local_velocity so the orientation quaternion rotates them into world space correctly. - Vertical velocity (gravity / jump / fall) is snapshot before DoMotion calls so apply_current_movement's set_local_velocity(0,0,0) can't clobber it. - Jump delegates to MotionInterpreter.jump() + LeaveGround() which calls get_leave_ground_velocity() → DefaultJumpVz=10.0 (retail value). - PhysicsEngine.Resolve is still called each frame with zero delta to sample terrain/cell Z under the body and set Contact+OnWalkable accordingly. - Drive UpdatePhysicsInternal(dt) directly instead of update_object(wallClock) to avoid the MinQuantum (~33ms) guard that would silently drop 60fps frames. Test update: jump loop extended from 30→50 frames to cover the longer flight time from retail DefaultJumpVz=10 (≈2.04s) vs old JumpImpulse=5 (≈1.02s). 303 tests green. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| docs | ||
| src | ||
| tests | ||
| tools | ||
| .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.