DemoFile.Game.Cs
0.27.1
dotnet add package DemoFile.Game.Cs --version 0.27.1
NuGet\Install-Package DemoFile.Game.Cs -Version 0.27.1
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="DemoFile.Game.Cs" Version="0.27.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DemoFile.Game.Cs --version 0.27.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DemoFile.Game.Cs, 0.27.1"
#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.
// Install DemoFile.Game.Cs as a Cake Addin #addin nuget:?package=DemoFile.Game.Cs&version=0.27.1 // Install DemoFile.Game.Cs as a Cake Tool #tool nuget:?package=DemoFile.Game.Cs&version=0.27.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DemoFile.Game.Cs
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.
[!IMPORTANT] This
DemoFile.Game.Cs
package provides support for parsing Counter-Strike 2 demos. See DemoFile on NuGet for more information about the base library.
Features
Feature | Availability |
---|---|
CSTV / GOTV demos | ✅ Full support |
POV demos | ✅ Full support |
HTTP broadcasts | ✅ Full support |
Game events (e.g. player_death ) |
✅ Full support |
Entity updates (player positions, grenades, 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 CsDemoParser();
demo.Source1GameEvents.PlayerDeath += e =>
{
Console.WriteLine($"{e.Attacker?.PlayerName} [{e.Weapon}] {e.Player?.PlayerName}");
};
var reader = DemoFileReader.Create(demo, File.OpenRead(path));
await reader.ReadAllAsync();
Console.WriteLine("\nFinished!");
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- DemoFile (>= 0.27.1)
- Google.Protobuf (>= 3.22.1)
- NerdBank.GitVersioning (>= 3.6.133)
- protobuf-net (>= 3.2.16)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on DemoFile.Game.Cs:
Repository | Stars |
---|---|
saul/demofile-net
Blazing fast cross-platform demo parser library for Counter-Strike 2 and Valve's Deadlock, written in C#.
|
Version | Downloads | Last updated |
---|---|---|
0.27.1 | 100 | 11/2/2024 |
0.26.1 | 94 | 10/29/2024 |
0.25.1 | 266 | 10/12/2024 |
0.24.1 | 100 | 10/7/2024 |
0.23.1 | 106 | 9/27/2024 |
0.22.3 | 90 | 9/23/2024 |
0.22.1 | 93 | 9/22/2024 |
0.21.1 | 123 | 9/14/2024 |
0.21.1-g27b712d66f | 93 | 9/14/2024 |
0.0.0-g27b712d66f | 86 | 9/14/2024 |