-
Notifications
You must be signed in to change notification settings - Fork 1
Map File Formats
shartte edited this page Apr 2, 2015
·
35 revisions
Found in the map directory. Has the following structure:
struct MapProperties {
int artId; // Lookup key for art/ground/ground.mes
int unused; // Mostly 0, sometimes garbage (cccccccc, stack pointers)
uint64_t limitX; // Seems to be number of tiles on X axis. Always 960
uint64_t limitY; // Seems to be number of tiles on Y axis. Always 960
};
The art id of the current map is stored at 0x1080FA58.
This file is actually optional. It may have been used for the start location within the editor only.
The format is a simple text file that has a X position on the first line and Y position on the second line.
Example (for Hommlet):
487
506
Measured in tiles. It is stored in memory location 0x10AA9590 as a 64-bit integer (lower 32-bit are X, upper 32-bit are Y).
Seems optional.
struct GlobalLighting {
bool enabled; // 32-bit repr
D3DLIGHT8 light; // Describes the light.
};