Land Data file
From Worms Knowledge Base
Contents
File Format
- 4-byte tag signature - "LND\x1A"
- complete file length (4 bytes)
- width of map
- height of map
- border style: 0 = no border, >0 = top border (4 bytes)
- water height - (4 bytes)
- number of object placements (4 bytes)
- object placement coordinates - horizontal (4 bytes), vertical (4 bytes). Each worm, mine, and oil barrel are randomly placed at one of these coordinates at the beginning of the game. The more excess coordinate points there are, the more possibilities there are for each object placement. Not all mines or oil barrels will be placed if there are fewer object placement coordinates than there are objects. Worms will be placed outside of the map if there are fewer object placement coordinates than there are worms or if object placement coordinates overlap each other. The game can crash if worms are placed outside of the map.
Layer 1 - Visual Foreground Land
A colour IMG image (not compressed).
Layer 2 - Invisible Collision Mapping
A black&white IMG image (not compressed): black determines the collidable pixels.
Layer 3 - Visual Background Land
A colour IMG image (not compressed).
Additional Data - Pathing
- length of path string (1 byte)
- absolute path to land texture
- length of path string (1 byte)
- absolute path to water.dir file
Worms player/3rd party programmer, Etho, plans on developing a new map file format for Worms World Party that players will be able to use with the program CutWorm. The format will allow wwp players to play customized color maps with each other on WormNet2. Map makers will have the option to customize all three layers that land.dat uses, the border & water setting, object placement coordinates, and water type/color settings.
Online and offline tests where these parameters were properly adjusted have worked successfully with no desync errors. So far, tests to increase the size of a map beyond the size 1920 x 696 have failed.