Skip to content

Latest commit

 

History

History

w3gdump

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

GoWarcraft3/w3gdump

Build Status Build status License: MPL 2.0

A tool that decodes and dumps w3g files.

Usage

./w3gdump [options] [path]

Flag Type Description
-sanitize string Dump cleaned up replay to this file (no chat, sane colors)
-stream bool Stream game to LAN
-header bool Decode header only
-json bool Print machine readable format

Example

➜ ./w3gdump "lastreplay.w3g"
Header         {GameVersion:{Product:W3XP Version:10030} BuildNumber:6061 DurationMS:640650 SinglePlayer:true}
GameInfo       {HostPlayer:{ID:1 Name:niels Race:RacePref(0x00) JoinCounter:0} GameName:Local Game GameSettings:{GameSettingFlags:SpeedFast|TerrainDefault|ObsNone|TeamsTogether|TeamsFixed MapWidth:116 MapHeight:84 MapXoro:2599102717 MapPath:Maps/FrozenThrone//(2)EchoIsles.w3x HostName:niels MapSha1:[]} GameFlags:Custom|SignedMap NumSlots:24 LanguageID:0}
SlotInfo       {SlotInfo:{Slots:[{PlayerID:1 DownloadStatus:100 SlotStatus:Occupied Computer:false Team:0 Color:0 Race:Random(Selectable) ComputerType:Normal Handicap:100} {PlayerID:0 DownloadStatus:100 SlotStatus:Occupied Computer:true Team:1 Color:1 Race:Random(Selectable) ComputerType:Normal Handicap:100}] RandomSeed:40053178 SlotLayout:Melee NumPlayers:2}}
CountDownStart {GameStart:{}}
CountDownEnd   {GameStart:{}}
GameStart      {}
TimeSlot       {TimeSlot:{Fragment:false TimeIncrementMS:100 Actions:[]}}
TimeSlotAck    {Checksum:[3 171 6 32]}

...

TimeSlot       {TimeSlot:{Fragment:false TimeIncrementMS:101 Actions:[]}}
TimeSlotAck    {Checksum:[69 44 194 113]}
PlayerLeft     {Local:true PlayerID:1 Reason:Lost Counter:4}

Download

Official binaries for tools are available. Simply download and run.

Note: additional dependencies may be required (see build instructions).