PDA

View Full Version : K-GFF (GFF Editing Utility) v1.3.0


tk102
07-08-2005, 11:42 PM
K-GFF (GFF Editing Utility) v1.3.0 (Jan 8, 2008)

Download from SWK.com (http://www.starwarsknights.com/tools.php)

-v1.3.0: Added ability to search STRREF fields by STRREF (go figure); added ability to search STRREF fields by TEXT; added ability to search CEXOLOCSTRING fields by TEXT (not just CEXLOCSUBSTRINGs); made selection background color cyan for easier viewing (why didn't I do this right from the beginning?); Added notification if searching by text and TLK file has not been selected

-v1.2.4: Added language toggle for The Witcher non-standard Lang IDs, fixed some behavioral issues mostly involving keeping the node highlighted when things happen.

-v1.2.3: Fixed a bug with the MRU list that was causing some misbehaving when it came it to opening files, specifically, that the tree wouldn't show unless you hit F5 to refresh.

-v1.2.2: Fixed a bug in the GFF libarary, exposed by v1.2.1. This affected GFF files where, after pasting a List that has a single struct or empty List, caused the change not to get saved. Thanks stoffe again!



Yet another GFF Editor...

This one features some extra support for KotOR/TSL namely in the form of VECTOR and ORIENTATION fields. These field types, as you may recall, were not present when GFFEditor.exe was published on Bioware's web site. Consequently certain GFF files (eg.: .git, .ifo) would become corrupted by editing. K-GFF supports these fields, hence you will no longer need to use CamEdit if you edit a module's .git file. Support for StrRef fields (Field Type: 18) has also been added for Jade Empire modding as of v1.1.9.

Another enhnacement over GFFEditor is the support for multiple CEXOLOCSTRING substring editing. It is now feasible for instance to publish a .dlg file with localized strings that is readable in all languages.

Other little features include: rudimentary support for BINARY fields (you can import and export these fields to files to perform hex editing), Cut/Copy/Paste of nodes, optional TLK file integration so you can translate StringRefs if you choose.

Lorden Darkblade
07-08-2005, 11:48 PM
Great work as usual tk :)
This will be very helpful in mods to come, I'm sure of it :D :D :thumbsup:

tk102
07-09-2005, 12:04 AM
Ah version 1.0.2 (has a nice ring to it for some reason.)

v1.0.2
- Set background of tree to white, sorted fields alphabetically, added name of current file to title bar. Fixed a bug with the dialog.tlk translations. Thanks T7!


(And thank you Uchiha Itachi for your nice comments. :) )

T7nowhere
07-09-2005, 12:22 AM
Cool, I still don't understand how to use the tlk for StringRefs :confused: Is it just supposed to show the value or the Value and the text from the tlk.

Anyway at least I understand how to addnew strings now ;)

Edit: Yup, that fixed it for me :)

tk102
07-09-2005, 12:29 AM
I think v1.0.2 should remedy that problem T7 -- when you chose Tools: Use TLK file.. (or press Ctrl+T) you will be prompted with the open file dialog as you know. Once you locate your dialog.tlk file, K-GFF should translate StringRefs of CExoLocStrings into their text and place them in the large textbox (read-only but selectable for copying).

And yes, the behavior for the Strings is different -- you have to manually add them instead of just typing -1 in the StringRef box. I made it this way so that you could easily add multiple strings to a single CExoLocString.

ChAiNz.2da
07-09-2005, 08:59 AM
hehe.. I was actually over SWK.com downloading the new DLG editor when I saw the link for this prog... of course I HAD to download new toys :D

Definitley looks great man! And couldn't have come at a better time (this prog and the new dlg editor)! I'm working on another project ;)

You keep amazing us with all of these new toys! :thumbsup:

Darth333
07-09-2005, 09:05 AM
Glad the threats...err...the bribes worked! :D

Thanks for this utility! It will be most useful!

RedHawke
07-09-2005, 10:12 PM
You have been busy tk! Very nice! :thumbsup:

tk102
07-09-2005, 10:43 PM
Thank you for the nice comments. :D

There is a strange behavior that might catch you off-guard in v1.0.2. (Hopefully to be fixed in v1.0.3...):

If you are not running K-GFF in a maximized window, and you pull up a context menu, and if that context menu goes outside the frame of the K-GFF window, and you choose a menu selection that is outside that frame -- then a mouse click event will occur on the window behind K-GFF, causing K-GFF to move to the background. Harder to explain than show (http://img.photobucket.com/albums/v170/tk102/958d9fc3.jpg).

Anyway hope to fix that soon. Let me know if you encounter any other bugs please. :)

Darkkender
07-10-2005, 05:16 PM
Hey tk I got a quick suggestion. Might it be possible in a future version to implement a erf editor similiar to NWNeditor. Where you can directly extract a gff file into the gff file editor and then reinsert it back into the erf editor and allow you to resave the new erf file. Of course if you did that I suppose you could extend it to a full fledged erf builder with it as well which NWNeditor doesn't support really. The reason I ask is because of your GFF editors ability to protect the camera angles feature.

