HeadlinesBriefing favicon HeadlinesBriefing.com

Moongate v2: Modern Ultima Online Server Built with .NET 10 and NativeAOT

Hacker News •
×

Moongate v2 is a modern Ultima Online server emulator built from scratch in C# using .NET 10 and NativeAOT compilation. The project focuses on clean architecture with strict network/domain separation, event-driven game loops, and Lua scripting for rapid game logic iteration without recompilation. While still early in development with no combat or skills yet implemented, the foundation includes full packet handling, spatial world partitioning, and snapshot-based persistence.

Built with a tech stack including .NET 10, NLua, MessagePack, DryIoc, and Kestrel, Moongate v2 uses source generators for automatic DI wiring and packet handler registration. The server compiles to a single native binary and features an embedded HTTP admin API with React management UI. Unlike existing emulators like ModernUO or RunUO, this project reimagines the architecture from scratch with thread-safe boundaries and no inheritance-heavy item hierarchies.

The project is actively seeking contributors for technical reviews and development. Available features include TCP server lifecycle handling, attribute-based packet mapping, domain event buses, Lua scripting runtime, and spatial chunk-based world streaming. The spatial strategy uses 16x16 sector indexing for predictable memory growth and better cache locality compared to traditional range-scan approaches.