Skip to content

coffenbacher/aoc-mgz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mgz

AoC MGZ parsing in Python 2.x.

Usage

  • header.parse_stream(file)
  • Loop: body.command.parse_stream(file)
  • Handle your own buffering

Caveats

  • Parses only portions useful for multiplayer recorded game analysis
  • UserPatch 1.4 only

Dependencies

Improvements Needed

  • Parse objects fully (units, buildings, etc)
  • Enum expansion
  • Support for previous versions
  • Resolve unknown bytes

Contribution

  • Pull requests & patches welcome

Resources

Output

General format of the file, noting interesting parts.

  • Header
    • Version
    • AI
    • Record properties
      • Speed
      • Number of players
      • View of
    • Map
      • Size
      • Tiles
    • State
      • Start time
      • Players[]
        • Name
        • Diplomacy
        • Civilization
        • Color
        • Camera
        • Objects[]
          • Type
          • ID
          • Position
    • Achievements[]
    • Scenario
      • Instructions
      • Victory condition
      • Map type
      • Difficulty
      • Triggers
    • Lobby
      • Teams
      • Reveal map
      • Population limit
      • Game type
      • Lock diplomacy
      • Pre-game chat
  • Body
    • Commands[]
      • Sync, Message, or Action

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 78.5%
  • Python 21.5%