DALib.Networking 1.1.0

dotnet add package DALib.Networking --version 1.1.0
                    
NuGet\Install-Package DALib.Networking -Version 1.1.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="DALib.Networking" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DALib.Networking" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DALib.Networking" />
                    
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 DALib.Networking --version 1.1.0
                    
#r "nuget: DALib.Networking, 1.1.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 DALib.Networking@1.1.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=DALib.Networking&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=DALib.Networking&version=1.1.0
                    
Install as a Cake Tool

DALib.Networking

DALib.Networking is a typed packet library for the DOOMVAS v1 network protocol — the protocol spoken by Dark Ages and related games — written in C# and targeting .NET 9 and .NET 10.

It has no dependencies beyond the base class library. No image stack, no native assets: a server, client, or proxy can speak the protocol without pulling in DALib's asset and rendering layers.

Install

dotnet add package DALib.Networking

What it does

Wire framing and codec

PacketCodec encodes typed packets into wire bytes and parses wire bytes back into typed packets, in both directions. One codec is built per process; it is stateless and shared. PacketSession pairs it with a single connection's crypto state so callers don't thread that state through every call.

Cryptography

CRC-16-CCITT, per-connection CryptoState (ordinals, key table, encryption seed), and the dialog obfuscation layer that wraps opcodes 0x39 and 0x3A. The encryption method is derived from the opcode — packets do not declare it, and the codec routes each one for you.

The opcode surface

Every client-to-server and server-to-client packet is modeled as a record with named fields, each documented against the retail client's own behavior. Discriminated bodies (dialogs, merchant menus, boards, exchanges, player shops) are modeled as an abstract base plus sealed per-form variants.

Extension points

Consumers register their own packet types by attribute and hand their assembly to the codec, which discovers them alongside the built-in ones:

var codec = new PacketCodec([typeof(IPacket).Assembly, typeof(MyPacket).Assembly]);

Usage

using DALib.Networking.Crypto;
using DALib.Networking.Packets.Client;
using DALib.Networking.Wire;

// One codec per process; one session per connection.
var codec = new PacketCodec();
var session = new PacketSession(codec, new CryptoState());

ReadOnlyMemory<byte> wire = session.EncodeClient(
    new ClientExitPacket { Signal = ExitSignal.Request });

IServerPacket packet = session.ParseServerPacket(received);

Relationship to DALib

DALib is the sibling library for the game's data formats — .dat archives, maps, palettes, sprites, and rendering. The two packages are independent: neither depends on the other, and they version separately. Networking lived inside DALib through its beta line and moved here at 1.0.0.

License

MIT, matching DALib. See LICENSE and CONTRIBUTORS.md.

(C) 2026 ERISCO, LLC.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 30 8/15/2026