Highly Performant & Scalable Ultima Online Server Emulator
https://www.modernuo.com
c-sharpcsharpcsharp-coredotnetdotnet-coreemulatorgplgplv3mmommo-enginemmorpgmmorpg-serveronlinerpgrunuoserverservuoultimaultima-onlineuo
SaveToFile walked _keysList twice - once to count the map's chunks, then again through a ChunkEnumerator closure to emit them - because Write needed the count up front to size its index array. It now collects the map's chunks into a PooledRefList in one pass and hands Write a span, so the count is just span.Length. That deletes the ChunkEnumerator delegate, the closure over the list enumerator, and both InvalidOperationException throws, which existed only to police the delegate's "yield exactly chunkCount chunks" contract - a contract a span makes unrepresentable. Write now patches the header's IndexOffset by seeking back to it rather than reaching into the writer's live buffer with BinaryPrimitives. This also removes the IndexOffsetFieldPosition constant, which hard-coded the field's byte offset and had to be kept in sync with the header layout by hand. Tests: StepCacheFileV6/V7/V8Tests were named for the format version that introduced each transform, and the format is now v9 - so all three names described formats the loader rejects outright. Each file also carried its own copy of the chunk builders, the round-trip plumbing, and the assertion helper, plus a near-identical "an older version is rejected" test whose comment cited a MinSupportedVersion that had since moved. They are now one StepCacheFileFormatTests named for the behavior it covers - predictive-Z elision, compression, the compact index - with shared builders, a single AssertIdentical that checks the swim and strata trailers too (the old AssertBaseEqual silently skipped both), and the three rejection tests folded into one theory that also covers a future version. Added a zero-chunk case, which the old delegate-based writer had no coverage for. Verified non-vacuous: injecting an off-by-one into the IndexOffset patch fails 15 of the 123 tests. Also reattaches a doc comment in StepCacheFileTests that had drifted off LazyReaderHit_BypassesMissTrackerOnFirstTouch and stacked onto the test above it, and drops its reference to the long-gone "v3 file format". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .config | ||
| .github | ||
| branding | ||
| dev-docs | ||
| Distribution/Data | ||
| Projects | ||
| .cursorrules | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| azure-pipelines.yml | ||
| CLAUDE.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| Directory.Build.props | ||
| FAQ.md | ||
| GEMINI.md | ||
| global.json | ||
| LICENSE | ||
| ModernUO.slnx | ||
| publish.cmd | ||
| publish.ps1 | ||
| publish.sh | ||
| README.md | ||
| rider-settings.zip | ||
| Rules.ruleset | ||
| SPONSORS.md | ||
| stylecop.json | ||
| THIRD-PARTY-NOTICES | ||
| version.json | ||
ModernUO

Ultima Online Server Emulator for the modern era!
Requirements
Supported Operating Systems
Required Frameworks
All Operating Systems
Windows
Development
Supported IDEs
Getting Started
- Install prerequisite requirements
- Clone this repository (or download the latest):
git clone https://github.com/modernuo/ModernUO.git
- Open
ModernUO.slnto start developing
Building/Publishing
Interactive Mode (Recommended for new users)
Run ./publish.cmd (Windows) or ./publish.sh (Linux/macOS) with no arguments to launch the guided build tool. It will:
- Check prerequisites (.NET SDK, native libraries)
- Walk you through configuration and platform selection
- Build and publish the server to the
Distributiondirectory - Show deployment instructions for cross-compiled builds
Command Line
./publish.cmd [release|debug] [os] [arch]
os- Supported operating systemsarchx64- Intel/AMD 64-bitarm64- ARM 64-bit
Linux Prerequisites
Fedora, CentOS, RHEL, etc
dnf upgrade --refresh -y
# CentOS does not come with EPEL enabled
dnf install -y epel-release epel-next-release
dnf install -y findutils libicu libdeflate-devel zstd libargon2-devel liburing-devel
Ubuntu, Debian, etc
apt-get update -y
apt-get install -y libicu-dev libdeflate-dev zstd libargon2-dev liburing-dev
OSX Requirements
brew install icu4c libdeflate zstd argon2
Running the Server
- Follow the publish instructions
- The
Distributiondirectory is portable — copy it to your production server for deployment - Run
ModernUO.exeordotnet ModernUO.dllfrom theDistributiondirectory - On first run, the server will prompt you to configure game data file locations
Troubleshooting / FAQ
- See FAQ
Want to sponsor?
Thank you for supporting us! You can find out how by visiting the sponsors page.
Collaborators
Thanks
- RunUO Team & Community
- Voxpire, the ServUO Team & Community
- Karasho, Jaedan and the ClassicUO Community
Development Tools & Plugins provided with ♥ by
Code Signing Policy
Free code signing provided by SignPath.io, certificate by SignPath Foundation.
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it
Teams & Roles
Approvers & Committers: Development Team