Skip to content

Commit b20f97a

Browse files
author
Morgan
committed
Adding a campaign record and reworking scenario from header
1 parent 83c6f6e commit b20f97a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

mgz/header/scenario.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@
2727
)),
2828
Padding(5),
2929
"elapsed_time"/Float32l,
30-
"scenario_filename"/PascalString(lengthfield="scenario_filename_length"/Int16ul),
3130
If(lambda ctx: ctx._._.version == Version.DE, Struct(
31+
# We should try a record with a determined starting time to see if those byte are before elapsed_time or not
3232
Padding(64),
3333
# If(lambda ctx: find_save_version(ctx) >= 13.34, Padding(64)) 4*16 = 64
3434
))
35+
"scenario_filename"/PascalString(lengthfield="scenario_filename_length"/Int16ul),
3536
)
3637

3738
# Scenarios have intro text, a bitmap, and cinematics.
9.79 MB
Binary file not shown.

0 commit comments

Comments
 (0)