{"id":44515619,"url":"https://github.com/moongate-community/moongate","last_synced_at":"2026-02-13T17:06:37.756Z","repository":{"id":298909131,"uuid":"997409667","full_name":"moongate-community/moongate","owner":"moongate-community","description":"Moongate is modern Ultima Online server emulator built from scratch in C# with AOT compilation for high performance and nostalgic gameplay experience.","archived":false,"fork":false,"pushed_at":"2025-08-12T10:32:58.000Z","size":32755,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-12T12:33:35.969Z","etag":null,"topics":["high-performance","mmo","mmorpg","mmorpg-server","modernuo","retro","rpg","runuo","servuo","ultimaonline","uox3"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moongate-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-06T13:33:12.000Z","updated_at":"2025-08-12T10:33:01.000Z","dependencies_parsed_at":"2025-06-13T15:25:16.671Z","dependency_job_id":"26f226ea-2643-44f3-9a91-74823b987196","html_url":"https://github.com/moongate-community/moongate","commit_stats":null,"previous_names":["moongate-community/moongate"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/moongate-community/moongate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moongate-community%2Fmoongate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moongate-community%2Fmoongate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moongate-community%2Fmoongate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moongate-community%2Fmoongate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moongate-community","download_url":"https://codeload.github.com/moongate-community/moongate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moongate-community%2Fmoongate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29412677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["high-performance","mmo","mmorpg","mmorpg-server","modernuo","retro","rpg","runuo","servuo","ultimaonline","uox3"],"created_at":"2026-02-13T17:06:37.154Z","updated_at":"2026-02-13T17:06:37.748Z","avatar_url":"https://github.com/moongate-community.png","language":"C#","funding_links":["https://www.patreon.com/MoongateServer"],"categories":[],"sub_categories":[],"readme":"![](./images/moongate_logo.png)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-.NET%209-blueviolet\" alt=\".NET 9\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/AOT-enabled-green\" alt=\"AOT Enabled\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/scripting-JavaScript-yellow\" alt=\"JavaScript Scripting\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-GPL--3.0-blue\" alt=\"License GPL-3.0\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/status-development-orange\" alt=\"Development Status\"\u003e\n\u003c/p\u003e\n\n```\n                                                   __\n /'\\_/`\\                                          /\\ \\__\n/\\      \\    ___     ___     ___      __      __  \\ \\ ,_\\    __\n\\ \\ \\__\\ \\  / __`\\  / __`\\ /' _ `\\  /'_ `\\  /'__`\\ \\ \\ \\/  /'__`\\\n \\ \\ \\_/\\ \\/\\ \\L\\ \\/\\ \\L\\ \\/\\ \\/\\ \\/\\ \\L\\ \\/\\ \\L\\.\\_\\ \\ \\_/\\  __/\n  \\ \\_\\\\ \\_\\ \\____/\\ \\____/\\ \\_\\ \\_\\ \\____ \\ \\__/.\\_\\\\ \\__\\ \\____\\\n   \\/_/ \\/_/\\/___/  \\/___/  \\/_/\\/_/\\/___L\\ \\/__/\\/_/ \\/__/\\/____/\n                                      /\\____/\n                                      \\_/__/\n\n              ++ New generation of Ultima Online server ++\n  !! Please support me on Patreon: https://www.patreon.com/MoongateServer  !!\n         Source code: https://github.com/moongate-community/moongate\n```\n\n## 📑 Table of Contents\n\n- [Overview](#overview)\n- [State of the Art](#-state-of-the-art)\n- [Vision \u0026 Philosophy](#vision--philosophy)\n- [Key Features](#key-features)\n- [Prerequisites](#prerequisites)\n- [Quick Start](#quick-start)\n- [Configuration](#configuration)\n- [JavaScript Scripting](#javascript-scripting)\n- [Networking \u0026 Protocol](#networking--protocol)\n- [Performance Benchmarks](#performance-benchmarks)\n- [Development](#development)\n- [Monitoring \u0026 Diagnostics](#monitoring--diagnostics)\n- [Roadmap](#roadmap)\n- [Community \u0026 Support](#community--support)\n- [Contributing](#contributing)\n- [License](#license)\n- [Acknowledgments](#acknowledgments)\n\n## Overview\n\nMoongate is a cutting-edge, ultra-high-performance Ultima Online server emulator built with .NET 9 and AOT (Ahead-of-Time) compilation. Designed specifically for the passionate UO community that still cherishes this legendary MMORPG, Moongate delivers exceptional performance and unprecedented customization capabilities through modern architecture and a powerful JavaScript scripting engine.\n\nOur mission is simple: create the **most performant and customizable UO server** ever built, giving dedicated players and server administrators the tools they deserve.\n\n## 🧭 State of the Art\n\n**Codename**: *\"It's not ModernUO with JS\"*\n\n\u003e Moongate is not a clone of ModernUO, RunUO, ServUO or any other emulator — and it doesn't aim to be. In fact, we owe a great deal of inspiration to these projects. Their legacy and technical achievements are invaluable, and this project wouldn’t exist without them. Thank you.\n\nMoongate is a personal journey — a way to study the internals of MMOs, experiment with high-performance .NET architecture, and explore advanced networking and scripting systems. It is **not** meant to replace existing servers or communities, but to learn, contribute, and share.\n\n### ✅ Milestone: *\"It's not ModernUO with JS\"*\n\nThe following features have been implemented in this phase:\n\n- ⚡ **Ultra-fast binary persistence** for game entities\n- 👤 **Character creation and deletion**\n- 🌍 **World segmentation into sectors** for spatial optimization\n- 🔐 **Command system with account-level permissions**\n- 🎒 **Item pickup and equipment handling**\n- 🧱 **Initial implementation of Megacliloc (tooltips)**\n- 🧳 **Backpack management**\n- 🧍 **Paperdoll system**\n\n\n## Overview\n\nMoongate is a cutting-edge, ultra-high-performance Ultima Online server emulator built with .NET 9 and AOT (Ahead-of-Time)\ncompilation. Designed specifically for the passionate UO community that still cherishes this legendary MMORPG, Moongate\ndelivers exceptional performance and unprecedented customization capabilities through modern architecture and a powerful\nJavaScript scripting engine.\n\nOur mission is simple: create the **most performant and customizable UO server** ever built, giving dedicated players and\nserver administrators the tools they deserve.\n\n## Vision \u0026 Philosophy\n\nWhile Ultima Online may have a smaller player base today, those who still play deserve nothing less than perfection. Moongate\nis built on these core principles:\n\n- **Performance Above All** - Leveraging .NET 9 AOT for maximum speed and efficiency\n- **JavaScript-Powered Customization** - Making server modification accessible to everyone\n- **Modern Architecture** - Clean, maintainable code built for the future\n- **Community-First** - Empowering server owners to create unique experiences\n- **Legacy Respect** - Honoring classic UO while enhancing it with modern technology\n\n## Key Features\n\n### 🚀 Extreme Performance\n\n- **AOT Compilation** - Faster startup, lower memory usage, predictable performance\n- **Zero-Allocation Paths** - Critical code optimized to avoid garbage collection pressure\n- **Asynchronous I/O** - High-throughput network operations with minimal overhead\n- **Priority-Based Event Loop** - Intelligent task scheduling inspired by classic emulators\n- **Memory Pool Management** - Efficient buffer reuse and memory management\n\n### 🔧 Advanced Architecture\n\n- **Modular Service Design** - Clean separation of concerns with dependency injection\n- **Event-Driven System** - Comprehensive event bus for loosely coupled components\n- **Pluggable Middleware** - Extensible packet processing pipeline\n- **Configuration Management** - Flexible JSON-based configuration system\n- **Comprehensive Logging** - Structured logging with Serilog including packet tracing\n\n### 🛠️ JavaScript Scripting Engine\n\n- **Jint Engine** - Full-featured JavaScript runtime with .NET interop\n- **Planned Hot-Reload Support** - Feature not yet implemented\n- **TypeScript Definitions** - Auto-generated type definitions for development\n- **Module System** - Organized script architecture with module support\n- **Rich API** - Extensive scripting interface for all game systems\n\n## Prerequisites\n\n- [.NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0)\n- Ultima Online Classic Client **version 7.x only** (officially supported)\n- 4GB RAM minimum (8GB recommended)\n- Visual Studio 2022 or JetBrains Rider for development\n\n## Quick Start\n\n### 🚀 Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/moongate-community/moongate.git\n   cd moongate\n   ```\n\n2. **Build the solution**\n   ```bash\n   dotnet restore\n   dotnet build\n   ```\n\n3. **Configure the server**\n   ```bash\n   # Edit the configuration to set your UO client path\n   nano moongate/moongate.json\n   ```\n\n4. **Run in development mode**\n   ```bash\n   dotnet run --project src/Moongate.Server\n   ```\n\n### ⚡ AOT Production Build\n\nFor maximum performance in production:\n\n```bash\n# Build with AOT compilation\n./scripts/run_aot.sh\n\n# Or manually:\ndotnet publish -r linux-x64 -o dist -p:PublishAot=true -c Release src/Moongate.Server\n./dist/Moongate.Server\n```\n\n### 🐳 Docker Deployment\n\n```bash\n# Build the Docker image\ndocker build -t moongate-server .\n\n# Run with volume mapping for configuration and data\ndocker run -d \\\n  -p 2593:2593 \\\n  -v ./moongate:/app/moongate \\\n  moongate-server\n```\n\n## Configuration\n\nMoongate uses a simple JSON configuration file:\n\n```json\n{\n  \"network\": {\n    \"port\": 2593,\n    \"logPackets\": false\n  },\n  \"webServer\": {\n    \"port\": 23853,\n    \"enabled\": true\n  },\n  \"name\": \"Moongate Shard\",\n  \"ultimaOnlineDirectory\": \"~/uo/\"\n}\n```\n\n## JavaScript Scripting\n\n### 🎯 Powerful Scripting Engine\n\nMoongate features a sophisticated JavaScript scripting system that makes customization accessible:\n\n```javascript\n// Auto-generated TypeScript definitions provide full intellisense\n/// \u003creference path=\"index.d.ts\" /\u003e\n\n// Example: Custom spell implementation (future implementation)\nclass Fireball {\n  constructor() {\n    this.manaCost = 15;\n    this.requiredSkill = 40;\n  }\n\n  cast(caster, target) {\n    if (!this.checkMana(caster)) {\n      logger.warn(`${caster.name} lacks mana for Fireball`);\n      return false;\n    }\n\n    const damage = this.calculateDamage(caster);\n    target.takeDamage(damage);\n\n    logger.info(`${caster.name} cast Fireball on ${target.name} for ${damage} damage`);\n    return true;\n  }\n\n  calculateDamage(caster) {\n    const magery = caster.skills.magery;\n    return Math.floor(10 + (magery / 10));\n  }\n}\n\n// Register with the spell system\nspells.register(new Fireball());\n```\n\n### 📚 Available Script Modules\n\n- **Logger Module** - Advanced logging capabilities\n- **Account Module** - User account management\n- *More modules are planned as development progresses*\n\n\n## Networking \u0026 Protocol\n\n### 📡 Advanced Network Stack\n\n- **Custom TCP Server** - Built from scratch for UO protocol optimization\n- **Packet Registration System** - Comprehensive UO packet handling (200+ packet types)\n- **Session Management** - Robust client state tracking\n- **Compression Support** - Optional packet compression for bandwidth optimization\n- **Middleware Pipeline** - Extensible packet processing chain\n\n### 🔍 Network Monitoring\n\nBuilt-in packet logging and network diagnostics:\n\n```bash\n# Enable packet logging in config\n\"LogPackets\": true\n\n# View real-time packet flow\ntail -f logs/network_packets_*.log\n```\n\n## Performance Benchmarks\n\n### AOT vs JIT Comparison\n\n| Metric               | JIT   | AOT    | Improvement |\n|----------------------|-------|--------|-------------|\n| Startup Time         | 2.3s  | 0.8s   | 65% faster  |\n| Memory Usage         | 145MB | 98MB   | 32% less    |\n| Packet Processing    | 85k/s | 120k/s | 41% faster  |\n| Steady State Latency | 2.1ms | 1.4ms  | 33% lower   |\n\n*Benchmarks run on Ubuntu 22.04 with Intel i7-12700K*\n\n## Development\n\n### 🛠️ Building from Source\n\n```bash\n# Restore dependencies\ndotnet restore\n\n# Build all projects\ndotnet build\n\n# Run tests\ndotnet test\n\n```\n\n### 🧪 Testing\n\nComprehensive test suite with NUnit:\n\n```bash\n# Run all tests\ndotnet test\n\n# Run with coverage\ndotnet test --collect:\"XPlat Code Coverage\"\n\n# Run specific test category\ndotnet test --filter Category=Network\n```\n\n### 📝 Code Style\n\n- **C# 12** with nullable reference types enabled\n- **XML Documentation** for all public APIs\n- **EditorConfig** for consistent formatting\n- **Modern async/await** patterns throughout\n- **SOLID principles** and clean architecture\n\n## Monitoring \u0026 Diagnostics\n\n### 📊 Built-in Metrics\n\n- **Performance Counters** - CPU, memory, network utilization\n- **Event Loop Metrics** - Tick timing and queue depths\n- **Script Execution Stats** - JavaScript performance monitoring\n- **Network Statistics** - Connection counts, packet rates, errors\n\n### 🔧 Administration\n\n```bash\n# Runtime commands via console\n\u003e status              # Show server status\n\u003e reload scripts      # (planned) hot-reload all scripts\n\u003e gc                  # Force garbage collection\n\u003e metrics             # Display performance metrics\n\u003e shutdown            # Graceful shutdown\n```\n\n## Roadmap\n\n### 🎯 Milestone 1: Basic Gameplay Foundation\n\n**Goal**: Get a player character visible and moving on the game world\n\n**Core Features**:\n\n- [ ] **Character Creation \u0026 Login** - Complete login flow with character selection\n- [ ] **Character Rendering** - Player character appears correctly in the world\n- [ ] **Basic Movement** - Walking, running, and direction changes\n- [ ] **Map Display** - Load and display Britannia map tiles\n- [ ] **Client Synchronization** - Proper character position updates\n- [ ] **Basic Networking** - Stable client-server communication\n- [ ] **Session Management** - Handle multiple concurrent players\n\n**Technical Requirements**:\n\n- [ ] UO packet handlers for movement (0x02, 0x22)\n- [ ] Map file loading (.mul files)\n- [ ] Character data persistence\n- [ ] Position validation and anti-cheat basics\n- [ ] Network packet compression\n\n**Success Criteria**:\nA player can log in, see their character on the map, and walk around the world with other players visible.\n\n---\n\n*Further milestones will be defined after completing the basic gameplay foundation.*\n\n## Community \u0026 Support\n\n- **Documentation** - [Full Wiki](https://github.com/moongate-community/moongate/wiki)\n- **Issues \u0026 Bugs** - [GitHub Issues](https://github.com/moongate-community/moongate/issues)\n- **Discord Community** - [Join our server](https://discord.gg/3HT7v95b)\n- **Support Development** - [Patreon](https://www.patreon.com/MoongateServer)\n\n## Contributing\n\n**🚀 We're actively looking for developers to join the Moongate project!** Whether you're passionate about UO, .NET\ndevelopment, or building high-performance systems, we'd love to have you on board.\n\nWe welcome contributors! Whether you're fixing bugs, adding features, or improving documentation:\n\n1. **Fork** the repository\n2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)\n3. **Commit** your changes (`git commit -m 'Add amazing feature'`)\n4. **Push** to the branch (`git push origin feature/amazing-feature`)\n5. **Open** a Pull Request\n\n### 🎨 Contribution Guidelines\n\n- Follow the existing code style and conventions\n- Add tests for new functionality\n- Update documentation as needed\n- Ensure all tests pass before submitting\n\n### 👥 Areas Where We Need Help\n\n- **Core UO Protocol Implementation** - Packet handlers, game mechanics\n- **JavaScript Engine Integration** - Scripting API development\n- **Performance Optimization** - AOT improvements, memory management\n- **Testing \u0026 QA** - Comprehensive test coverage\n- **Documentation** - Technical docs, tutorials, examples\n\n## License\n\nThis project is licensed under the **GNU General Public License v3.0** - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- **Ultima Online Community** - For keeping the dream alive after all these years\n- **ModernUO, RunUO, UOX3, and ServUO Teams** - For creating countless worlds and keeping UO servers alive throughout the\n  decades. Your dedication has preserved this incredible game for new generations of players\n- **.NET Team** - For the amazing AOT capabilities in .NET 9\n- **Jint Project** - For the excellent JavaScript engine\n\n---\n\n**⚡ Built for Speed. Designed for Community. Powered by Innovation.**\n\n*Moongate Server - Where classic meets cutting-edge*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoongate-community%2Fmoongate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoongate-community%2Fmoongate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoongate-community%2Fmoongate/lists"}