HeroProtocol 1.2.62833
See the version list below for details.
dotnet add package HeroProtocol --version 1.2.62833
NuGet\Install-Package HeroProtocol -Version 1.2.62833
<PackageReference Include="HeroProtocol" Version="1.2.62833" />
paket add HeroProtocol --version 1.2.62833
#r "nuget: HeroProtocol, 1.2.62833"
// 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 | Versions 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. |
-
- Nmpq (>= 1.0.1)
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 | 1,042 | 9/7/2018 |
1.2.64657 | 995 | 5/1/2018 |
1.2.62833 | 1,026 | 3/7/2018 |
1.2.61129.1 | 1,016 | 1/11/2018 |
1.2.61129 | 1,078 | 1/11/2018 |
1.2.60821 | 1,033 | 1/9/2018 |
1.2.60632 | 1,003 | 12/21/2017 |
1.2.60522 | 1,190 | 12/14/2017 |
1.2.60399 | 1,199 | 12/14/2017 |
1.2.60265 | 1,185 | 12/14/2017 |
1.2.60228 | 1,057 | 12/7/2017 |
1.2.59988 | 1,121 | 11/30/2017 |
1.2.59944 | 1,008 | 11/30/2017 |
1.2.59837 | 1,016 | 11/30/2017 |
1.2.59799 | 1,017 | 11/30/2017 |
1.2.59657 | 986 | 11/30/2017 |
1.2.59279 | 1,038 | 11/30/2017 |
1.2.59239 | 1,033 | 11/30/2017 |
1.2.58795 | 989 | 11/30/2017 |
1.2.58623.1 | 1,026 | 10/22/2017 |
1.2.58623 | 1,012 | 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.