.dat file format of Faster Than Light (FTL): format specification

Application

Faster Than Light (FTL)

File extension

dat

This page hosts a formal specification of .dat file format of Faster Than Light (FTL) using Kaitai Struct. This specification can be automatically translated into a variety of programming languages to get a parsing library.

Block diagram

Format specification in Kaitai Struct YAML

meta:
  id: ftl_dat
  endian: le
  application: Faster Than Light (FTL)
  file-extension: dat
seq:
  - id: num_files
    type: u4
    doc: Number of files in the archive
  - id: files
    type: file
    repeat: expr
    repeat-expr: num_files
types:
  file:
    seq:
      - id: meta_ofs
        type: u4
    instances:
      meta:
        pos: meta_ofs
        type: meta
        if: meta_ofs != 0
  meta:
    seq:
      - id: file_size
        type: u4
      - id: filename_size
        type: u4
      - id: filename
        type: str
        size: filename_size
        encoding: UTF-8
      - id: body
        size: file_size