Textdata landscape.dat

From Raynegard Wiki
Jump to navigationJump to search

landscape.dat (144 bytes, part of BIN textdata) is an ASCII manifest of landscape-backdrop codes.

Format

[edit]

Plain ASCII (not binary, despite appearances). Line 1 = count (20), then 20 codes of the form 3<region><LOD:03d>3 + a region letter + a 3-digit level-of-detail number, e.g. 3a000, 3c011, 3f012, 3m012.

Loading (Ghidra)

[edit]

String address 004e5e18. Parsed by LandscapeArchive_CreateAndStoreGlobal @ 004b43d0 (via Struct_Setup_NewArchive, the same manifest parser used for g_NewArchive2) into a name→index lookup, g_pLandscapeArchive.

Consumed during field loading: Archive_Load_FWLD @ 00409db0Archive_FindLandscapeEntry @ 00409b80 takes the .fwld path (must start with '3') plus a desired LOD, builds sprintf("3%c%03d", regionLetter, lod), and looks it up — walking the LOD down to the nearest available entry — returning index + 0xf as the landscape-backdrop resource id (or -1).

So it's the list of which (region, LOD) field areas have a distinct landscape backdrop.

See also

[edit]