xoreos / xoreos-tools

Tools to help the development of xoreos
https://xoreos.org/
GNU General Public License v3.0
66 stars 28 forks source link

ERF: MOD files have incorrect prefix #64

Closed lachjames closed 4 years ago

lachjames commented 4 years ago

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.

DrMcCoy commented 4 years ago

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.

DrMcCoy commented 4 years ago

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

lachjames commented 4 years ago

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

DrMcCoy commented 4 years ago

Should be fixed with d5eb9a4297a4a7b5fd0841dcae4a62fa7a9c7310, thanks for reporting!