Moongate.Network.Packets 0.22.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Moongate.Network.Packets --version 0.22.0
                    
NuGet\Install-Package Moongate.Network.Packets -Version 0.22.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Moongate.Network.Packets" Version="0.22.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Moongate.Network.Packets" Version="0.22.0" />
                    
Directory.Packages.props
<PackageReference Include="Moongate.Network.Packets" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Moongate.Network.Packets --version 0.22.0
                    
#r "nuget: Moongate.Network.Packets, 0.22.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Moongate.Network.Packets@0.22.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Moongate.Network.Packets&version=0.22.0
                    
Install as a Cake Addin
#tool nuget:?package=Moongate.Network.Packets&version=0.22.0
                    
Install as a Cake Tool

Moongate.Network.Packets

Ultima Online packet definitions, span-based serialization, and packet registration for Moongate.

Installation

Requires .NET 11. Use the package version available in your configured NuGet feed.

dotnet add package Moongate.Network.Packets

Features

  • An initial packet set targeting ClassicUO 7.x, including login, control, ping, and supported-feature messages.
  • A packet registry using packet metadata for registration and opcode lookup.
  • Span-based readers and writers for packet serialization.
  • Encoding and decoding APIs that can be tested independently of a TCP server.

Example

Register the ping packet, freeze the registry, and decode an encoded frame:

using Moongate.Network.Packets.General;
using Moongate.Network.Packets.Registry;
using Moongate.Network.Packets.Serialization;

var registry = new PacketRegistry();
registry.RegisterIncoming<PingPacket>();
registry.Freeze();

var bytes = PacketCodec.Encode(new PingPacket(42));

if (!registry.TryDecode(bytes, out var packet, out var opCode)
    || packet is not PingPacket ping)
{
    throw new InvalidOperationException($"Could not decode opcode {opCode:X2}.");
}

Console.WriteLine($"{opCode:X2}:{ping.Sequence}");

See Packets and handlers for the complete built-in opcode table, a custom packet, byte-level tests and host integration.

Dependencies and scope

This package depends on Moongate.Core. It does not require Moongate.Network to encode or decode packets.

The packet set is a subset of the UO protocol. Decoding expects a complete packet frame; buffering and framing a TCP stream belong to the transport integration. Packet handlers and game-loop dispatch belong to the server integration.

License and source

Licensed under AGPL-3.0-or-later. See the source repository and license.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Moongate.Network.Packets:

Package Downloads
Moongate.Server.Core

Plugin-facing server contracts, events, registries, and dependency injection extensions for Moongate.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.24.0 42 11/28/2026
0.23.0 50 11/27/2026
0.22.0 59 11/27/2026
0.21.0 687 11/3/2026
0.20.1 557 10/22/2026
0.20.0 118 10/22/2026
0.19.0 405 10/16/2026
0.18.0 125 10/16/2026
0.17.0 182 10/14/2026
0.16.0 146 10/9/2026
0.15.0 128 10/7/2026
0.14.0 141 10/4/2026
0.13.0 136 10/3/2026
0.12.0 143 10/2/2026
0.11.0 140 9/30/2026
0.10.0 141 9/30/2026
0.9.0 149 9/27/2026
0.8.0 132 9/26/2026
0.7.0 124 9/24/2026
0.6.0 136 9/21/2026
Loading failed