Jeff
07-10-2005, 05:58 PM
Good job tk :D I sometimes wonder how you do this stuff... ;)

Darkkender
07-12-2005, 12:11 AM
Hey TK I know of a feature I would like to see would be a copy paste to the clipboard. That way you could have multiples open and copy a field from one editor to another.

tk102
07-12-2005, 12:18 AM
Ah that's a good request. Let me see what I can do. :)

svösh
07-12-2005, 10:52 AM
Nice new App Tk, it’s you programmer guys that make it all possible for us to create :)

svösh

tk102
07-14-2005, 12:32 PM
v1.0.3

- K-GFF now uses the Windows clipboard for cut/copy/paste. This allows users to paste from one instance of K-GFF to another. The data is stored on the clipboard as XML, so you can also paste into Notepad for example.

- Fixed Ctrl+Del so it actually works :xp:

ChAiNz.2da
07-14-2005, 01:27 PM
Originally posted by tk102
v1.0.3

- K-GFF now uses the Windows clipboard for cut/copy/paste. This allows users to paste from one instance of K-GFF to another. The data is stored on the clipboard as XML, so you can also paste into Notepad for example.

- Fixed Ctrl+Del so it actually works :xp:
:emodanc:

Fantabulous tk! I'm really enjoying your GFF editor moreso than our other alternatives :D

Thanks for the toys :p

tk102
07-14-2005, 01:32 PM
Thanks ChAiNZ! I'm working on a bookmarking feature that was suggested by T7Nowhere. It should help if you're working with large GFF files with multiple structures. :)

The Source
07-14-2005, 01:39 PM
Originally posted by tk102
v1.0.3

- K-GFF now uses the Windows clipboard for cut/copy/paste. This allows users to paste from one instance of K-GFF to another. The data is stored on the clipboard as XML, so you can also paste into Notepad for example.

- Fixed Ctrl+Del so it actually works :xp:

Question: When I copy and paste placeables, I usually have to create the opening string, and then I am able to copy/paste as I see fit. Now, the reason I have to make the opening string is so the numbering system picks up... Other words, the next placeable's number is sequentual. When you use this new copy/paste eddition, will it automatically number the next placeable?

For example:
1
2
3
4
5<--If I copy and paste this to make a new placeable I get..
5
5
5

Darth333
07-14-2005, 01:39 PM
That's great :thumbsup: The new functions you are adding are very practical. We should bribe (http://img.photobucket.com/albums/v144/Darth333/perebise300.jpg) you more often! :D

The Source
07-14-2005, 01:46 PM
I am downloading the file now, and I think this will go along ways in helping with my next project.

Thanks Man!:D

I just wanted to say Thank You for all your hard work! You have brought some invaluable programs to this community.

tk102
07-14-2005, 03:07 PM
Originally posted by MacLeodCorp
Question: \When you use this new copy/paste eddition, will it automatically number the next placeable?

For example:
1
2
3
4
5<--If I copy and paste this to make a new placeable I get..
5
5
5 You are talking about the StructID? Copying and pasting will not update that number. There are some Lists that require particular StructIDs to be recognized. Plus I'm lazy. :D

But yes, I am susceptible to chocolate bribes. PM me for details! :xp:

stoffe
07-14-2005, 05:30 PM
A small feature request: It would be handy if k-gff would open files automatically when you associate them to it. That way you could open GFF files by doubleclicking them in the Windows Explorer or drag'n'drop them to the k-gff icon. Please? :)

Darth333
07-14-2005, 05:46 PM
Originally posted by stoffe -mkb-
A small feature request: It would be handy if k-gff would open files automatically when you associate them to it. That way you could open GFF files by doubleclicking them in the Windows Explorer or drag'n'drop them to the k-gff icon. Please? :) it works for me :confused:

edit: it doesn't seem to work in any directory but it works on the desktop at least

tk102
07-14-2005, 06:00 PM
Oops, I even had the subroutine to handle command line arguments in the code but forgot to call it. :o So with one line of code that should fixed. :rolleyes: v1.0.4 will be released shortly.

v1.0.4 released

- Will now open a file passed as a command line argument or when associated with a file (which is the same thing).

stoffe
07-17-2005, 04:05 PM
I have a few more suggestions that would be very useful if you wished to implement. :worship:

* Is there any way to make k-gff display the index number of the structs in a LIST field, like the bioware editor does? That feature would make it easier to find a specific struct in a List.

* It would be nice if k-gff could save the last used window dimensions, window positioning and position/size of the resizable panels (what are they called?) It's a little annoying when you have to change the window appearance every time you start the program. :)

* It it isn't too much work, it would be nice if the label, datatype and value could be displayed as columns like in the bioware GFF editor. Makes it easier on the eyes when you scan through the tree trying to spot a specific value.

* A simple search feature where you could type in a field value and the editor would jump to a field matching the value would be useful when trying to find a value in a large file.

