@@ -539,9 +539,14 @@ def __init__(self, contents):
539
539
540
540
if self .version >= 0x1f :
541
541
self .unknown3 = data .read_cstring ()
542
- self .unknown4 = data .read_uint32 ()
543
542
544
- self .unknown5 = data .read_uint32 ()
543
+ if self .version >= 0x26 :
544
+ self .unknown4 = data .read_cstring ()
545
+
546
+ if self .version >= 0x1f :
547
+ self .unknown5 = data .read_uint32 ()
548
+
549
+ self .unknown6 = data .read_uint32 ()
545
550
546
551
#: The type of fog of war used on the map
547
552
self .fog_type = data .read_cstring ()
@@ -575,7 +580,7 @@ def __init__(self, contents):
575
580
self .load_screen_path = data .read_cstring ()
576
581
577
582
#: Unknown string, usually empty
578
- self .unknown6 = data .read_bytes (data .read_uint16 ()).decode ('utf8' )
583
+ self .unknown7 = data .read_bytes (data .read_uint16 ()).decode ('utf8' )
579
584
580
585
#: Load screen image scaling strategy: 0 = normal, 1 = aspect scaling, 2 = stretch the image.
581
586
self .load_screen_scaling = data .read_uint32 ()
@@ -617,16 +622,16 @@ def __init__(self, contents):
617
622
#:
618
623
self .data_flags = data .read_uint32 ()
619
624
620
- self .unknown7 = data .read_uint32 ()
625
+ self .unknown8 = data .read_uint32 ()
621
626
622
627
if self .version >= 0x19 :
623
- self .unknown8 = data .read_bytes (8 )
628
+ self .unknown9 = data .read_bytes (8 )
624
629
625
630
if self .version >= 0x1f :
626
- self .unknown9 = data .read_bytes (9 )
631
+ self .unknown10 = data .read_bytes (9 )
627
632
628
633
if self .version >= 0x20 :
629
- self .unknown10 = data .read_bytes (4 )
634
+ self .unknown11 = data .read_bytes (4 )
630
635
631
636
#: The number of players enabled via the data editor
632
637
self .player_count = data .read_uint32 ()
0 commit comments