Heroes.MpqTool 1.2.0

dotnet add package Heroes.MpqTool --version 1.2.0                
NuGet\Install-Package Heroes.MpqTool -Version 1.2.0                
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="Heroes.MpqTool" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Heroes.MpqTool --version 1.2.0                
#r "nuget: Heroes.MpqTool, 1.2.0"                
#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 Heroes.MpqTool as a Cake Addin
#addin nuget:?package=Heroes.MpqTool&version=1.2.0

// Install Heroes.MpqTool as a Cake Tool
#tool nuget:?package=Heroes.MpqTool&version=1.2.0                

Heroes Mpq Tool

Build and Test Release NuGet

Heroes Mpq Tool is a .NET library that is specifically designed for parsing Heroes of the Storm MPQ files.

Usage

To parse an mpq file, such as a .StormReplay or .s2ma file, use MpqHeroesFile.Open(string fileName) by providing the path to the file. It will provide a MpqHeroesArchive object to allow access to the files inside of the archive.

Example:

// parse the mpq file
using MpqHeroesArchive mpqHeroesArchive = MpqHeroesFile.Open("path/to/file");

// get an entry, such as replay.initData for a replay file
if (mpqHeroesArchive.TryGetEntry("replay.initData", out MpqHeroesArchiveEntry? mpqHeroesArchiveEntry))
{
    // decompress the entry and do something with it
    using Stream stream = mpqHeroesArchive.DecompressEntry(mpqHeroesArchiveEntry.Value);
}

Developing

To build and compile the code, it is recommended to use the latest version of Visual Studio 2022 or Visual Studio Code.

Another option is to use the dotnet CLI tools from the .NET 8.0 SDK.

License

MIT license

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Heroes.MpqTool:

Package Downloads
Heroes.StormReplayParser

Library to parse Heroes of the Storm replay files (.StormReplay).

Heroes.XmlData

Library to directly parse the Heroes of the Storm game data.

GitHub repositories

This package is not used by any popular GitHub repositories.