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

Application

Faster Than Light (FTL)

File extension

dat

KS implementation details

License: CC0-1.0

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
  application: Faster Than Light (FTL)
  file-extension: dat
  license: CC0-1.0
  endian: le
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: ofs_meta
        type: u4
    instances:
      meta:
        pos: ofs_meta
        type: meta
        if: ofs_meta != 0
  meta:
    seq:
      - id: len_file
        type: u4
      - id: len_filename
        type: u4
      - id: filename
        type: str
        size: len_filename
        encoding: UTF-8
      - id: body
        size: len_file