command
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Jan 23, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
GoWarcraft3/w3gdump
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).
Documentation
¶
w3gdump is a tool that decodes and dumps w3g files.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.