A simple C tool for extracting and creating FlatFile archives (.FAT) (pronounced flat-tool). This file format is used by PlanetSide 1 to store .DDS files (textures)
Based on original FAT extractor by itburnz.
Tested on Cygwin and built using Mingw (GCC). Code is meant to be cross platform (hence
There are two modes of operation, similar to gnu
tar: extract and create. Extraction will extract out individual .DDS files from the .FAT archive. Create will combine multiple .DDS files in to one .FAT archive. See the usage statement for more details.
usage: FLATool [options] [-x file.fat] [-c newfile.fat oldfile.fdx dds_dir\] Examples: FLATool -x dds_ui.fat # extracts files to dds_ui directory FLATool -c dds_new.fat dds_ui.fdx dds_ui\ # creates dds_new.fat from source directory Options: -x extract a FAT to a directory of the same name in the local directory -c create a FAT from a set of .DDS files -v enable verbose mode -f force overwriting files
This will not build with Visual Studio. Tough luck. You will need a real GCC or Mingw GCC. Cygwin GCC can be used, but you MUST NOT release binaries using the Cygwin compiler (cygwin1.dll required).
$ make all
Or with an optional prefix (i.e for releasing binaries)
$ PREFIX=i686-w64-mingw32- make all