HeroProtocol 1.2.62833

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

// Install HeroProtocol as a Cake Tool
#tool nuget:?package=HeroProtocol&version=1.2.62833

hots.Academy.HeroProtocol

HeroProtocol is a c# conversion of Blizzard's Python HeroProtocol.

It is a standalone tool(library) to decode Heroes of the Storm replay files into usable data structures.

Currently HeroProtocol can decode these structures and events:

  • Replay Header
  • Game Details
  • Init Data
  • Attribute Events
  • Game Events
  • Message Events
  • Tracker Events
  • BattleTags

Note: This library is designed to reflect Blizzard's HeroProtocol and does not include any built in functions for analysis.

Key Features

  • Parse multiple data sources
    • String: Local Files using file path
    • Stream: Data from memory stream (Useful for cloud storage)
    • Byte[]: Sometimes you just need to read arrays
  • Memory Management
    • Filter what data structures you want to parse (Some data structures consume a lot of resources you may not want to process)
  • No temp files required
    • Read and parse everything in memory fore better performance and less access requirements
  • Futre Release Support (experimental)
    • Replays can be parsed even if its a future patch not supported yet.
    • Major changes may break a speccific data structure or event but won't prevent the remainder from parsing

How To Use

First you'll need to download and import the HeroProtocol Reference.

# Package Manager
PM> Install-Package HeroProtocol

# .NET CLI
> dotnet add package HeroProtocol

Once you have your pacakge installed you simply need to access your replay files and parse them.

Sample Code:

var heroesAccountsFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"Heroes of the Storm\Accounts");
var files = Directory.GetFiles(heroesAccountsFolder, "*.StormReplay", SearchOption.AllDirectories).Take(200);
foreach (var file in files)
{
	var exclusionList = new List<Replay.ReplayFiles>();
	//exclusionList.Add(HeroProtocol.Replay.ReplayFiles.MessageEvents);
	//exclusionList.Add(HeroProtocol.Replay.ReplayFiles.GameEvents);
	var ReplayData = new Replay(file,  exclusionList);
}

Credits

This software uses code from other packages.

  • Nmpq A fully-managed C# parser for Blizzard MPQ Archives
  • HeroProtocol Blizzard's heroprotocol is a reference Python library and standalone tool to decode Heroes of the Storm replay files into Python data structures.
Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.3.0.1 990 9/7/2018
1.2.64657 969 5/1/2018
1.2.62833 1,000 3/7/2018
1.2.61129.1 991 1/11/2018
1.2.61129 1,053 1/11/2018
1.2.60821 1,008 1/9/2018
1.2.60632 975 12/21/2017
1.2.60522 1,167 12/14/2017
1.2.60399 1,174 12/14/2017
1.2.60265 1,162 12/14/2017
1.2.60228 1,031 12/7/2017
1.2.59988 1,095 11/30/2017
1.2.59944 984 11/30/2017
1.2.59837 995 11/30/2017
1.2.59799 995 11/30/2017
1.2.59657 960 11/30/2017
1.2.59279 1,016 11/30/2017
1.2.59239 1,009 11/30/2017
1.2.58795 964 11/30/2017
1.2.58623.1 1,002 10/22/2017
1.2.58623 988 10/22/2017

Heroes of the Storm Replay Parsing Tool compatible with Base Build 62833. Latest version supports all previous builds. Also supports future builds with limited support.