Skip to content

Commit

Permalink
fixed parsing of scenario matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Void / aoe2insights.com committed Jul 7, 2023
1 parent fe6b020 commit 2671e1a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mgz/fast/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ def parse_scenario(data, num_players, version, save):
"""Parse scenario section."""
data.read(4455)
if version is Version.DE:
data.read(128)
data.read(102)
scenario_filename = aoc_string(data)
data.read(24)
instructions = aoc_string(data)
for _ in range(0, 9):
aoc_string(data)
data.read(78)
for _ in range(0, 16):
aoc_string(data)
Expand Down Expand Up @@ -278,7 +278,8 @@ def parse_scenario(data, num_players, version, save):
return dict(
map_id=map_id,
difficulty_id=difficulty_id,
instructions=instructions
instructions=instructions,
scenario_filename=scenario_filename
)


Expand Down

0 comments on commit 2671e1a

Please sign in to comment.