Nodsoft.WowsReplaysUnpack 0.5.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Nodsoft.WowsReplaysUnpack --version 0.5.1
NuGet\Install-Package Nodsoft.WowsReplaysUnpack -Version 0.5.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="Nodsoft.WowsReplaysUnpack" Version="0.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nodsoft.WowsReplaysUnpack --version 0.5.1
#r "nuget: Nodsoft.WowsReplaysUnpack, 0.5.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 Nodsoft.WowsReplaysUnpack as a Cake Addin
#addin nuget:?package=Nodsoft.WowsReplaysUnpack&version=0.5.1

// Install Nodsoft.WowsReplaysUnpack as a Cake Tool
#tool nuget:?package=Nodsoft.WowsReplaysUnpack&version=0.5.1

<img align="right" src="Nodsoft.WowsReplaysUnpack/logo.png" alt="logo" width="200"/>

WoWS-ReplaysUnpack

A C# file unpacking library for World of Warships Replays, inspired by Monstrofil's replays_unpack.

Information before using the library

The library supports only World of Warships replays starting with version 0.10.10. Trying to use an older replay can result in unexpected errors when processing the replay.

How to use

To analyze a replay, simply use the ReplayUnpacker:

ReplayUnpacker unpacker = new();
using Stream replayFileStream = File.OpenRead("<Path to replay file>");
ReplayRaw unpackedReplay = unpacker.UnpackReplay(replayFileStream);

An instance of ReplayRaw contains a list of all players involved in the current match and a list of all player chat messages.

Information about the current configuration of a player's ship is available using the ShipData property of a ReplayPlayer from the extracted replay data. Note that this property is a lazy property, meaning that it is constructed when it is accessed for the first time. Construction of this property can take a bit longer than usual due to it having to decode serialized data. To avoid impacting the replay unpack performance due to a feature that is not always necessary, this property is not created when initializing the player object itself.

Advanced use

To use a custom replay reader implementation, provide the replay unpacker with an implementation of the IReplayParserProvider interface.

ReplayUnpacker unpacker = new();
IReplayParserProvider provider = new MyCustomReplayParserProvider();
using Stream replayFileStream = File.OpenRead("<Path to replay file>");
ReplayRaw unpackedReplay = unpacker.UnpackReplay(replayFileStream, provider);
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nodsoft.WowsReplaysUnpack:

Package Downloads
Nodsoft.WowsReplaysUnpack.ExtendedData

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.29-alpha-g987beebb2b 133 8/18/2023
2.0.26-alpha-g4e3dff99ff 100 8/17/2023
2.0.22-alpha-g89b1099182 155 7/23/2023
2.0.16-alpha-gfaded6094c 140 7/22/2023
2.0.15-alpha-g38541b6d25 160 6/22/2023
2.0.14-alpha-g0002f59a1d 131 5/25/2023
2.0.13-alpha-g90583dc2c5 308 4/20/2023
2.0.12-alpha-g4b27da27ea 138 4/20/2023
2.0.11-alpha-g92d3716eff 231 3/23/2023
2.0.10-alpha-g3e240c8566 199 2/16/2023
2.0.9-alpha-g02ef2eaf60 150 1/19/2023
2.0.8-alpha-g2a9a24924f 136 12/12/2022
2.0.6-alpha-gcbcb7f6a80 144 12/8/2022
2.0.5-alpha-g7ea078df7a 180 11/19/2022
2.0.4 103 4/11/2024
2.0.3 120 3/14/2024
2.0.3-alpha-g12f645426c 211 10/6/2022
2.0.2 249 2/8/2024
2.0.2-alpha-g6916206934 211 9/24/2022
2.0.1 189 1/23/2024
2.0.1-g7a94259f07 77 2/7/2024
2.0.1-alpha-g920402ee9e 155 9/9/2022
1.1.26 82 1/23/2024
1.1.25-g2832215038 74 1/23/2024
1.1.24-g30ae630d7d 87 1/11/2024
1.1.23-g00d5114060 84 12/7/2023
1.1.22-gabca2f1262 61 12/7/2023
1.1.21-g89971f3a87 56 11/26/2023
1.1.20-g5b1471f83c 61 11/26/2023
1.1.19-g21acddabf5 68 11/23/2023
1.1.17-gfc59a0dbe8 82 11/9/2023
1.1.16-g03f94d799b 77 10/19/2023
1.1.11 244 10/12/2023
1.1.10-gbaec701b3f 80 10/12/2023
1.1.9-g60c84b7c31 77 9/14/2023
1.1.8-g3fc29955fd 81 9/14/2023
1.1.7 136 8/21/2023
1.1.4 167 7/21/2023
1.1.3 138 7/21/2023
1.1.2 159 7/6/2023
1.0.11 581 9/8/2022
1.0.11-gaf2ec4da01 146 9/9/2022
1.0.10 581 9/8/2022
1.0.10-gf865b963c8 170 9/8/2022
1.0.9-pre-g35415cdef7 161 9/8/2022
1.0.8-pre-g8097eaf5af 179 9/8/2022
1.0.7-pre-gba54b08e7a 157 9/8/2022
1.0.5-pre-gb7fb7564ee 174 8/5/2022
1.0.4-pre-g1025b3c13d 157 8/5/2022
1.0.3-pre-g0b9499d17c 163 7/26/2022
1.0.0 605 7/25/2022
1.0.0-pre1 173 7/23/2022
0.5.3 449 7/16/2022
0.5.2 598 5/27/2022
0.5.1 459 3/18/2022
0.5.0 543 1/19/2022
0.5.0-pre1 252 12/9/2021
0.4.0 318 12/5/2021
0.3.0 960 12/1/2021
0.2.0-dev1 1,155 11/28/2021