Skip to content

Commit f11b846

Browse files
merge
2 parents 10d9bca + e81febf commit f11b846

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

mgz/header/de.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"shared_exploration"/Flag,
6666
"team_positions"/Flag,
6767
If(lambda ctx: find_save_version(ctx) >= 13.34, Bytes(8)),
68-
If(lambda ctx: find_save_version(ctx) >= 25.06, Bytes(1)),
68+
If(lambda ctx: find_save_version(ctx) >= 25.06, Bytes(1)), # maybe handicap
6969
separator,
7070
"players"/Array(8, Struct(
7171
"dlc_id"/Int32ul,
@@ -88,7 +88,7 @@
8888
"hd_dm_elo"/Int32ul,
8989
"animated_destruction_enabled"/Flag,
9090
"custom_ai"/Flag,
91-
If(lambda ctx: find_save_version(ctx) >= 25.06, Bytes(8)),
91+
If(lambda ctx: find_save_version(ctx) >= 25.06, "unk"/Bytes(8)), # maybe handicap related?
9292
)),
9393
"fog_of_war"/Flag,
9494
"cheat_notifications"/Flag,
@@ -100,7 +100,7 @@
100100
"strings"/Array(23,
101101
Struct(
102102
"string"/de_string,
103-
"x"/RepeatUntil(lambda x, lst, ctx: lst[-1] not in [3, 21, 23, 42, 44, 45, 46, 47], Int32ul)
103+
RepeatUntil(lambda x, lst, ctx: lst[-1] not in [3, 21, 23, 42, 44, 45, 46, 47], Int32ul)
104104
)
105105
),
106106
"strategic_numbers"/Array(59, Int32sl),

mgz/header/scenario.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@
140140
Padding(4),
141141
IfThenElse(lambda ctx: ctx._._.version == Version.DE,
142142
Struct(
143-
If(lambda ctx: find_save_version(ctx) < 13.34, Find(b'\x9a\x99\x99\x99\x99\x99\x01\x40', None)),
144-
If(lambda ctx: 25.06 > find_save_version(ctx) >= 13.34, Find(b'\x33\x33\x33\x33\x33\x33\x03\x40', None)),
145-
If(lambda ctx: find_save_version(ctx) >= 25.06, Find(b'\x00\x00\x00\x00\x00\x00\x04\x40', None)) #Bytes(3627))
143+
If(lambda ctx: find_save_version(ctx) < 13.34, Find(b'\x9a\x99\x99\x99\x99\x99\x01\x40', None)), # double: 2.2
144+
If(lambda ctx: 25.06 > find_save_version(ctx) >= 13.34, Find(b'\x33\x33\x33\x33\x33\x33\x03\x40', None)), # double: 2.4
145+
If(lambda ctx: find_save_version(ctx) >= 25.06, Find(b'\x00\x00\x00\x00\x00\x00\x04\x40', None)) # double: 2.5
146146
),
147-
"end_of_game_settings"/Find(b'\x9a\x99\x99\x99\x99\x99\xf9\\x3f', None)
147+
"end_of_game_settings"/Find(b'\x9a\x99\x99\x99\x99\x99\xf9\\x3f', None) # double: 1.6
148148
)
149149
)
150150

mgz/model/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Summary compatibiilty."""
1+
"""Summary compatibility."""
22
from collections import defaultdict
33
from mgz.model import parse_match
44
from mgz.common.diplomacy import get_diplomacy_type

0 commit comments

Comments
 (0)