||Gothic 3 - PAK Generator
This little tool was developed to create a PAK or patch volume
for Piranha Bytes' role playing game Gothic 3.
Note that this tool is based on my analysis with a hex-editor.
(lot of guesswork, G3Pak includes a file format specification)
G3PakDir <options> "C:\Foo\Bar" ["C:\Foo\Bar.pak"]
--no-compression don't compress any files entries
--no-comments don't write comments (source path)
--no-deletion no special handling for *.deleted
-- end of options
If dest isn't specified, '.pak' will be added to the path.
Important changes in Version 0.0.0.9
- the reserved field in the generated volumes always contains 'G3PD' now.
Other PAK viewers/editors might not handle this correctly (open fails).
For details look at the file format specification in the G3Pak package.
Important changes in Version 0.0.0.10
- "<name.ext>.deleted" will be added as 0-byte file named "<name.ext>"
with the 'file is marked as deleted' flag set. This aids in creating
patch volumes that have to 'delete' files in an existing PAK volume.
A file with the name "<name.ext>" will NOT be added to the volume if
a file with the name "<name.ext>.deleted" exists in the same folder.
The whole feature/hack can be disabled with the --no-deletion param.
Copyright (c) 2006,2008 Nico Bendlin <email@example.com>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.