Thursday, January 2, 2014

LIME 4 Data File Formats

One thing that I've had to reference repeatedly in developing LIME 4 is the file format for opening and saving map data files.  I figure that if I, the creator, can't remember it, then my users probably won't either.  Therefore, even though this information is in the API documentation, I'm going to post it here too.

Just as in previous versions of LIME, the data is separated into multiple files.  However, the content and structure of the files has changed to be more flexible and force fewer assumptions upon level designers.

Both file types are tab-delimited as specified by the constant MHMapFileInfo.MAP_FILE_DELIMITER.

The file types are as follows:

File TypeExtensionDescription
Game World Metadata.LIMESummary data required to open, initialize, modify, and save game world data in a format recognized by LIME and MHFramework.  This is the file type given to MHWorldLoader.loadGameWorld() and also the type that is opened by LIME's File | Open command.
Tile Map.LTMA file containing the data for a single tile map, which may stand alone or as a layer in a layered tile map. This is the file type given to MHWorldLoader.loadTileMap() and also the type expected in the file name properties of a .LIME file.

Game World Metadata (.LIME) File Format

  • Map width (columns) : int
  • Map height (rows) : int
  • Tile width (pixels) : int
  • Tile height (pixels) : int
  • Tile set ID : String
  • Floor map file name : String
  • Floor details file name : String
  • Wall map file name : String
  • Wall details file name : String

Tile Map (.LTM) File Format

  • Number of columns : int
  • Number of rows : int
  • Tile ID grid : int[][]

No comments:

Post a Comment