* When pasting a value into an input box where the current value is selected, is it possible to make it replace the selected text rather than append what you paste at the end of what's already there like it does now? Most other windows applications tend to overwrite selected text when you paste, so it kind of goes by reflex. :)


Just a few suggestions. The editor is very useful as it is already. :)

T7nowhere
07-17-2005, 04:44 PM
Originally posted by stoffe -mkb-
* It would be nice if k-gff could save the last used window dimensions, window positioning and position/size if the resizable panels (what are they called?) It's a little annoying when you have to change the window appearance every time you start the program. :)

* A simple search feature where you could type in a field value and the editor would jump to a field matching the value would be useful when trying to find a value in a large file.

I second these :)

* When pasting a value into an input box where the current value is selected, is it possible to make it replace the selected text rather than append what you paste at the end of what's already there like it does now? Most other windows applications tend to overwrite selected text when you paste, so it kind of goes by reflex. :)

If you hit backspace the old selected text will be deleted. Tk your dialog editor does this too, so I assumed it had something to do with perl, If you could change it to overwrite automatically it would save a key stroke for us ;)

tk102
07-25-2005, 12:39 AM
v1.1.0 released

Features added:

The number of Structs in a List are now shown in the treeview for each List
K-GFF Now remembers size and position of window and the size of the left frame. (Note that the adjuster has a little square 'handle' at the bottom that you can use to resize the left frame). Positions are saved when K-GFF exits.
Datatype, Label, and Values are now aligned
Search functions: Search by Label, Search by Value, Search by StringRef, or Search by Text have been added to the Tools menu

stoffe
07-25-2005, 04:44 AM
Originally posted by tk102

K-GFF Now remembers size and position of window and the size of the left frame. (Note that the adjuster has a little square 'handle' at the bottom that you can use to resize the left frame). Positions are saved when K-GFF exits.


Thanks, those are useful new features.

However there seeems to be some problem with saving the window configuration. If you exit using the Exit command in the File menu rather than click on the window close box, the window configuration is not saved. If you click on the close box, the window dimensions are saved, but the frame size is not correctly saved. This is how it turned out:

Before closing kgff (http://img319.imageshack.us/img319/9997/kgffbefore7bk.jpg)
After restarting kgff (http://img319.imageshack.us/img319/3637/kgffafter9ex.jpg)

Jeff
07-25-2005, 07:44 AM
Thanks TK! :)

tk102
07-25-2005, 10:48 AM
v1.1.1 released

- Search function buttons (F7-F10) are now bound to the main window rather than the tree, so now they will respond whenever the main window is active.

- Tree will now unfold as necessary when a Searched item is found

- File: Exit will now save the K-GFF window size/position.


@stoffe:
Thanks for the heads-up on the File:Exit issue. That's been fixed. As for the frame not saving its size -- it seems to work on Windows 2000 on two different machines. I haven't tried it on XP. Is that what you have?

stoffe
07-25-2005, 10:53 AM
Originally posted by tk102
As for the frame not saving its size -- it seems to work on Windows 2000 on two different machines. I haven't tried it on XP. Is that what you have?

Yes, I use Win XP Home Edition (with Service Pack 2 installed).

Seems like it saves (some) change to the frame dimensions since it didn't stay at the initial position/width, just not the width I set it to. I can increase the width of the right frame just fine and it saves, just not make decrease the width beyond what was shown in the screenshot above, or it snaps to that position when kgff is restarted.

Not exactly a huge problem. :)

tk102
07-25-2005, 11:50 AM
@stoffe:
(I tried to send this as PM, but your mailbox is full...)

Stoffe, perhaps you can help me troubleshoot the behavior....

The settings are being written to a file called kgff.ini which is stored in your %WINDIR% folder.

Try this:
Launch KGFF, resize the pane and close it.
Then open up kgff.ini in notepad.
Next, Launch KGFF again, do nothing and close it.
Then open up kgff.ini in another notepad.

Compare the two settings. I think they will have changed, and hopefully if they change the same amount each time for you, I can make an adjustment for WinXP users.

stoffe
07-25-2005, 12:17 PM
Originally posted by tk102
@stoffe:
(I tried to send this as PM, but your mailbox is full...)


Oops. I've cleaned it up a bit now.

Originally posted by tk102

Stoffe, perhaps you can help me troubleshoot the behavior....
(snip)
Compare the two settings. I think they will have changed, and hopefully if they change the same amount each time for you, I can make an adjustment for WinXP users.

Yes, the leftframe width value changed between the two times. First it was 659, but was changed to 439 after starting and quitting kgff again.

I tried a few times to resize the frames in different ways, and it seems that whenever the Width is larger than 439, it is automatically set down to 439 again the next time kgff runs. If the width is 439 or less, it is re-loaded correctly.

tk102
07-25-2005, 04:07 PM
Originally posted by stoffe -mkb-
it seems that whenever the Width is larger than 439, it is automatically set down to 439... If the width is 439 or less, it is re-loaded correctly.
Well that is fairly useless. :)

