Follow-up to #2573. That change made SmallBOD.EndCombine require a player-crafted item, but it could only read provenance off BaseArmor, BaseWeapon and BaseClothing, because those are the only three classes that track it. Anything else a deed could request has no provenance at all, and `armor?.PlayerConstructed ?? clothing?.PlayerConstructed ?? weapon?...` had to enumerate the three by hand. The gap is structural rather than cosmetic: PlayerConstructed is set inside each base's OnCraft, so it can only ever reach types implementing ICraftable. Most craftables do not -- the tinkering catalogue alone is largely plain Item subclasses -- so a shard that adds any BOD, quest or vendor rule keyed on "was this actually crafted" has nothing to key on for those types. Provenance therefore moves to Item and is stamped centrally in CraftItem, immediately after the item is constructed and before the ICraftable dispatch, covering both the AOS and T2A craft paths. The three OnCraft overrides drop their now-redundant assignment and inherit Item's property, so no call site outside them changes -- Resmelt and SalvageBag still read `armor.PlayerConstructed` and still compile unchanged. SmallBOD's three-way null-coalescing chain collapses to `item.PlayerConstructed`. Storage costs nothing. Item's SaveFlag word is written as a fixed-width int, not an encoded one, so occupying bit 0x08000000 changes no record lengths. Items that are not player-constructed serialize byte for byte as before, and crafted ones differ by a single bit in a field already being written. Item itself needs no version bump: a bare SaveFlag bit is self-describing, so records written before it existed lack it and read false. The three content classes do need one, since removing a serialized field changes their layout: BaseArmor 9 -> 10 field 24 removed (it was last, nothing renumbered) BaseClothing 7 -> 8 field 7 removed, fields 8-10 shift down BaseWeapon 10 -> 11 field 26 removed, fields 27-30 shift down Each gets a MigrateFrom for its previous version that assigns the old bool to the inherited property, so existing crafted armour, weapons and clothing keep their provenance across the upgrade. Item.Deserialize runs first and reads the (absent) bit as false, then the migration overwrites it -- the generated Deserialize calls base.Deserialize before dispatching, so the ordering holds. BaseWeapon had no migrations file and gains one. Note the generator requires contiguous field ordering (SG3005), which is why the removals renumber rather than leave a hole. Verified: full solution builds with 0 errors and 0 warnings, 1516 tests pass. |
||
|---|---|---|
| .config | ||
| .github | ||
| branding | ||
| dev-docs | ||
| Distribution/Data | ||
| Projects | ||
| tools | ||
| .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
Hardware
| Use | vCPU | RAM | Storage |
|---|---|---|---|
| Development / test | 2 dedicated | 2 GB | SSD |
| Small live shard (< 50 concurrent) | 4 dedicated | 4 GB | NVMe |
| Medium (50–200) | 4–8 | 8 GB | NVMe |
| Large (200+) | 8+, high clock | 16 GB+ | NVMe |
Game logic is single-threaded, so single-core clock speed matters more than core count, and dedicated vCPU matters more than either — burstable or shared plans throttle once credits run out, which is the most common cause of unexplained lag spikes. Save size drives RAM more than player count does.
See dev-docs/server-requirements.md for the reasoning and tuning options.
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, AlmaLinux, Rocky, etc
dnf upgrade --refresh -y
# RHEL-family distributions (CentOS Stream, AlmaLinux, Rocky, RHEL) need CRB and EPEL enabled.
# Fedora skips this block.
dnf install -y dnf-plugins-core
dnf config-manager --set-enabled crb
dnf install -y epel-release
# Prerequisites
dnf install -y findutils libicu libdeflate libargon2 tzdata
Ubuntu, Debian, etc
apt-get update -y
# The ICU runtime package carries the ABI version in its name (libicu74, libicu76, …) and has no
# stable alias, so match it by pattern rather than pinning a release-specific name.
apt-get install -y '^libicu[0-9]+$' libdeflate0 libargon2-1 tzdata
Only the runtime libraries are needed — the -dev/-devel packages are not. Run
./build-tool --check-prereqs to check the current machine and print the exact packages your
release needs.
zstd is not listed because ZstdNet bundles libzstd for every platform, and liburing is not
listed because IORingGroup issues io_uring syscalls directly.
If the shard's configured time zone is a legacy alias such as US/Eastern, Debian 12 and Ubuntu
24.04 also need tzdata-legacy. See Platform Prerequisites
for what each dependency is for and what breaks without it.
OSX Requirements
brew install icu4c libdeflate 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