Skip to content

Commit f4e7bd8

Browse files
add action 104
1 parent bafa450 commit f4e7bd8

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

mgz/fast/enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class Action(Enum):
5252
RESEARCH = 101
5353
BUILD = 102
5454
GAME = 103
55+
DE_UNKNOWN_104 = 104
5556
WALL = 105
5657
DELETE = 106
5758
ATTACK_GROUND = 107

mgz/header/scenario.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
scenario_header = "scenario_header"/Struct(
1515
"next_uid"/Int32ul,
1616
"scenario_version"/Float32l,
17-
If(lambda ctx: find_save_version(ctx) >= 61.5, Padding(8)),
18-
Array(16, "names"/String(256)),
19-
Array(16, "player_ids"/Int32ul),
17+
If(lambda ctx: find_save_version(ctx) >= 61.5, Struct(
18+
"player_capacity"/Int32ul,
19+
"gaia_player_index"/Int32ul
20+
)),
21+
Array(16, "tribe_names"/String(256)),
22+
Array(16, "player_names"/Int32ul),
2023
If(lambda ctx: find_save_version(ctx) >= 66.6, Array(16, "player_data"/Struct(
2124
"zeros"/Int32ul,
2225
"active"/Int32ul,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='mgz',
6-
version='1.8.41',
6+
version='1.8.42',
77
description='Parse Age of Empires 2 recorded games.',
88
url='https://github.com/happyleavesaoc/aoc-mgz/',
99
license='MIT',

0 commit comments

Comments
 (0)