Thanks for testing this. I'll see what I can do with it on an XP machine.

tk102
07-26-2005, 01:02 AM
v1.1.2
- Fixed sizing issue of left frame for WinXP users

- Fixed a bug that was pasting text values as '0'.

SplashKhat
07-31-2005, 12:38 AM
Guess I downloaded before that update. I had no Idea what the program was for when I couldn't see the file trees >.<

Looks good now mate ^^

Doc Valentine
08-10-2005, 08:35 PM
Will you every plan to make an ERF editor with this added on, thats what I really need right now i know TLK editor does it but, TLK editor sucks some files it wont open, you cant extract lips with it. And almost every time i hit open it reverts to my documents making me have to go all the way through the folders again.

Aslo I would like to suggest that you do something for the CExoLocString that I saw in the late NwNEditor (the one that was in spanish, i no longer have it and it was a freaking dream, If anyone knows where i can get it please tell me) was that if there was a way to add a string to it so you could type it in yourself. You would hit add, and select male, then put the string reff to -1 and you could put your own in, but I dont see that with your utility, would you mind puting that in, make renaming map notes as well as triggers and the like MUCH easier.

EDIT: NEVERMIND, found that all you had to do was change it to CEXOSTRING, guess NWNEditor did it for me so I never knew hehe.

-GSCCC

Darth333
08-10-2005, 09:25 PM
You can extract them with Kotor tool too: just drop one of those *_loc.mod files in your modules folder. Open KT, go to ERFs and extract whatever you want :)

Doc Valentine
08-11-2005, 12:29 AM
Also, could you make it so you can select multiple structs? Or that when you delete one, it selects the next struct down? Because select + Ctrl DEL gets pretty tedious when you have 145 waypoints to delete in a map.

Just a suggestion,

-GSCCC

Doc Valentine
08-11-2005, 12:32 AM
Open KT, go to ERFs and extract whatever you want :)

I tried to do that to edit my custom modules, but when I open one of the things inside i get an error that tells me to continue or quit, and when i extract them it extracts them with no information making them appear on my folder with 0 kb.

-GSCCC

Doc Valentine
08-14-2005, 06:10 PM
Is it possible to select multiple structs already or is that not an option yet?

*REQUEST*: Could you make it so that when you hit ctrl + Delete, that it selects the next item down?

tk102
08-15-2005, 03:09 PM
Is it possible to select multiple structs already or is that not an option yet?No multiple structs cannot be selected independently. If they are in the same List, however, they can all be affected by cut/copy/paste/delete.


*REQUEST*: Could you make it so that when you hit ctrl + Delete, that it selects the next item down?

Done. v1.1.3 released.

Doc Valentine
08-15-2005, 03:57 PM
THANKS TK!!!! This makes deleting 200 Waypints (literally) MUCH easier.

Viscerus
08-26-2005, 03:11 PM
What is supposed to happen when a file is opened? Nothing happens when I open anything.

Darth333
08-26-2005, 04:35 PM
I am not sure I understand when you say Nothing happens when I open anything.

What do you mean nothing happens when you open a file? K-Gff opens but it stays blank? What file are you trying to open?

Viscerus
08-26-2005, 09:07 PM
Everything does stay blank. I was trying to open utc and uti templates for items and characters.

Darkkender
08-27-2005, 11:14 AM
I could be wrong here but I think the problem you are referring to is when you associate a GFF file to K-Gff and try to open the gff file. What it does is just open a new blank session of k-gff and not the file itself. Is this what you are referring to Viscerus.

If so all you should have to done is open the gff file from the drop down menu.

Darth333
09-26-2005, 04:17 PM
There's one thing that annoys me when making new areas: having to retype all the coordinates once I extracted them in a text file with the whereami armband. Would it be possible to add a copy/paste function so it's posssible to copy text from another application and then paste it in K-Gff?

tk102
09-26-2005, 04:22 PM
It sort of has something like this via its XML copy/paste schemes...

One thing you could try doing is Copying a Position or Orientation Field and Paste it into Notepad. Then you could perform your edits and Paste it back into K-GFF.

But you're suggesting something a bit more specific with regards to the Whereami armband, yes? :)

Simbacca
10-18-2005, 10:27 PM
i just download this and i am having the same exact problem as Viscerus.

Everything does stay blank. I was trying to open utc and uti templates for items and characters.

i start KGFF, the click file/open, then i browse to the character utc file i want to open and i click it, and KGFF stays just as it was when i started it, with no trace of my utc file displayed at all.

help!

clydeski
10-24-2005, 04:35 PM
i just download this and i am having the same exact problem as Viscerus.



i start KGFF, the click file/open, then i browse to the character utc file i want to open and i click it, and KGFF stays just as it was when i started it, with no trace of my utc file displayed at all.

help!

Same problem as Simbacca and Viscerus. Execute kgff, select file/open, pick a gff file and nothing happens. All the display fields in kgff remain blank. title bar says the file is open but nothing happens. I have mainly tried opening someof redhawks light saber utis.

