![]() |
VOOZH | about |
dotnet add package War3Net.CodeAnalysis.Decompilers --version 6.0.2
NuGet\Install-Package War3Net.CodeAnalysis.Decompilers -Version 6.0.2
<PackageReference Include="War3Net.CodeAnalysis.Decompilers" Version="6.0.2" />
<PackageVersion Include="War3Net.CodeAnalysis.Decompilers" Version="6.0.2" />Directory.Packages.props
<PackageReference Include="War3Net.CodeAnalysis.Decompilers" />Project file
paket add War3Net.CodeAnalysis.Decompilers --version 6.0.2
#r "nuget: War3Net.CodeAnalysis.Decompilers, 6.0.2"
#:package War3Net.CodeAnalysis.Decompilers@6.0.2
#addin nuget:?package=War3Net.CodeAnalysis.Decompilers&version=6.0.2Install as a Cake Addin
#tool nuget:?package=War3Net.CodeAnalysis.Decompilers&version=6.0.2Install as a Cake Tool
War3Net.CodeAnalysis.Decompilers is a library for regenerating Warcraft III map data files from JASS scripts. It parses the JASS script from a map and extracts structured map data that can be used to reconstruct or analyze map components. It is part of the War3Net modding library.
using War3Net.Build;
using War3Net.Build.Audio;
using War3Net.CodeAnalysis.Decompilers;
// Load a map with its script
var map = Map.Open("path/to/map.w3x");
// Create the decompiler
var decompiler = new JassScriptDecompiler(map);
// Decompile sounds
if (decompiler.TryDecompileMapSounds(MapSoundsFormatVersion.V3, out var sounds))
{
foreach (var sound in sounds.Sounds)
{
Console.WriteLine($"Sound: {sound.Name}, File: {sound.FilePath}");
}
}
using War3Net.Build;
using War3Net.Build.Script;
using War3Net.CodeAnalysis.Decompilers;
var map = Map.Open("path/to/map.w3x");
var decompiler = new JassScriptDecompiler(map);
if (decompiler.TryDecompileMapTriggers(
MapTriggersFormatVersion.V7,
MapTriggersSubVersion.V4,
out var triggers))
{
foreach (var variable in triggers.Variables)
{
Console.WriteLine($"Variable: {variable.Name} ({variable.Type})");
}
}
using War3Net.Build;
using War3Net.Build.Environment;
using War3Net.CodeAnalysis.Decompilers;
var map = Map.Open("path/to/map.w3x");
var decompiler = new JassScriptDecompiler(map);
// Decompile regions
if (decompiler.TryDecompileMapRegions(MapRegionsFormatVersion.V5, out var regions))
{
foreach (var region in regions.Regions)
{
Console.WriteLine($"Region: {region.Name} at ({region.CenterX}, {region.CenterY})");
}
}
// Decompile cameras
if (decompiler.TryDecompileMapCameras(MapCamerasFormatVersion.V0, useNewFormat: false, out var cameras))
{
foreach (var camera in cameras.Cameras)
{
Console.WriteLine($"Camera: {camera.Name}, Distance: {camera.TargetDistance}");
}
}
using War3Net.Build;
using War3Net.Build.Widget;
using War3Net.CodeAnalysis.Decompilers;
var map = Map.Open("path/to/map.w3x");
var decompiler = new JassScriptDecompiler(map);
if (decompiler.TryDecompileMapUnits(
MapWidgetsFormatVersion.V8,
MapWidgetsSubVersion.V11,
useNewFormat: false,
out var units))
{
foreach (var unit in units.Units)
{
Console.WriteLine($"Unit at ({unit.Position.X}, {unit.Position.Y})");
}
}
The main types provided by this library are:
War3Net.CodeAnalysis.Decompilers.JassScriptDecompiler - Primary class for decompiling JASS scripts back into map data structuresWar3Net.CodeAnalysis.Decompilers is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
This README was generated with the assistance of AI and may contain inaccuracies. Please verify the information and consult the source code for authoritative details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.2 | 147 | 3/1/2026 |
| 6.0.1 | 147 | 2/1/2026 |
| 6.0.0 | 133 | 1/25/2026 |
| 5.8.2 | 216 | 9/27/2025 |
| 5.8.1 | 210 | 9/12/2025 |
| 5.8.0 | 206 | 9/6/2025 |
| 5.7.1 | 628 | 1/19/2023 |
| 5.7.0 | 446 | 1/8/2023 |
| 5.6.1 | 467 | 1/7/2023 |
| 5.6.0 | 466 | 12/20/2022 |
| 5.5.5 | 496 | 11/13/2022 |
| 5.5.3 | 542 | 10/29/2022 |
| 5.5.2 | 548 | 10/25/2022 |
| 5.5.0 | 582 | 8/20/2022 |
| 5.4.5 | 608 | 5/27/2022 |
| 5.4.2 | 614 | 2/18/2022 |
| 5.4.1 | 593 | 2/13/2022 |
| 5.4.0 | 586 | 2/13/2022 |