xoreos/xoreos-tools

ERF: MOD files have incorrect prefix

lachjames opened this issue · 4 comments

Hi :)

The first eight bytes of a mod file saved with ERF v1.0 should read "MOD V1.0", but they read "ERF V1.0" instead. This apparently causes TSL to be unable to open the archive, where manually hex-editing the first eight bytes to the correct value allows the archive to be opened.

ERF files come in several flavours: ERF (used by the NWN toolset as general resources archives), MOD (modules), HAK (used by NWN as additional resource archives loaded by a modules) and SAV (save files).

With our erf archive packer, you can select those with the command line flag --erf (default), --mod, --hak or --sav, respectively.

Ah, well, and this is currently broken. Damn.

Yeah, can confirm that --mod didn't work. Thanks @DrMcCoy :)

Should be fixed with d5eb9a4, thanks for reporting!