Fred Tetra
10-25-2005, 12:36 AM
Did you try moving the left/right panel split point? Look on the lower left of the K-GFF window for a small box. I you mouse over the vertical line it sits on, you should see the horizontal resize cursor ( <---> ). Drag the split point to the right and you should see the treeview. I had the same problem...

clydeski
10-25-2005, 04:41 PM
Thanks Fred and TK. Problem solved. Only have to do it once. Looks like a neat tool.

mjpb3
12-03-2005, 03:26 AM
KGFF stopped working for me :(

I used it fine for a couple of projects, but now when I try to use it

...the exact same way I was using it before...

opening a file, I get a tiny window that pops up for a split second then closes and I can't 'catch it' to resize it...

And if I open KGFF and use it to locate and open a file, I get a blank window somewhat like what was described above...

I am using version 224

anyone know what could be the problem?

clydeski
12-03-2005, 07:39 AM
MJPB3 - Are we talking about KGFF? When I checked this morning at http://www.starwarsknights.com/tools.php , 1.1.5 is the most recent version.

If it is KGFF, try the following:

Did you try moving the left/right panel split point? Look on the lower left of the K-GFF window for a small box. I you mouse over the vertical line it sits on, you should see the horizontal resize cursor ( <---> ). Drag the split point to the right and you should see the treeview. I had the same problem...

The kgff.ini file is in c:\windows, you may be able to manually change some of the parameters in it to solve your problem to.

Darth333
12-03-2005, 08:30 AM
And if I open KGFF and use it to locate and open a file, I get a blank window somewhat like what was described above...

For some reason, in the latest version of K-Gff i have to go to the view menu and click refresh once I loaded a file in order to view it.

mjpb3
12-03-2005, 10:58 AM
MJPB3 - Are we talking about KGFF? When I checked this morning at http://www.starwarsknights.com/tools.php , 1.1.5 is the most recent version.


Oh CRAP! Sorry about that, I was looking at dlgeditor_224.exe...

That's what I get for making posts at 2 in the morning... sheesh...

Anyway, what I meant was that I have KGFF version 1.1.5.0

mjpb3
12-03-2005, 11:01 AM
For some reason, in the latest version of K-Gff i have to go to the view menu and click refresh once I loaded a file in order to view it.


Oh my word...

Darth333, that worked...

Well, now isn't that weird, it worked fine before...

huh...

Anyway, thanks! That did the trick ;P

The Source
03-06-2006, 06:08 PM
Hey TK,

I was wondering what the differences are between the original GFFEiditer and the K-GFF Editer.

tk102
03-06-2006, 06:59 PM
There are a couple things.

- KGFF supports Field Type Orientation (value: 16) and Field Type Vector (value: 17) which were not part of the GFF specification (http://nwn.bioware.com/developers/Bioware_Aurora_GFF_Format.pdf) at the time GFFEditor was created but were used in KotOR. GFFEditor would corrupt these fields, most notably, the CameraList in the .git files. This was the primary reason KGFF was made.
- KGFF displays CExoLocStrings as having child nodes for each localized string. This allows there to be more than one string per CExoLocString.
- KGFF supports the importing and exporting of Binary data.
- KGFF can read TLK files to interpret the resrefs of CExoLocStrings.
- KGFF's Copy/Paste functions use XML and the Windows Clipboard to do the transferring, allowing you copy and paste between two instances of KGFF or even pasting to notepad and back again.
- KGFF has a couple other features like the Search functions, Revert, Fold/Expand Tree

The Source
03-06-2006, 07:19 PM
There are a couple things.

- KGFF supports Field Type Orientation (value: 16) and Field Type Vector (value: 17) which were not part of the GFF specification (http://nwn.bioware.com/developers/Bioware_Aurora_GFF_Format.pdf) at the time GFFEditor was created but were used in KotOR. GFFEditor would corrupt these fields, most notably, the CameraList in the .git files. This was the primary reason KGFF was made.
- KGFF displays CExoLocStrings as having child nodes for each localized string. This allows there to be more than one string per CExoLocString.
- KGFF supports the importing and exporting of Binary data.
- KGFF can read TLK files to interpret the resrefs of CExoLocStrings.
- KGFF's Copy/Paste functions use XML and the Windows Clipboard to do the transferring, allowing you copy and paste between two instances of KGFF or even pasting to notepad and back again.
- KGFF has a couple other features like the Search functions, Revert, Fold/Expand Tree

Intresting. It sounds like it is time to upgrade. :)
Thanks TK! :)

tk102
03-07-2006, 12:02 PM
Small tweak to K-GFF to make it more KotOR Tool friendly.

If you'd like to have KotOR Tool launch K-GFF instead of GFFEditor for editing of non-KT GFF files directly (eg: .are, .ifo, .git) you can do the following with v1.1.6.

Extract KGFF.exe to your KotOR Tool folder.
Rename KGFF.exe to GFFEditor.exe.

brwarner
05-07-2006, 11:55 AM
For people editing gif files a good feature would be templates. Like lets say you wanted to add a new creature you could go Insert Struct template - Creature. This way there isnt a problem with not knowing all the parameters a struct should have, especially for ones with many parameters.

tk102
05-08-2006, 03:59 PM
Hmm, I like this idea. What makes it especially easy to do is the fact that K-GFF's Copy function actually stores the entire structure as XML. This could easily be pasted into a text document. All I would have to do is create something like Import Template to the File menu to make it easier to retrieve the template.

Currently, KGFF doesn't allow you to Copy the Main node, or Paste a struct to the Main node. Thanks for the suggestion brwarner. :D

Pavlos
05-27-2006, 07:42 AM
tk, I don't know why - I really can't explain it - but if I have the load file window open for long enough, the application seems to time out. It just closes; which can be annoying. It is not a big problem because I save my work after every change, I just thought I would point it out.

Oh, and I'm using the latest version of your program.

tk102
02-01-2007, 01:06 PM
K-GFF v1.1.7 released
Added support for copying and pasting the Main Struct of a GFF file. This can be helpful if you want to do your GFF editing in a text editor.

To do this:
Select the main struct of the GFF (the node labeled "[STRUCT ID: -1]" ) and choose Edit: Copy Node or right-click and choose Copy STRUCT or simply press Ctrl+C.

Next you can paste into a WordPad or other text editor and perform your edits using the text editor's functions. Be careful not to corrupt the XML tags. When you're done copy the entire text into your clipboard (Ctrl+A followed by Ctrl+C usually does the trick). Open up K-GFF and choose File: New. Select the root node labeled "New GFF File" and right-click, choose Paste MAIN STRUCT or choose Edit: Paste Node, or simply press Ctrl+V.

Mikon Orod
03-03-2007, 11:14 AM
TK, the guys at swknights.com has to change the download link to your utility: now it points to a file called "http://www.starwarsknights.com/mtools/kgff_115.zip", and it does not exist anymore. If your try to force the same path to "kgff_117.zip", you can actually download the latest version of the editor.

stoffe
03-03-2007, 11:59 AM
TK, the guys at swknights.com has to change the download link to your utility: now it points to a file called "http://www.starwarsknights.com/mtools/kgff_115.zip", and it does not exist anymore.

This should be fixed and working properly now. Thanks for pointing it out. :)

