wiki:FileFormats

Version 2 (modified by leo, 4 years ago) (diff)

--

Pieces.idx

#define LC_PIECE_NAME_LEN 256

struct PieceTableEntry
{
  char[LC_PIECE_NAME_LEN] - Piece ID
  char[64] - Piece description
  u16[6] - Bounding box
  u8 - Flags
  u32 - Number of data groups
  u32 - Data offset in bytes from the start of pieces.bin
  u32 - Data size in bytes
};

struct MovedPieceEntry
{
  char[LC_PIECE_NAME_LEN] - From
  char[LC_PIECE_NAME_LEN] - To
};

char[32] - Header ("LeoCAD piece library index file")
u8 - File format version (currently 4)
u8 - Last official update applied (deprecated)
PieceTableEntry[] PiecesArray
MovedPieceEntry[] MovedPiecesArray
u16 - Number of entries in MovedPiecesArray
u32 - Pieces.bin file size in bytes
u16 - Number of entries in PiecesArray

Category Configuration File (*.lcf)

u32 - LeoCAD ID (LCD)
u32 - File ID (CAT)
u32 - Number of categories
lcString - Category Name     -| Repeat for each category
lcString - Category Keywords -|