L4D2PlayStats 1.0.0.56

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

L4D2 Play Stats

Allows extracting existing data from statistics files generated by the l4d2_playstats.smx plugin.

Build Status NuGet

Installation

dotnet add package L4D2PlayStats

Enabling statistics logging on the Left 4 Dead 2 server.

To enable statistics, you must have the l4d2_playstats.smx plugin installed on the server and add the following parameters to the configuration file:

confogl_addcvar sm_stats_writestats 1
-- or
sm_cvar sm_stats_writestats 1

See more details at: https://github.com/SirPlease/L4D2-Competitive-Rework

How to use

Just instantiate the Statistics class passing the content of the statistics file as a parameter

var content = @"[Gameround:11]
11;2023-02-04;03:13;4;VanillaMod v2.8;c8m1_apartment;

[RoundHalf:0]
0;A;0;3;0;0;145;16;4721;20;1;0;4;1;36;1675480206;1675480402;0;0;1675480319;1675480402;

[Progress:A]
0;A;0;400;11629.93;7333.72;9998.64;9998.64;7277.55;8428.84;8428.84;7926.63;9998.64;

[Players:A]:
1;8;STEAM_1:0:15152893;0;58;0;0;0;20;0;0;2;0;0;2;0;0;0;16;0;0;0;0;0;0;20;4;2;0;1230;0;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;84;15;8;0;0;0;0;0;0;0;13;0;2;0;0;0;0;0;7;0;0;0;0;1;15;8;0;0;1675480206;1675480402;1675480206;1675480359;1675480206;1675480324;
2;11;STEAM_1:1:57980687;0;418;0;0;0;173;0;0;11;0;0;5;0;0;0;46;0;0;0;23;0;0;44;17;6;3;1511;698;1;0;0;0;0;0;0;1;0;0;0;0;0;0;0;117;10;16;0;532;119;0;0;0;0;10;0;0;0;0;0;0;0;10;0;2;0;0;4;10;16;5;3136;1675480206;1675480402;1675480206;1675480402;1675480206;1675480402;
.....
";

var statistics = new Statistics(content);

Small sample of the values present in the Statistics class.

{
    "GameRound": {
        "Round": 11,
        "When": "2023-02-04T03:13:00",
        "TeamSize": 4,
        "ConfigurationName": "VanillaMod v2.8",
        "MapName": "c8m1_apartment"
    },
    "Halves": [
        {
            "RoundHalf": {
                "Round": 0,
                "Team": "A",
                "Restarts": 0,
                "PillsUsed": 3,
                "KitsUsed": 0,
                "DefibsUsed": 0,
                "Common": 145,
                "SiKilled": 16,
                "SiDamage": 4721,
                ...
                "StartTimeTank": "2023-02-04T03:11:59Z",
                "StopTimeTank": "2023-02-04T03:13:22Z"
            },
            ...
        },
        ...
    ],
   ...
}
Product Compatible and additional computed target framework versions.
.NET 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.

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.0.0.56 88 3/30/2026
1.0.0.55 90 3/13/2026
1.0.0.54 112 2/13/2026
1.0.0.53 785 12/3/2025
1.0.0.52 663 12/3/2025
1.0.0.51 669 12/3/2025
1.0.0.48 263 6/16/2025
1.0.0.44 256 5/20/2025
1.0.0.43 221 5/16/2025
1.0.0.42 228 5/16/2025
1.0.0.41 230 5/16/2025
1.0.0.40 269 5/15/2025
1.0.0.39 275 5/15/2025
1.0.0.38 183 11/14/2024
1.0.0.37 273 7/1/2024
1.0.0.35 277 6/14/2023
1.0.0.34 403 2/21/2023
1.0.0.33 361 2/19/2023
1.0.0.32 354 2/19/2023
1.0.0.31 361 2/19/2023
Loading failed