glovemaster
04-06-2007, 12:40 PM
For some reason, in the latest version of K-Gff i have to go to the view menu and click refresh once I loaded a file in order to view it.
Has this been solved? I am having the same problems which is stopping me from applying "open with kgff" to files.

tk102
04-06-2007, 05:00 PM
^^ I haven't been able to replicate this issue on my machine which makes it hard to troubleshoot. It's a peculiarity due to populating the treeview before the window is displayed. It's not a showstopper though, since you can press F5 to refresh the tree.

I'm looking into workarounds right now, but it's difficult to know when I've found one since I'm not having the problem to begin with. :p

glovemaster
04-08-2007, 07:44 AM
Well, i have an idea :D
When you press right on a struct it expands it and when you press left it folds?

tk102
04-08-2007, 10:21 AM
But then I wouldn't be able to use the context menu that's currently used with right-click.

glovemaster
04-11-2007, 01:31 PM
i meant right and left keys on the keyboard

tk102
04-12-2007, 05:13 PM
v1.1.8 released

- Added better support for up/down and left/right keystrokes. Up/down will now keep the selection cursor and the selection anchor together and will not navigate into folded branches. Left/right will not move the selection cursor but will fold/expand the current branch. Thanks go to glovemaster for the suggestion. :)

glovemaster
04-12-2007, 07:25 PM
Wow, this has also fixed the bug which forced me to press F5 when i open a file, for me anyway. Thanks ;)

tk102
04-23-2007, 06:24 PM
KGFF v1.1.9 Released

