Also before I forget again:
...so until a new .dlg editor is released to the public, you<ll have to edit existing .dlg files with a gff editor...Enjoy!
You're mean Darth333... :o :( ;)
EDIT: Fred did you saw my post on the KT deleting the TemplateResRef from the .uti files?
Just cheking...
Originally posted by Uchiha Itachi
I've been having an issue with the latest Kotor Tool.
Always when I change and save an item it is ERASING the TemplateResRef node.
When this happens it can be opened but cant be saved again, I had to use the GFF editor to recriate the node and write what was written there.
Anyone else is ahving this issue?
I tried opening items from templates.bif for both games and did not observe the problem you are having; the TemplateResRef node is still present after saving.
A new version of Kotor Tool will be posted today.
If you're manually downloading, check that the version number is the one below.
v1.0.1889.22000 (20050-3-4 1:30)
Features/updates:
Saving a GFF-based file now records the KotOR game version. Version info is taken from
the treeview game branch (KotOR I or II) or from the information provided by the user.
Open file functions now use embedded KotOR game version info if present.
Fixed window location and size persistence code for all UT* editors, text editor and Project Manager.
UT* editors now show current file name when saving.
Fixed bug in Most Recently Used (MRU) file handler
Fixed bug in Project Properties path handling (missing "\")
Projects can now optionally record the game version they are targetted for.
2DA editor can now show Dialog.Tlk strings for a column of string-ref values via a menu on the gridview's header for that column. Strings are updated as string-ref values change.
Fixed a bug in the 2DA editor that occurred when a 2DA file was opened from the treeview and then again from an external file of the same name. (A long-standing bug!)
New GFF text-view format for better readability
Creature editor can now adjust UpgradeLevel value for KotOR:TSL
Fixed Inventory bug in Merchant editor
Thanks for the update. Congratulations on your 500th post :D
Very nice Fred, thanks.
By the way, a little request... Is there any chance you could make it possible to copy and paste 2DA rows from one 2da to another one in a different window?
The way I'm thinking it could work coding-wise is basically just have the selection "Copy Row" actually copy something to clipboard in a format that KT recognizes as a 2da row, like:
353|PMB1|And so on...
Just have the | seperate the columns and if the document you're pasting into doesn't have enough rows, than it just pastes everything it can into one row, and if there are too many it just fills all of the columns it can.
I'm sure you'd have a better way of doing it though ^^;
But if you could squeeze this in, preferrably AFTER taking a break to play KotOR II, I'd really appreciate it.
Thanks again,
Shimaon
Ok I downloaded this new version and I'm still having the same issue.
It is erasing something, I can't tell what it is anymore cuz once I save the file with Kotor Tool I can't open anymore now, not even with the GFF editor...
Here is the error I get:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt32()
at kotor_tool.clsGFF.GFFReadStruct(GFFStructEntry& structEntry)
at kotor_tool.clsGFF.Parse(Byte[] bytes)
at kotor_tool.clsGFF..ctor(FileStream fs, Int32 KotorVerIndex)
at kotor_tool.frmMain.GetGFFFileKotorVersionIndex(Str ing filepath)
at kotor_tool.frmMain.OpenGFFFileInEditor(String filepath, Int32 formLocationOffset)
at kotor_tool.frmMain.miOpenGFFFile_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.ShortcutClick()
at System.Windows.Forms.Menu.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Mes sage& msg)
at System.Windows.Forms.ThreadContext.System.Windows. Forms.UnsafeNativeMethods+IMsoComponent.FPreTransl ateMessage(MSG& msg)
Help please...
Edit tk102: Trimmed and shrunk font of code
Originally posted by Achilles
Thanks for the update. Congratulations on your 500th post :D
Yeah, thanks! Now how many before my name glows? :)
You are one of the few thatt got bug.
It's not possible for everybody to change title at 500 posts.
And for glow is 1250 if I'm not wrong.
Hey I don't wanna be an ass but you ahve any clues on what is causing the error I'm having?
Originally posted by Uchiha Itachi
Ok I downloaded this new version and I'm still having the same issue.
It is erasing something, I can't tell what it is anymore cuz once I save the file with Kotor Tool I can't open anymore now, not even with the GFF editor...
Here is the error I get:
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt32()
at kotor_tool.clsGFF.GFFReadStruct(GFFStructEntry& structEntry)
at kotor_tool.clsGFF.Parse(Byte[] bytes)
at kotor_tool.clsGFF..ctor(FileStream fs, Int32 KotorVerIndex)
at kotor_tool.frmMain.GetGFFFileKotorVersionIndex(Str ing filepath)
at kotor_tool.frmMain.OpenGFFFileInEditor(String filepath, Int32 formLocationOffset)
at kotor_tool.frmMain.miOpenGFFFile_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.ShortcutClick()
at System.Windows.Forms.Menu.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Mes sage& msg)
at System.Windows.Forms.ThreadContext.System.Windows. Forms.UnsafeNativeMethods+IMsoComponent.FPreTransl ateMessage(MSG& msg)
Help please...
Ok, two requests:
1. Please email me two copies of the file that is giving you trouble, one before you open it and one after you opened and saved it.
2. As has been said many times before, you only need to post the part of the error details shown above; the loaded assemblies is not useful info.
Originally posted by Shimaon
Very nice Fred, thanks.
By the way, a little request... Is there any chance you could make it possible to copy and paste 2DA rows from one 2da to another one in a different window?
.
.
.
Thanks again,
Shimaon
It's on the to-do list, along with an Appearance wizard (bet you thought I forgot!), a Dialog.Tlk viewer/editor and some other goodies. :)
All the files I open and save with KT are getting bugged.
You want just 1 of them with before and after?
Fred, I have been having some troubles with the latest download, It may be me but I would just like you to check some out. First off, I found i could no longer use the Module Editor WIP, when i showed it the directory where the maps were, it just gave me the error message telling me to quit or continue, so i just kind of ignored that. But now it wont let me copy and past rows on the 2da editor it lets me copy fine but when i hit paste, it gives me the same error message. I's there something I have failed to do or will it simply be fixed in the next patch?
Originally posted by Uchiha Itachi
All the files I open and save with KT are getting bugged.
You want just 1 of them with before and after?
Well, that would be better than sending them all! :D
Yes, just one.
Originally posted by Gsccc
Fred, I have been having some troubles with the latest download, It may be me but I would just like you to check some out. First off, I found i could no longer use the Module Editor WIP, when i showed it the directory where the maps were, it just gave me the error message telling me to quit or continue, so i just kind of ignored that. But now it wont let me copy and past rows on the 2da editor it lets me copy fine but when i hit paste, it gives me the same error message. I's there something I have failed to do or will it simply be fixed in the next patch?
I'll take a look into for you. I didn't run into any problems when I tested the Module editor, but I didn't test the copy/paste rows in the 2DA editor....
Originally posted by Fred Tetra
It's on the to-do list, along with an Appearance wizard (bet you thought I forgot!), a Dialog.Tlk viewer/editor and some other goodies. :)
I did ^^
I thought about it the other day, but I figured you had enough burden on your shoulders that I could just do it manually, heh.
Sounds good, thanks all of your help Fred!
Originally posted by Fred Tetra
Saving a GFF-based file now records the KotOR game version. Version info is taken from
the treeview game branch (KotOR I or II) or from the information provided by the user.
Got the new version!
I know it's late and the sleepiness is clouding my sight, but could you point me at how the extractions are being marked? I'm looking for a new field off the main struct but I see nothing.
Originally posted by Fred Tetra
but I didn't test the copy/paste rows in the 2DA editor....
Fred, if you get this function to work, you'll be an even larger Hero for me to worship :D
Next thing you know, we'll be trying to dip you in gold ;) Do you prefer 10kt, 14kt or 18kt heheh....
I've known that programs using .NET Framework will not work on Windows XP 64-Bit Edition... And KotOR Tool uses this runtime. So, do you know if this modding tool could be "converted" in C# or C++ ?...
Thanks !...
Originally posted by Fred Tetra
Well, that would be better than sending them all! :D
Yes, just one.
Sent.
I just hope you find out whats wrong :D
Originally posted by Uchiha Itachi
Sent.
I just hope you find out whats wrong :D
I think I figured out what's wrong with your files.
The field that holds the KTInfoDate, which is a CExoString, indicates a length of 36 bytes and has the following contents:
domingo, 6 de mar??o de 2005 18:24:09
which is 37 bytes long! This causes one byte of a critical data structure in the file to be overwritten, which makes it unreadable.
What I think it should be holding is:
domingo, 6 de marзo de 2005 18:24:09
which is 36 bytes long, like the CExoString length field says it should be. (I am not sure that is the right word, marзo, as my Portuguese is pretty poor.)
This is the same sort of problem I ran into with the dialog editor.
You see, the C++ that KotOR is written in uses single bytes for each character, even ones like "з", drawing from a sort or extended ASCII character set.
Kotor Tool, being .NET Framework based, uses the more up-to-date double-byte representation for characters outside of the base ASCII set. This causes grief when the programmer "asks" .NET "how long is this string, so I know what to write to this file" and it says "36 bytes", then when you write the string, .NET expands the special characters out to two bytes each!
I will have to look into a work around for the international users.
(Other than setting your OS's language to US English!)
Sorry for the grief!
Ok, now it is official.
I hate NOT being american.....
Is there something I could do?
Perhaps changing the month?
No wait... the days count too right?
****... days here are big too like:
Monday = Segunda-feira
Tuesday = Terзa-feira
Wednesday = Quarta-feira
and so on and so forth...
But why this is happening now? I never had issues with this....
[EDIT] Ok I just made a small test...
Changed month to: May = Maio instead of Marзo.
Tho I have bigger months here like Setembro, Outubro.
And I was using it before on Fevereiro = February and it worked...
Why only now this happened?
You think there is a way around this fixed by programing?
So, for now, all the time when I use it its better to change my month to a month without the "з" ?
As long as no part of the date, (day or month name, for example) has any special characters, you're OK.
Ok :D
Just out of curiosity, you think you'll ever find a way around this?
Also, thanks a lot :)
Ok Fred, just to make sure, I tested it on another computer as well as my now reformated one, and it still doesnt work, I am unable to copy and paste rows, and when i try to use the Module editor it says access to blah blah blah/Fred Tetra/Kotor Tool/Maps is denyed, Details, Continue, Quit. Is anyone else having this problem, this is with Kotor 2 btw.
I'm also getting the error when I try to copy/paste rows in .2da files as well.
Of, FRED, one feature I was dying for ever since KOTOR 1 one came out... the abiltity to add columns to 2da files!!!
PWETTY PWEASE!!!
Originally posted by Ellderon
Of, FRED, one feature I was dying for ever since KOTOR 1 one came out... the abiltity to add columns to 2da files!!!
PWETTY PWEASE!!!
Even if Fred opened this feature up to us like is in other 2da editors. We would not be able to implement the new columns into the game due to the fact that these are hard-coded game engine elements that make the calls to the 2da file. Because of this even when a 2da file can have a new column added the new column will never be able to be read.
Originally posted by Gsccc
Ok Fred, just to make sure, I tested it on another computer as well as my now reformated one, and it still doesnt work, I am unable to copy and paste rows, and when i try to use the Module editor it says access to blah blah blah/Fred Tetra/Kotor Tool/Maps is denyed, Details, Continue, Quit. Is anyone else having this problem, this is with Kotor 2 btw.
These bugs do indeed exist; it is not your fault. :)
I'm working on them!
Sorry!
Oh please, no need to appologize Fred. It's quite allright, I just copied and pasted it colum by colum, didnt take too long. Dont fret about it.
Originally posted by Leviathan
I've known that programs using .NET Framework will not work on Windows XP 64-Bit Edition... And KotOR Tool uses this runtime. So, do you know if this modding tool could be "converted" in C# or C++ ?...
Thanks !...
It could be converted, if I didn't have to work, lived with my parents, and there were 36 hours in a day :)
But I do have to work, my parents are gone, and there's still 24 hours in a day, last I checked. :D
I'm trying to figure out how to make certain items upgradeable (eg, Freedon Nadd and Visas Marr's lightsabers, Freedon Nadd's blade [which for some reason isn't in the items list? I stumbled over it in 411DXN_s.rim-->Blueprint, Items...], etc.). I *did* look through the tutorials--I'm not totally helpless--but don't see one for this type of thing. I imagine it has something to do with the base item and "Upgrade Level"? Do I need to dig into the baseitem.2da? Or am I not even close? ;)
To change the upgrade level on items, check out this (
http://www.lucasforums.com/showthread.php?s=&threadid=145080) thread.
Basically you need to open the UTI with the GFFEditor then modify the UpgradeLevel field.
Originally posted by Daebryn
To change the upgrade level on items, check out this (
http://www.lucasforums.com/showthread.php?s=&threadid=145080) thread.
Basically you need to open the UTI with the GFFEditor then modify the UpgradeLevel field.
Cool--thanks, that's just what I was looking for. One question though:
In the "Item Editor" when I double click a .uti file there is a "Upgrade Level" field, but it seems to ALWAYS be zero. Yet when I look at the .uti as a text file, it's the correct value. What's up with that?
PS Fred, this is an amazing piece of work. I had only toyed around with it with KotOR, but now I'm beginning to see just how powerful [insert Darth Vader breathing SFX] it is. Good job and thanks a million for making this!
Dang it--I've edited the Upgrade Level [Byte] in the text editor, but when I use the GiveItem cheat, it comes up as unidentified (sonic grenade icon) item. Then when I go to edit the .uti again KT gives me an "Unhandled Exception Error". Any idea what I'm doing wrong?
Edit: I've also noticed that when I open it as Text (File-->View GFF Files as Text) and save it, it increases the file size from ~2k to ~10k after I make the change for Upgrade Level.
Originally posted by beel2112
Dang it--I've edited the Upgrade Level [Byte] in the text editor, but when I use the GiveItem cheat, it comes up as unidentified (sonic grenade icon) item. Then when I go to edit the .uti again KT gives me an "Unhandled Exception Error". Any idea what I'm doing wrong?
Edit: I've also noticed that when I open it as Text (File-->View GFF Files as Text) and save it, it increases the file size from ~2k to ~10k after I make the change for Upgrade Level.
To quote from page 20 of this thread:
"Kotor Tool does not have a text-based GFF editor. It has a "View GFF files as text" function, but the operative word here is View, as in look at. If you are trying to use files saved from the text editor in the game, they will not work; they are text files, not GFF files."
A new version of Kotor Tool will be posted today.
If you're manually downloading, check that the version number is the one below.
v1.0.1892.29047 (2005-3-7 16:36)
Features/updates:
Fixed bug in 2DA editor that occurred when pasting a row
Module editor works again and now uses embedded KotOR game version info if present in .GIT file.
THANKS SOOOOOOOOOOOOOOOO MUCH!!!!!
I FRIGGIN LOVE YOU.
PS, can you send me your billing info again? I deleted all my pms and forgot to write down your adress, sorry.
where do i find .map files for the module editor???
Originally posted by sketch42
where do i find .map files for the module editor???
Congratulations! You're the first person to ask!
I need to find a new home for the map files, probably at starwarsknights.com in the files section. Until I get that set up, if you have a request for a map, just email me.
Your map choices are:
m02aa - South apartments
m02ac - Upper city south
m08aa - Davik's estate
m10aa - \
m10ab - - Black Vulkar base
m10ac - /
m11aa - Hidden Bek base
m16aa - Sandral estate
m42aa - Elder settlement
m43aa - Rakatan settlement
Originally posted by Fred Tetra
Congratulations! You're the first person to ask!
I need to find a new home for the map files, probably at starwarsknights.com in the files section. Until I get that set up, if you have a request for a map, just email me.
Your map choices are:
m02aa - South apartments
m02ac - Upper city south
m08aa - Davik's estate
m10aa - \
m10ab - - Black Vulkar base
m10ac - /
m11aa - Hidden Bek base
m16aa - Sandral estate
m42aa - Elder settlement
m43aa - Rakatan settlement
ill host them... right now im in between hosts.. so im using geocities.. but iin a couple of days i think i should have another host :D .... .. also is there any chance of map files for K2? what do we need to do?
Originally posted by Fred Tetra
Congratulations! You're the first person to ask!
I need to find a new home for the map files, probably at starwarsknights.com in the files section.
Hey Fred, if you need storage just let me know. I have tons and plenty of bandwidth to boot.
Let me know if you want me to store them for you and I can give you a link you can post on your site so it's easier for everyone to find them...
Originally posted by sketch42
ill host them... right now im in between hosts.. so im using geocities.. but iin a couple of days i think i should have another host :D .... .. also is there any chance of map files for K2? what do we need to do?
To do the KotOR 2 maps, I need CChargin to update MDLOps to work with KotOR 2 so I can extract the models for map assembly.
He's an excellent coder, from what I've seen, so I expect he'll have it worked out in the near future.
Originally posted by ChAiNz.2da
Hey Fred, if you need storage just let me know. I have tons and plenty of bandwidth to boot.
Let me know if you want me to store them for you and I can give you a link you can post on your site so it's easier for everyone to find them...
If the StarWarsKnights site doesn't work out, I may take you up on it ;) (Or maybe I will anyway, just as a backup!)
Originally posted by Fred Tetra
If the StarWarsKnights site doesn't work out, I may take you up on it ;) (Or maybe I will anyway, just as a backup!)
The offer stands whenever you want my friend, just let me know :D
Het Fred, can you post the exact link for the newest KT, and it will start downloading right there? Because everytime I go to your site, and download it, It dosent install the right version, Thanks!:D
Originally posted by Fred Tetra
The error message is a bit misleading, as it was more relevant to KotOR I, when all versions of the game had the same chitin.key file.
One of Kotor Tool's users was kind enough to send me his chitin.key file to examine. In the German version, two files referenced in the key file, gui.bif and scripts.bif, have different lengths than the version I developed against, which Kotor Tool interprets as a corrupt key file. Other countries versions may have other differences.
I have updated the code to not exit the tool when this is the case.
While I cannot request posting of the required files due to legal issues, setting up Kotor Tool to recognize non-US versions would either:
(a) Require access to the chitin.key file and (after initial testing) some if the game's BIF files,
or
(b) Require some volunteers from different countries to participate in some special testing.
Any volunteers?
I have a UK version of the game and with the new kotortool it doesnt crash anymore.
Great work!!
Originally posted by una
I have a UK version of the game and with the new kotortool it doesnt crash anymore.
Great work!!
Glad to hear it works for you now!
Here's what I found by looking at the chitin.key files for the German, Italian and Spanish versions of the game: each indicated that the scripts.bif and gui.bif files were different from the US version, but the same size amongst the various international versions.
As I don't have copies of these files for the international versions, I cannot tell you what the exact difference is (I'd sure like to know, though!), but I made an allowance in Kotor Tool for the file size differences by simply displaying an informative message instead of quitting the application.
If I had the German, Italian and Spanish scripts.bif and gui.bif files, I could do a further analysis, but I don't think I can legally request these files. (Not that it will stop someone from sending them to me, I'm sure!)
Originally posted by DarthSmallz
Hey Fred, can you post the exact link for the newest KT, and it will start downloading right there? Because everytime I go to your site, and download it, It dosent install the right version, Thanks!:D
The link is
http://kotortool.home.comcast.net/kotor_tool_setup.exe)
When you download the file, right click on it, choose Properties from the menu, then in the kotor_tool_setup.exe Properties window, click on the Version tab. In the Item Name list box, click on File Version. The version number here should match the one on the website when you downloaded it.
If, after install, the version of the program isn't right, use the Add/Remove Programs control panel to remove it, then to be sure, go delete anything left behind in the actual Kotor Tool folder. The typical path is C:\Program Files\Fred Tetra\Kotor Tool\. When the folder is all cleaned out, run the installer again. When you run Kotor Tool, it will attempt to detect the game(s) you have installed and set up the paths for you.
The update check is kinda flawed.
Just letting ya know, is not a MUST to fix now, cuz I think the yours priorities are about fixing the Tool errors.
Sometimes when a new version is out it won't say here. I check and it says there is not a new version.
Then I do again and it works.
Originally posted by Uchiha Itachi
The update check is kinda flawed.
Just letting ya know, is not a MUST to fix now, cuz I think the yours priorities are about fixing the Tool errors.
Sometimes when a new version is out it won't say here. I check and it says there is not a new version.
Then I do again and it works.
Yes, it is not perfect, to be sure. It was designed for intranet use, where your chance at getting the version status from the hosting web site on the first try is near 100%. Unfortunately, my ISP has some pretty slow response times as of recently, even for me, and I am on the same local network!
The auto-update feature was added because it became such a chore to answer questions for people who were encountering problems that had been fixed sometimes months prior because they were unaware a new version had been released.
I hope to improve the robustness of the feature as Kotor Tool matures.
Thanks for the info!
(I need to get some cha mate' - too bad I can't go to Brazil and get some more!)