Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

GFF<->XML Conversion utilities

Page: 1 of 1
 tk102
07-30-2005, 3:39 PM
#1
At the request of Andargor in this (http://www.lucasforums.com/showthread.php?t=150162) thread:

GFF2XML and XML2GFF command line utilities v0.5 (Available at SWK.com (http://www.starwarsknights.com/tools.php))

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.
 Darth333
07-30-2005, 3:45 PM
#2
Another practical tool to make modder's life easier! That was more than quick! thanks tk, and as promised, here are some cookies (http://www.myhomecooking.net/chocolate-chip-cookies/images/chocolate-chip-cookies.jpg) as you like them :burg1:
 ChAiNz.2da
07-30-2005, 3:57 PM
#3
Looks Great Man! :thumbsup:

I edited the Weekly Mods Report (http://www.starwarsknights.com/) 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 (http://www.jumpstationz.com/gallery/emotes/cookie.jpg) 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) ;)
 Jeff
07-30-2005, 4:03 PM
#4
Thanks tk! :) Keep up the good work.
 RedHawke
07-30-2005, 9:32 PM
#5
Sweet! More toys! :thumbsup: Nice work tk! :)
 Lorden Darkblade
07-30-2005, 9:44 PM
#6
Great work as usual tk :D :thumbsup:
Keep it up.
 tk102
07-30-2005, 11:59 PM
#7
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.
 tk102
02-28-2007, 4:25 PM
#8
v0.3 released

This latest version makes use of MIME Base64 encoding/decoding for Binary fields. Thanks to pasha_sevez for suggesting this.
 tk102
06-07-2007, 6:03 PM
#9
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!
 martel
12-29-2007, 4:05 AM
#10
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 ..
 tk102
12-29-2007, 12:23 PM
#11
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.
 martel
12-30-2007, 3:15 AM
#12
mhh baddd lol

are you know where find tool gff<->xml for never2 ???

please..

thanks
Page: 1 of 1