The Neverwinter Nights Encapsulated Resource Format (ERF) Utility 'erf' is a command line tool that acts very much like the standard UNIX 'tar' command, and even shares many of the same command line options. It interacts with the various NWN ERF files, such as ERF (.erf), HAK (.hak), module (.mod and .nwm) and saved game (.sav) files. Currently, 'erf' can create, extract, update and list the contents of ERF files. For information on exactly how to use 'erf', just run 'erf --help' from the command line. Full source code is included, as well as a precompiled binary for Windows. Linux users will need to compile the tool with the included Makefile.
Alex, I had originally planned on supporting merging multiple ERF archives into a single ERF (note that modules and saved games are in the ERF format). I'd still like to finish that support, but my todo list is rather long at the moment...
Posted by Alex Burton ( ..xxx.xxx ) at 2004-01-07 23:21:00
Does anyone know of a tool that can take a script of some sort that may include multiple ERF's etc and build a module based on it? Looking for a tool that will allow developers to easily work on only their areas and then 'compile' a complete mod based on its parts ready for release.
Posted by roboius ( ..xxx.xxx ) at 2003-10-20 08:49:00
Yes, I'll update the comments today. I hadn't realized they were out of date :-)
Posted by cward ( ..xxx.xxx ) at 2003-08-09 19:17:00
Great tool, even extracts .dlg!
Posted by roboius ( ..xxx.xxx ) at 2003-06-02 23:32:00
I've just updated this to version 1.0.2, changes are listed in the README file but include wildcard support when run in the Windows console, and better reporting of errors. Support for merging is almost complete, look for that update soon.
Posted by roboius ( ..xxx.xxx ) at 2003-05-30 00:31:00
Actually, thinking about this some more, this is standard behaviour for command line tools. I can't think of a single tool, other than the Windows command shell, that handles this correctly. "cd some path with spaces" will do the right thing in cmd.exe, but it's a much simpler problem than what we face here.
The standard way to handle path names with spaces is to enclose them in double quotes. I'd suggest you do the same.
I will be fixing filename globbing under the Windows command shell in the upcoming release, so you'll no longer have to list every file explicitly. I guess I've gotten lazy using Bash for so long :-)
Posted by roboius ( ..xxx.xxx ) at 2003-05-28 16:25:00
You might want to try enclosing the filenames with double quotes, this might work around the problems for now.
Posted by roboius ( ..xxx.xxx ) at 2003-05-28 16:04:00
Remigius, I discovered this problem myself and will be releasing an update shortly. I'll also be fixing filename globbing under the Windows command shell, I've been using bash which behaves differently. This means that "erf.exe *.mdl" will behave correctly in all shells.
Thanks for your comment!
Posted by Remigius ( ..xxx.xxx ) at 2003-05-28 02:52:00
The utilty can't handle file names that contains spaces. It just assumes the second parameter is the filename and ignores the rest. Is there any chance you can fix this soon? I'm using this utility in a program of my own and I need it to be able to extract modules with spaces in their filenames.
Thanks,
Rim
Posted by roboius ( ..xxx.xxx ) at 2003-05-22 18:21:00
I've updated the archive to version 1.0.1, I forgot to include the README file in version 1.0 :-)
You must be Logged In to post comments in this section.