DemoFile.Game.Deadlock
v0.21.1-g27b712d66fPre-release
net7.0
DemoFile.Game.Deadlock is a blazing fast demo parser for Valve's Deadlock.
Published
Sep 14, 2024
2y ago
Total Downloads
6.8K
6,822
Install
dotnet add package DemoFile.Game.Deadlock --version 0.21.1-g27b712d66f
| Product | Versions |
|---|---|
| .NET |
README
DemoFile.Game.Deadlock 
DemoFile.Net is a blazing fast demo parser library for Source 2 games, written in C#. It is cross-platform, and can be used on Windows, Mac or Linux.
This
DemoFile.Game.Deadlockpackage provides support for parsing Deadlock demos. See DemoFile on NuGet for more information about the base library.
Features
| Feature | Availability |
|---|---|
| TV demos | ✅ Full support |
| POV demos | ✅ Full support |
| HTTP broadcasts | ⌛ Coming soon |
Game events (e.g. zipline_player_attached) |
✅ Full support |
| Entity updates (player positions, abilities, etc.) | ✅ Full support |
| Seeking forwards/backwards through the demo | ✅ Full support |
Examples
using DemoFile;
internal class Program
{
public static async Task Main(string[] args)
{
var path = args.SingleOrDefault() ?? throw new Exception("Expected a single argument: <path to .dem>");
var demo = new DeadlockDemoParser();
demo.Source1GameEvents.PlayerDeath += e =>
{
Console.WriteLine($"{e.Attacker?.PlayerName} [{e.Weapon}] {e.Player?.PlayerName}");
};
await demo.ReadAllAsync(File.OpenRead(path));
Console.WriteLine("\nFinished!");
}
}
Changes from Previous Version
No structural changes between v0.0.0-g27b712d66f and v0.21.1-g27b712d66f.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.