-v1.1.9: Added support for StrRef Fields (Field Type: 18) as used in Jade Empire (thread (http://www.lucasforums.com/showthread.php?t=177647))

tk102
05-30-2007, 02:02 AM
Version 1.2.0 released

- Added support for TLK V4.0 string translations (Jade Empire)

- Eliminated a bug where the file in the most recently used list that no longer exists caused KGFF to croak. This would often occur when trying to launch K-GFF by double-clicking a K-GFF assoicated file.

tk102
06-07-2007, 12:16 AM
v1.2.1 released
- Fixed bug that was causing weird problems with copying and pasting empty Lists and empty Structs (thanks stoffe!)

stoffe
06-07-2007, 06:28 AM
v1.2.1 released
- Fixed bug that was causing weird problems with copying and pasting empty Lists and empty Structs (thanks stoffe!)

That was quick, thanks for the fix. :thumbsup:

Do you have any plans to release a version of nwn2-gff with this fix as well?

tk102
06-07-2007, 09:07 AM
Yes I do. It appears I left the NWN::GFF module on my work PC otherwise I would have released that as well. Also need to fix XML2GFF/GFF2XML utilities for the same bug.

tk102
06-10-2007, 12:26 PM
v1.2.2 released

Fixed a bug in the GFF libarary, exposed by v1.2.1. This affected GFF files where, after pasting a List that has a single struct or empty List, caused the change not to get saved. Thanks stoffe again!

glovemaster
06-16-2007, 05:51 AM
Not that i want to be fussy but its just an idea. :lol:
Going back to when you added support for the left/right keys, maybe if you could make the keys work similar to KotOR Tool, where left would return to the top of the current struct, left again would close it. Right would zoom down to the nearest struct and right again would open it. You know what i mean if you have KotOR Tool, if you don't then how on earth do extract files?? :lol:

Thanks for adding the function in the first place anyway ;)
~GM

tk102
06-16-2007, 10:36 AM
Not that i want to be fussy but its just an idea...left would return to the top of the current struct, left again would close it. Right would zoom down to the nearest struct and right again would open it.
Yeah, that seems to make more sense -- left/right should only affect how structs are displayed so why not jump to them.
You know what i mean if you have KotOR Tool, if you don't then how on earth do extract files??
I use FindRefs more often than KotOR Tool if I know the filename actually. ;)
Thanks for adding the function in the first place anywayThank you for the suggestions. :)

glovemaster
06-16-2007, 12:45 PM
I use FindRefs more often than KotOR Tool if I know the filename actually.
Oh yeah, i tend to use that for module reskinning as you can extract both the MDL and MDX files together for that module at once. :lol:
Thats an idea for KotOR Tool, does anyone know what has actually happened to Fred?

And seen as i shouldn't really post on here with out giving a suggestion.. :lol:
maybe you could make KGFF generate a .ini file containing the path for the K1 and K2 dialog.tlk file (or it could remember them the way it does with the MRU list), so that when you go into the TOOLS menu, instead of "Use TLK file for StringRefs" you could have a branch that says "Use TLK File >" and then have the option for KotOR 1 and KotOR 2. And a "Use other TLK file" for those who want to use their own.
Thanks again :D
~GM

sekan
06-18-2007, 04:37 PM
I cant start k-gff editior and that's make me insane.

* Hits my computer many times*

tk102
06-18-2007, 04:41 PM
Sekan, try deleting the kgff.ini file in your Windows folder. If that fails, try deleting the temporary files from your C:\Documents and Settings\(your name)\Local Settings\Temp folder. If that fails and you have a character with a diacritic in your username, try logging off and logging on as a user without a diacritc.

sekan
06-18-2007, 05:11 PM
I dont have a kgff.ini file on my computer and it didn't help to delete the files in the temp folder.

tk102
06-18-2007, 05:17 PM
I dont have a kgff.ini file on my computer.
Are you sure of that? :) (Of course if your username has an accent, an umlat, or any other fancy Swedish character, you're probably right and you'll need to use a different username.)

In Windows Explorer menu:
Tools -> Folder Options -> View -> Hide Protected Operating System Files (uncheck)

Tools -> Folder Options -> View -> Hide File Extensions for Known File Types (uncheck)

Then look again in your c:\windows folder.

sekan
06-18-2007, 05:41 PM
Well i did the changes but i have now a big problem. It's not my username that makes the problem... It's the name of my computer!! Is it someway to change name of the computer?

*hit myself 1000 times bcz i could changed the name when i installed winxp*

EDIT: But i think i can use your tool when i live with my dad :D :guiness: :thmbup1:

tk102
06-18-2007, 06:30 PM
It's the name of my computer!! Is it someway to change name of the computer?

http://kb.iu.edu/data/ajnx.html

I've also set an email to ActiveState asking them where they stand on this bug that was opened in January of 2006... I hate having to tell the international community to use this "workaround". :rolleyes:

sekan
06-18-2007, 07:25 PM
I must really check things more before i post in this forum.
Well it was not the computer name. It's the name of my first username.
I cant change it bcz when i am loged in on my own username i cant change the bcz it's being used. Then i tried with another loggin that also was admin but it didn't work. You can stop try to help me bcz i will get a new computer...
Anyway thanks for helping me!

Ferc Kast
09-29-2007, 09:46 PM
Can someone make a tutorial for adding new dialog options in .dlg files, such as hanharr.dlg, using K-GFF?

tk102
09-29-2007, 10:17 PM
Why would you want to use a GFF editor for dialogs when there is KotOR Tool (for K1) and DLGEditor (for K1 and K2)?

Oh and btw, v1.2.3 was silently released a couple days ago.

Ferc Kast
09-30-2007, 09:41 AM
I would only want to use a GFF editor because I can't get any DLGEditor to work for me, in that they crash whenever I point them to the proper dialog.tlk file for either game.

tk102
09-30-2007, 12:21 PM
PM sent

tk102
11-18-2007, 01:17 AM
KGFF v1.2.4 released

- Added toggle in View menu to select whether to use KotOR/TSL (Bioware) language IDs or to use The Witcher language IDs for CExoLocStrings.

