Last active
November 27, 2018 14:34
-
-
Save kolen/23b7317282059f995f520a9a5fb188aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta: | |
id: magic_and_mayhem_map | |
file-extension: map | |
endian: le | |
seq: | |
- id: version # 6 is correct | |
type: u4 | |
- id: size_x | |
type: u4 | |
- id: size_y | |
type: u4 | |
- id: size_z | |
type: u4 | |
- id: num_tiles_xy # recalculated on load, file value ignored | |
type: u4 | |
- id: num_tiles # recalculated on load, file value ignored | |
type: u4 | |
- id: num_segments_x # not sure | |
type: u4 | |
- id: num_segments_y # not sure | |
type: u4 | |
instances: | |
tiles: | |
pos: 0x4c | |
type: tiles | |
types: | |
tiles: | |
seq: | |
- id: tiles | |
type: tile | |
repeat-expr: _root.size_x * _root.size_y * _root.size_z | |
repeat: expr | |
tile: | |
seq: | |
- id: tile_id | |
type: u2 | |
- id: unk | |
size: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See function at 00532F30 | |
meta: | |
id: magic_and_mayhem_mps | |
file-extension: mps | |
endian: le | |
seq: | |
- id: signature | |
contents: "MPS\0" | |
- id: unk | |
type: u4 | |
- id: version # 1 is latest version | |
type: u4 | |
- id: num_placements | |
type: u4 | |
- id: placements | |
type: placement | |
repeat: expr | |
repeat-expr: num_placements | |
types: | |
placement: | |
seq: | |
- id: probably_x | |
type: u4 | |
- id: probably_y | |
type: u4 | |
- id: probably_z | |
type: u4 | |
- id: type | |
type: u4 | |
enum: placement_type | |
- id: unk5 | |
size: 40 - 12 - 4 | |
enums: | |
placement_type: | |
0: undefined | |
1: friendly_wizard | |
2: enemy_wizard | |
3: multiplayer_wizard | |
4: creature | |
5: artifact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment