Fixpremiumgff

From xoreos Wiki
Revision as of 21:00, 2 July 2016 by DrMcCoy (talk | contribs) (Created page with "Repair BioWare GFF files from encrypted NWN premium module HAKs. = Synopsis = fixpremiumgff [<options>] <input_file> <output_file> = Description = In addition to being en...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Repair BioWare GFF files from encrypted NWN premium module HAKs.

Synopsis

fixpremiumgff [<options>] <input_file> <output_file>

Description

In addition to being encrypted, the main HAK (ERF archive) of Neverwinter Nights premium modules also contains GFF files that have been deliberately broken. fixpremiumgff repairs those GFF files, turning them back into standard BioWare GFF files that can be read and manipulated by the usual GFF tools.

Options

-h
--help

Show a help text and exit.

--version

Show version information and exit.

--id <id>

Write the string id into the ID fields of the repaired GFF. By default, the ID is auto-detected from the file name of the broken file. For example, a broken module.ifo will by default turned into a standard GFF with an ID of "IFO", while an aribeth.dlg will get the "DLG" ID.

<input_file>

The GFF file to repair.

<output_file>

The repaired GFF file be be written there. This can be the same as the input file, to repair a broken GFF file in-place.

Examples

Repair the file module.ifo:

fixpremiumgff module.ifo module_fixed.ifo

Repair the file module.ifo, but overwrite the ID:

fixpremiumgff --id DLG module.ifo module_fixed.ifo

Repair the file module.ifo in-place:

fixpremiumgff module.ifo module.ifo

See also

gff2xml, unerf