- Made KGFF behave better when refreshing the tree and when adding a new node. When refreshing the tree, KGFF will remember what node you were on a make sure that node is still selected afterwards. When choosing to create a new node, KGFF will select the new tree branch for editing. (I know, that kind of expected behavior should've been there all along but it wasn't. :( )

- Added ability to Go to... a Field index or Struct index. (Ctrl+G)

Ferc Kast
11-18-2007, 10:13 AM
Looks like I'll have to update the version on my USB, then. Can't wait to try out these new features. Didn't realize it, but I was still using version 1.1.7 of this. :doh: This should make things go easier in making one of my main mods.

tk102
01-08-2008, 02:15 PM
K-GFF (GFF Editing Utility) v1.3.0 released

- Added ability to search STRREF fields (Jade Empire) by STRREF (I don't know how I missed this :o)

- Added ability to search STRREF fields by TEXT

- Added ability to search CEXOLOCSTRING fields by TEXT, though TLK file must be selected for this to work. Prior to this, only CRESREF fields, CEXOSTRING fields, and localized substrings were searched.

- Made the tree branch selection background color cyan for easier viewing (another :o why didn't I do this right from the beginning?)

- Added notification if searching by text and TLK file has not been selected

samishxc
01-08-2008, 04:43 PM
I downloaded the Gff editor thingy but all it was was a htm file? I like clicked on it and stuff but still nothing happened. It probably is something obvious that im missing.

tk102
01-08-2008, 05:48 PM
That's odd. It must have been a broken upload. I uploaded again so give it another try. :)

samishxc
01-08-2008, 05:55 PM
I downloaded it again and its still .htm file. When the download thing first pops up it syas do you want to download tools.htm. I have MSN, i don't know if that has anything to do with it or not though.


Edit: i looked at the htm file and i know a little about html stuff, and it turns out all i downloaded was the webpage coding, like the stuff that makes it the website it is you know. I have absolutely no idea why it would do that though.

tk102
01-08-2008, 06:25 PM
You try one of the following:
1. Clear your cache and try again.
2. Try downloading using a different browser.
3. Try downloading it from the link in my signature.

samishxc
01-08-2008, 08:21 PM
thanks for telling me this. and by the way...


Daft Punk is intense :D

Ferc Kast
09-23-2008, 04:53 PM
I hate to bump this thread up, but I'm having a minor error with K-GFF. K-GFF seems to be closing at random intervals while I am working on editing a .git file. There seems to be no problem until it closes. It's no inconvenience for me, as I can re-open K-GFF and continue working. But, I just wanted to find out if there was anything I might do to stop the crashing. If it helps, I'm using K-GFF 1.3.1 (the latest version on SWK).

harark1
12-27-2010, 06:27 PM
I dont have a kgff.ini file on my computer and it didn't help to delete the files in the temp folder.

Yeah I'm having trouble too. I downloaded Har3's module making tutorial and when trying to acess the files of the module in Kotor Tool I get this message:

Error launching GFFEditor

Is it installed in the same directory as this program?

:confused:ok well I did exaclly what the totorial said in downloading this tool and so I'm a little mad:mad: that it won't work. I posted this here because I am guessing that the help I need is with this GFF editor. Can you help?

tk102
12-28-2010, 02:14 AM
I downloaded Har3's module making tutorial and when trying to acess the files of the module in Kotor Tool I get this message:

Error launching GFFEditor

Is it installed in the same directory as this program?


Hope this helps...

If you'd like to have KotOR Tool launch K-GFF instead of GFFEditor for editing of non-KT GFF files directly (eg: .are, .ifo, .git) you can do the following:

Extract KGFF.exe to your KotOR Tool folder.
Rename KGFF.exe to GFFEditor.exe.

harark1
12-28-2010, 02:02 PM
Yes It worked! Thank you. "Yelling at the top of my lungs" YES I CAN MOD NOW!!!!!! Well thanks.

Qui-Gon Glenn
01-03-2011, 05:27 PM
I have recently experienced some difficulties with KGFF and KotOR Tool, and I have found that it comes from the renaming of kgff to GFFEditor.exe. However, this is not the software's fault, it is my OS's, specifically the XP registry, that is to blame (or the end-user, that idiot at the keyboard, uh, oh, me).

My solution, is simple and free and obvious - cCleaner. Cleaned up some registry keys that had programs pointing to renamed progs (that I had assigned through Properties prior to renaming, which is where I went wrong mostlikely), letting cCleaner delete them.

Reloaded the problematic files with GFFEditor(KGFF) and it was all good.

Lesson for those like me who got frustrated for a minute with the tools -

1. You can always uninstall and reinstall KotOR Tool.
2. If you are going to rename KGFF to GFFEditor, do it first before setting program associations for opening GFF filetypes.
3. If you botch the above, or are having problems, cCleaner is your friend (make backups)

Thanks again to tk102 for this tool, and all of your modding tools! I would be lost without them :)