Returns the header size for Arx Fatalis files
This is needed, because the files are partially compressed and this number can be given as an offset for node-pkware
dlf
(Danae Level File, contains general information about the level, used items and paths)fts
(FasT Scene, contains the level mesh and textures)llf
(Level Lighting File?, contains light entities and vertex colors)ftl
(?, model files for entities)tea
(?, animation files for entities)amb
(Ambience, contains a list of audio files which are played in different locations)cin
(Cinematics)
( https://wiki.arx-libertatis.org/Filetypes )
npx arx-header-size "C:\arx\arx-pak-full\final\GAME\GRAPH\Levels\level8\fast.fts"
outputs 1816
npx arx-header-size fast.fts --hex
outputs 0x718
npx arx-header-size level8.dlf.unpacked.json --format=dlf
outputs 8520
cat level8.fts | arx-header-size --format=fts
arx-header-size --version
or arx-header-size -v
gives back the version of arx-header-size
arx-header-size --hex fast.fts
gives back the header size in hexadecimal string instead of decimal with 0x
prefix
arx-header-size fast.fts --verbose
prints out more details of the header
format: FTS
total uncompressed data in bytes: 1816 (0x718)
header size: 280 (0x118)
unique header size: 768 (0x300)
number of unique headers: 2