Changes between Version 2 and Version 3 of SC2ReplayFormat


Ignore:
Timestamp:
Mar 31, 2010, 7:38:40 PM (11 years ago)
Author:
mseifert
Comment:

Added information on actions

Legend:

Unmodified
Added
Removed
Modified
  • SC2ReplayFormat

    v2 v3  
    4242||0x00||bytes9||Unknown. Probably something that has to do with the map.||
    4343||0x09||string||Some kind of checksum or hash. Usually 76 bytes long (75 without the length indicator of the string).||
     44
     45=== replay.game.events ===
     46This file stores all actions the players have ordered.
     47
     48An action looks like the following:
     49||'''Offset'''||'''Type'''||'''Description'''||
     50||0x00||time information||Gives information about the time offset of an action to the preceding action. Equivalent to the time information in the chat log.||
     51||time information||byte||Unknown.||
     52||time information + 1||byte||Action code.||
     53||time information + 2||bytesX||Bytes storing information on the respective action. The size seems to depend on the action code.||
     54
     55Action codes:
     56||'''Action code'''||'''In-game action'''||
     57||0x0B||Usage of any kind of ability or assignment of orders. Includes constructing buildings, training units, moving, attacking, gathering resources, and so on.||
     58||0x81||Movement of the screen.||
     59||0xAC||Selection or deselection.||
     60
     61To distinguish abilities or orders, a 3 byte identifier for each order is used. These 3 bytes will be called the "ability code":
     62||'''Ability code'''||'''Ability'''||
     63||0x020400||Stop||
     64||0x020600||Move||
     65||0x020601||Patrol||
     66||0x020602||Hold position||
     67||0x020900||Attack||
     68||0x050500||Set way point||
     69||0x060400||Gather||
     70||0x060401||Return cargo||
     71||0x060401||Cancel||
     72||0x060D01||Build Supply Depot||
     73||0x060D02||Build Refinery||
     74||0x080700||Train SCV||
     75
     76Simply right clicking on an object in order to attack, gather resources, or move, depending on what is the default action, occupies a special ability code:
     77||'''Ability code'''||'''Ability'''||
     78||0xFFFF0F||Right click action||