Jump to content

Home

GFF<->XML Conversion utilities


Recommended Posts

Posted

At the request of Andargor in this thread:

 

GFF2XML and XML2GFF command line utilities v0.5 (Available at SWK.com)

 

gff2xml converts GFF formatted files to .xml files.

xml2gff converts them back.

 

Usage: gff2xml gff-filepath output-directory

Usage: xml2gff xml-filepath output-directory

 

You can use wildcards in the filepath specifications to handle bulk conversions.

Posted

Looks Great Man! :thumbsup:

 

I edited the Weekly Mods Report to include this gem of a program as well :D

 

Wow.. you're just a machine pumping out all of these great toys! I'll give ya' a cookie too! :burg1:it's only one, but it's a BIG cookie.. hehehe

 

Thanks so much for all of your hard work tk, it's greatly appreciated by us who don't have them proggin' skillz (like me) ;)

Posted

v0.2

gff2xml will now append .xml to the original filename rather than overwriting the original extension. This will help prevent file duplication. Thanks andargor for this suggestion.

  • 1 year later...
Posted

v0.3 released

 

This latest version makes use of MIME Base64 encoding/decoding for Binary fields. Thanks to pasha_sevez for suggesting this.

  • 3 months later...
Posted

v0.5 released

 

(I skipped version 0.4 since that was a development version that went nowhere.)

 

- Fixed handling of empty structs where a phantom BYTE field was being added.

Thanks to bananajoe for pointing this out!

  • 6 months later...
Posted

Hello..

 

I want use your tools GFF<->XML for the game Neverwinternights2, because it is file format equals.

 

but when i run in first : gff2xml.exe ......... i have a good xml file;

after run xml2gff.exe ..... but i have error message "Wide character in syswrite at /PerlApp/Bioware/NWN2/GFF.pm line 537, <DATA> line 164" ?

 

can tell me why ? thanks ..

Posted

Sounds like it would be due to an accented (Unicode) character in a CExoLocString. I wouldn't expect the output of gff2xml to be perfect either in that case... are some text strings garbled?

 

Also, FYI NWN2's format is not identical to KotOR's. The big difference is that CResRef strings in NWN2 can be 32 characters whereas in KotOR they can only be 16 characters. The gff2xml utility will truncate your CResRefs to 16 characters.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...