lfnetwork.com mark read register faq members calendar

Thread: Various Modding Tools (2DA, TLK, DLG, Search)
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-06-2007, 05:08 PM   #1
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Various Modding Tools (2DA, TLK, DLG, Search)

Here are several utilities I wrote while working on Cantina Bastila. Included are:
  • 2da Editor - includes some extra features I wanted. (Delete row, asterisk out a row, asterisk out a column, add column, delete column...) Note that using some of these features if you don't know what your doing will likely result in total chaos in your game. (Deleting a row, for example.)
  • Dialog Editor - This was the product of extreme boredom and no internet connection. It turned into a full featured dialog editor with some extra functionality. (Like listening to the actual audio of dialog lines when you select a line, test drive with full audio, extract the appropiate lip file for a dialog line, as well as the ability to edit anytag in the dialog as well as adding your own tags.) It will also extract the appropriate lip file and copy the selected wav to the folder of your choice.
  • Dialog TLK search - I know this has been done, but this one includes the ability to play audio if it exists. It will also extract the appropriate lip file and copy the selected wav to the folder of your choice.
  • Find In Files - This program will search inside files for specific text. I use this quite a lot hunting for specific code on my hard drive.
  • KT Wav Res Helper - This will allow you to play the audio of dialog lines from the Kotor Tool Conversation Editor. It will also extract the appropriate lip file and copy the selected wav to the folder of your choice.
  • Search For NPC's in Dialogs - If you do wav modding (hacking existing wavs to make new ones) then you want as much audio content from an npc as possible. This will search the game resources and list any occurences of the the name of the npc you specify (what dialog in what rim, erf, or mod.) Once you make a search you can then generate a list of all dialog lines from the npc specified. You can then save this list to disk. THIS list can be reloaded anytime you want. From this list you can browse the dialog lines, hear the wav resources and easily copy the wav / lip to the destination of your choice.
  • Wav Manipulator - This is mainly for making your own wav files. It allows you to convert wav or mp3 files to or from the kotor format (with prepended headers) by simply dragging and dropping a file onto the form. If Drag Drop Play is checked it will play the sound instead of converting it.

Two controls are included and required for most of the programs to run. They come straight from the Microsoft Visual Studio 6.0 Service Pack 5.

Available from my FileFront page.

Available from my web site.


Last edited by Kristy Kistic; 02-11-2007 at 06:09 PM.
Kristy Kistic is offline   you may: quote & reply,
Old 01-07-2007, 12:47 AM   #2
RedHawke
Shadow Lord Of The Sith™
 
RedHawke's Avatar
 
Status: Moderator
Join Date: Mar 2004
Location: Stormreach CA.
Posts: 9,184
Current Game: DDO, Stormreach
Wow Kristy! You've been busy!


"Beware the form-fitting black armor-clad Drow hottie with twin Mineral II Greensteel Khopeshes!"
"Liella d'Orien says, '"You're the fool, Devil. -- Witness the power of this fully ARMED and OPERATIONAL Titan!"'"
----------------------------------------------------------------------
RedHawke is offline   you may: quote & reply,
Old 01-12-2007, 06:30 PM   #3
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
Holy Sweet BeJezus is right. Now all we need is a working "BIF" builder utility for the Kotor series and we could be set.

Edit: Hey KK we have a problem. 3 of the utilities are returing errors. The 2da Editor, KT Wav Res Helper, & Dialog Viewer. The first 2 return Windows Application Error windows referencing Hex memory address information. The Dialog Viewer loads however it pops a window upon load that reads "Fails to create tooltip window" you click okay and it shutsdown. Dialog Viewer also creates a Debug Log and gives the same hexcode error inside there as the other 2. The Hexcode in the log report shows it returning the following. "eErr_EXCEPTION_ACCESS_VIOLATION"


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin

Last edited by Darkkender; 01-12-2007 at 11:27 PM.
Darkkender is offline   you may: quote & reply,
Old 01-13-2007, 01:44 AM   #4
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Quote:
Originally Posted by Darkkender
Edit: Hey KK we have a problem. 3 of the utilities are returing errors. The 2da Editor, KT Wav Res Helper, & Dialog Viewer. The first 2 return Windows Application Error windows referencing Hex memory address information. The Dialog Viewer loads however it pops a window upon load that reads "Fails to create tooltip window" you click okay and it shutsdown. Dialog Viewer also creates a Debug Log and gives the same hexcode error inside there as the other 2. The Hexcode in the log report shows it returning the following. "eErr_EXCEPTION_ACCESS_VIOLATION"
Ok. The things in common with all three apps is that they are all attempting to subclass the window at the point that it gpf's. (Using the SetWindowLong api.) It also appears that CreateWindowEx failed in making the tooltip window.

At the moment all I know to ask is what OS are you using? And do you have any special system configurations that I might should know about? (Like what kind of cpu do you have?)

Kristy Kistic is offline   you may: quote & reply,
Old 01-13-2007, 09:17 AM   #5
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
Ok. The things in common with all three apps is that they are all attempting to subclass the window at the point that it gpf's. (Using the SetWindowLong api.) It also appears that CreateWindowEx failed in making the tooltip window.

At the moment all I know to ask is what OS are you using? And do you have any special system configurations that I might should know about? (Like what kind of cpu do you have?)
I can confirm that what has been described above happens to me as well:

2DA Editor: Crashes during startup with some kernel32.dll error (standard Windows application crash dialog)

Dialog Viewer: "Failed to create Tooltip window" + closing when pressing OK.

Find in Files: "RICHTX32.OCX missing" message + closing when pressing OK.

KT Wav Res Helper: Crashes during startup with some kernel32.dll error (standard Windows app crash box).

I'm using Windows XP Home with SP2 installed on a machine with an AMD Athlon 64 3500+ processor. (I've also tried it on a machine with an AMD Athlon XP 2600+ processor running Windows XP Professional with SP2 installed with similar results.)

The other applications seem to be working fine so far though.
stoffe is offline   you may: quote & reply,
Old 01-13-2007, 02:53 PM   #6
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
I've done some research and the culprit seems to be a new feature that comes with Windows XP SP2 called 'Data Execution Prevention'. Unfortunately, I don't have Windows XP SP2 and have no idea how to circumvent this problem. I've read that it can be disabled on a per program basis.

Here's an excerpt from this Microsoft page.
For the purposes of program compatibility, you can selectively disable DEP for individual 32-bit programs when DEP is set to the OptOut policy level. To do this, use the Data Execution Prevention tab in System Properties to selectively disable DEP for a program. For IT professionals, a new program compatibility fix that is named DisableNX is included with Windows XP SP2. The DisableNX compatibility fix disables Data Execution Prevention for the program that the fix is applied to.

I've asked for help with this in a programming community, but what may come of that remains to be seen. So, unless someone actually happens to know about dep I'll just have to keep investigating. (Which is difficult since I can't look into it on my own machine.)

Oh and I forgot to include the RichTx32.ocx in the required controls. Ooops I'll include it soon, but I would like to get the gpf thing sorted out first.

And to Darkkender and Stoffe - Thank you for taking the time to bring these things to my attention rather than just saying "Oh - it doesn't work." and never bothering to say anything. I very much appreciate it

Kristy Kistic is offline   you may: quote & reply,
Old 01-13-2007, 04:03 PM   #7
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
To help you in your trouble shooting I've got Win 2000. Since I've got Visual Studio 2003 the debugger automatically throws me some of my exceptions. If you want I could try to recompile the programs on my machine to see If I get the same results. Since as I recall you said you made these tolls with Visual C++, which is what I have as well. I know it's not the debugger causing the error I also doubt it is the Data Execution Prevention fix with Win XP SP2 as if it was it wouldn't effect me.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 01-13-2007, 05:49 PM   #8
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
I've uploaded 2 modified versions of the kt wav resource helper here. (It was the smallest and easiest to modify for testing purposes.) They've both been modified to give more debug info to help pinpoint exactly where the gpf is occuring and the second one has been compiled to p code instead of native code. So if you could test these and let me know the results...

And to Darkkender...these are written in vb5.

Kristy Kistic is offline   you may: quote & reply,
Old 01-13-2007, 06:31 PM   #9
Kitty Kitty
Junior Member
 
Kitty Kitty's Avatar
 
Join Date: Jan 2004
Location: USA
Posts: 355
Crashes out immediately. Log follows:

1/13/2007 5:29:42 PM Form Load Started
1/13/2007 5:29:42 PM Pre Handle Exceptions
1/13/2007 5:29:42 PM Post Handle Exceptions
1/13/2007 5:29:42 PM LoadSettings
1/13/2007 5:29:42 PM SetGamePaths
1/13/2007 5:29:42 PM Set New cMCI
1/13/2007 5:29:42 PM Pre Subclass
1/13/2007 5:29:42 PM Post Subclass
1/13/2007 5:29:42 PM EVENT: UNHANDLED EXCEPTION (EXCEPTION_EXECUTE_HANDLER (TERMINATED - Not trying to continue)): (Code: -1073741819) at 7C809D92 - eErr_EXCEPTION_ACCESS_VIOLATION

Edit - Both versions identical.

-Kitt


Kitty Kitty is offline   you may: quote & reply,
Old 01-13-2007, 08:04 PM   #10
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Ok...Here's another one. This one duplicates exactly the same code for subclassing I used in the console helper.

Kristy Kistic is offline   you may: quote & reply,
Old 01-13-2007, 08:23 PM   #11
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
Ok...Here's another one. This one duplicates exactly the same code for subclassing I used in the console helper.
Not getting any Windows Crash dialog box this time, but nothing seemingly happens when running it, other than a log file being created containing:

Code:
2007-01-14 02:22:32 Form Load Started
2007-01-14 02:22:32 Pre Handle Exceptions
2007-01-14 02:22:32 Post Handle Exceptions
2007-01-14 02:22:32 LoadSettings
2007-01-14 02:22:32 SetGamePaths
2007-01-14 02:22:32 Set New cMCI
2007-01-14 02:22:32 Pre Subclass
2007-01-14 02:22:32 Post Subclass
2007-01-14 02:22:32 Parse Command Line
2007-01-14 02:22:32 EVENT: UNHANDLED EXCEPTION (EXCEPTION_EXECUTE_HANDLER (TERMINATED - Not trying to continue)): (Code: -1073741819) at 7C809D92 - eErr_EXCEPTION_ACCESS_VIOLATION

stoffe is offline   you may: quote & reply,
Old 01-13-2007, 08:56 PM   #12
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Thank you Stoffe - you have pointed out a second factor that all 3 programs have in common - parsing the command line. I have commented out that part of the code.

Test #3

Kristy Kistic is offline   you may: quote & reply,
Old 01-13-2007, 09:16 PM   #13
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
Thank you Stoffe - you have pointed out a second factor that all 3 programs have in common - parsing the command line. I have commented out that part of the code.

Test #3
That seems to have done it. Now it starts without any problems or errors at least. I'll try it out some more tomorrow and see if everything works here.
stoffe is offline   you may: quote & reply,
Old 01-13-2007, 09:00 PM   #14
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
Hey KK, I'm getting the same errors as Stoffe and Kitty posted. When reading the log the Exception it seems to be throwing looks to be a windows handle exception. The problem might be in the code for creating the window or it's toolbar considering the error for dialog viewer was centered around the tooltips.

Uggh! Darkkender hate Dial-up. Take half hour just to post replies sometimes. Then people have fixes.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin

Last edited by Darkkender; 01-13-2007 at 09:15 PM.
Darkkender is offline   you may: quote & reply,
Old 01-13-2007, 09:07 PM   #15
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Quote:
Originally Posted by Darkkender
Hey KK, I'm getting the same errors as Stoffe and Kitty posted. When reading the log the Exception it seems to be throwing looks to be a windows handle exception. The problem might be in the code for creating the window or it's toolbar considering the error for dialog viewer was centered around the tooltips.

Which test program was this for? The second or third one? If it was the third the debug log should look somewhat different.

Kristy Kistic is offline   you may: quote & reply,
Old 01-13-2007, 09:35 PM   #16
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
To your last inquiry KK my post was relating to test 2.

And as Stoffe says Test 3 works fine. I ran the program on both my win 2K machine and our win 98 machine. So whatever magic wand you waved for test 3 apply it to the other 2 utilities and things should be good.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 01-13-2007, 11:52 PM   #17
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Unfortunately I still need to parse the command line so I rewrote that part completely.

So here is Test #4.

Kristy Kistic is offline   you may: quote & reply,
Old 01-14-2007, 08:30 AM   #18
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
Unfortunately I still need to parse the command line so I rewrote that part completely.

So here is Test #4.
This version ran without any crashes as well. The only problem with it I've noticed so far is that it crashes if you pick the "Find Dialog.Tlk index" menu option from the system tray icon menu if the application is minimized.
stoffe is offline   you may: quote & reply,
Old 01-14-2007, 12:31 PM   #19
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Quote:
Originally Posted by stoffe -mkb-
The only problem with it I've noticed so far is that it crashes if you pick the "Find Dialog.Tlk index" menu option from the system tray icon menu if the application is minimized.
I've fixed this. (It was reproducible on my end.) I'll repack everything and re-upload the original pack after I've (hopefully) solved the crashing issues.

To shift gears...I've uploaded test copies of the 2da editor and the dialog viewer.

Test #5


Last edited by kristykistic; 01-14-2007 at 02:11 PM.
Kristy Kistic is offline   you may: quote & reply,
Old 01-14-2007, 02:24 PM   #20
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
I've fixed this. (It was reproducible on my end.) I'll repack everything and re-upload the original pack after I've (hopefully) solved the crashing issues.

To shift gears...I've uploaded test copies of the 2da editor and the dialog viewer.

Test #5
Both seem to start now, though I ran into some other problems.The 2DA editor seems to have a problem when picking the "Open" menu command to load a 2DA file. A message pops up saying:
Oops!
Error: 5
Invalid procedure call or argument
LOCATION: CommonDialogShowOpen


The error message does not quit the application when closed though, and the Open dialog box opens, but it does not seem to actually load the file you select (nothing happens).

Also in the Tools menu --> Associations the text reads "Associate me with Dialog files", which seems like an odd choice for a 2DA editor. Also, the "Exit" menu command in the File menu appears to do nothing.

* * *

The dialog editor says Failed to create tooltip window when starting, but at least it doesn't close after you click OK. The menu bar menus are messed up though, they are too tiny compared to the content to the point where you can't see what's in them. See screenshot below:

It seems to work to load DLG files with it though (CTRL-O). But I got a "Unknown error - Bailed test drive due to error" message while trying the Test drive feature.

stoffe is offline   you may: quote & reply,
Old 01-14-2007, 04:21 PM   #21
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Quote:
Originally Posted by stoffe -mkb-
Also in the Tools menu --> Associations the text reads "Associate me with Dialog files", which seems like an odd choice for a 2DA editor.
Can you tell I reuse code? At least I got a laugh out of it.

I worked on the 2da editor and uploaded 4 programs that use diferrent methods of owner drawing menus. All I really need to know is which work and which don't. (Just the menus on them, nothing else.)

Test #6

Kristy Kistic is offline   you may: quote & reply,
Old 01-14-2007, 02:21 PM   #22
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
Well So far they startup fine for me. I haven't got a chance to test them on files yet. However the 2daeditor has an interesting feature in the Tools menu, I can associate the 2daeditor with Dialog files. I think the file association for this editor might be better if it associated with 2da files don't you KK.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 01-14-2007, 03:15 PM   #23
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
I was going to mention those same problems Stoffe. An interesting thing though is when I run dialog viewer on our Win 98 machine at home there are no error messages and the Menu's are how they should appear for a normal windows menu. I suspect the incorrectly sized menu's and the tooltip creation is possibly caused by different handlers results for the OS itself since we both are getting the same result I think it might have to do with OS built on NT 5.0 or greater Otherwise known as Win 2K & Win XP. I tested it against various resolutions on my Win 98 machine with everything fine, and tried the same on my Win 2K machine and had no change with the micro menu problem, so this furthers my suspicion of the OS related problem.

On a sidenote I was able to load a dialog file and I really enjoy that testdrive feature.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 01-15-2007, 07:21 PM   #24
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
I was getting ready to completely rewrite the menus when I was able to reproduce the miniature menus syndrome. It was connected to an IF statement so I would like to test this once without the IF before I start a rewrite.

Test #8

Kristy Kistic is offline   you may: quote & reply,
Old 01-15-2007, 07:31 PM   #25
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
I was getting ready to completely rewrite the menus when I was able to reproduce the miniature menus syndrome. It was connected to an IF statement so I would like to test this once without the IF before I start a rewrite.

Test #8
Nothing new on the menu front, unfortunately. I still get the tiny pink menus where you only see parts of some icons and divider lines with this version. I also got two non-fatal error messages at application startup, "Failed to register window!" and "Failed to create tooltip window.".
stoffe is offline   you may: quote & reply,
Old 01-15-2007, 11:03 PM   #26
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
I may have gotten the menus working right. (I found a serious os type of bug.) Even if they do, they aren't quite finished, though. But you should be able to read them. (Hopefully)

Also I tried something different where it pronounced "Failed to register window!" (We're trying to use the RegisterClassEx api) . It will now make two slightly different attempts before bailing and declaring failure to create the tooltip window.

Test #9

Kristy Kistic is offline   you may: quote & reply,
Old 01-16-2007, 11:49 AM   #27
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
I may have gotten the menus working right. Even if they do, they aren't quite finished, though. But you should be able to read them.
Also I tried something different where it pronounced "Failed to register window!" It will now make two slightly different attempts before bailing and declaring failure to create the tooltip window.
The menus are displaying properly in this version and seem to work to use, from what I could tell.

Still getting the "Failed to create tooltip window" message though, but this time a I got a "Failed to register window on first attempt!" message before it.

There seems to be something odd when saving DLG files. When I just opened a test dialog and re-saved it without changing anything the new file became roughly 150 K bigger than the original (529K vs 371K).
stoffe is offline   you may: quote & reply,
Old 01-17-2007, 02:39 AM   #28
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
I made some changes to the dialog viewer, 2da editor, and included the missing richtx32 control for the find in files program.

Quote:
Originally Posted by stoffe -mkb-
There seems to be something odd when saving DLG files. When I just opened a test dialog and re-saved it without changing anything the new file became roughly 150 K bigger than the original (529K vs 371K).
That's because this editor includes a 'base' amount of tags for each dialog line whether they are actually present in the original dialog file or not. (If they weren't in it before they will be afterwards.) This isn't really necessary but I wasn't aware of that when I wrote this several months ago. Changing this is going to involve rewriting a very large portion of this program and may not happen anytime soon.

BTW: I would like to give you a very big thank you for all your help stoffe.

Test #10

Kristy Kistic is offline   you may: quote & reply,
Old 01-17-2007, 12:56 PM   #29
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
I made some changes to the dialog viewer, 2da editor, and included the missing richtx32 control for the find in files program.

Test #10
I've tested the 2DA Editor some more and it appears to be working mostly fine now from what I've seen so far. I did notice that you can't sort the table by Row Label by clicking on the column header though, like you can with the other columns.

There also seems to be some problem if you sort the table by clicking on one of the colums and then do "Undo all changes" without first doing "Reset Sort" (both in the Tools menu) causing the line sequence to be messed up if you then save the file again.

Oh, and the "Exit" command in the File menu does not appear to work.

Finally a suggestion: It would be very handy if you show the line numbers as well. Since many 2DA files are indexed by line number and not row label (which I assume is what you call "Index" in your column labels) it would save you from having to count the lines manually if the row label does not match the line number.

* * *

As for the DLG Editor, there are no "Tooltip window" related errors showing any longer, but unfortunately the menus have returned to their old broken state in this version again.

The "Bailed test drive due to error." message still shows up when trying out the "Test Drive" feature after a few nodes have been displayed.

* * *

Find In Files seem to work as well now with that OCX file installed, though the "Exit" menu command doesn't do anything there either.

stoffe is offline   you may: quote & reply,
Old 01-17-2007, 01:42 PM   #30
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
This is a rollback to some previous code where I think the menus were working. I just want to verify that. (This isn't meant to be an update, I'm just trying to find what I did that broke the menus again.)

Test #11

Kristy Kistic is offline   you may: quote & reply,
Old 01-17-2007, 02:05 PM   #31
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
This is a rollback to some previous code where I think the menus were working. I just want to verify that.

Test #11
The menus work fine again with this version.
stoffe is offline   you may: quote & reply,
Old 01-17-2007, 03:29 PM   #32
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
If you'll notice in the previous version the menu accelerators weren't showing, so I had tried to fix that and ended up breaking the menus again. So here's another try (at just the menus.)

Quote:
Originally Posted by stoffe -mkb-
It would be very handy if you show the line numbers as well. Since many 2DA files are indexed by line number and not row label (which I assume is what you call "Index" in your column labels) it would save you from having to count the lines manually if the row label does not match the line number.
I'll work on that.

Quote:
Originally Posted by stoffe -mkb-
As for the DLG Editor, there are no "Tooltip window" related errors showing any longer, but unfortunately the menus have returned to their old broken state in this version again.
It creates a debug log file now if it encounters that error, so you might want to check.

Test #12

Btw: What dialog are you trying to test drive? It would help if I was able to reproduce the error.

Kristy Kistic is offline   you may: quote & reply,
Old 01-17-2007, 03:56 PM   #33
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
It creates a debug log file now if it encounters that error, so you might want to check.

Test #12

Btw: What dialog are you trying to test drive? It would help if I was able to reproduce the error.
The menus are still messed up, unfortunately. The Debug Log file created contains the following:
Quote:
Originally Posted by The Debug Log
2007-01-17 21:49:55 RegisterClassEx Failed.
2007-01-17 21:49:55 CreateWindowEx with registered class failed.
I used the 003kreia.dlg file for testing (the first I found when grabbing a file to test with ). The problem happens when test-driving her first entry, the one about Atton, and then picking the "He's not a fool... well maybe he is" (or some such) reply option.

I've also noticed that this newest version displays the following error message when loading 003kreia.dlg, which did not happen earlier:
Quote:
Originally Posted by Kotor Dialog Viewer
Runtime error 457
This key is already associated with an element of this collection.
Clicking OK in this error message terminates the application.

stoffe is offline   you may: quote & reply,
Old 01-19-2007, 12:08 AM   #34
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Worked on the dialog viewer.
  • Complete menu rewrite. They work for me, but so did the old ones.
  • The test drive error only occurred for me when it reached the end of a dialog branch (and really wasn't an error). This has been removed. It will report any real errors, but if it suddenly just stops during a test drive then this would be an error the program wouldn't declare, but one that I would like to know about.
  • Runtime error 457 was a product of the old menus and shouldn't occur anymore.

Worked on the 2da editor.
  • Seperate column for the line index has been implemented.
  • Fixed the exit menu. (I had no code here at all - oops)
  • You can now sort the line index column.
  • Fixed this:

    Quote:
    Originally Posted by stoffe
    There also seems to be some problem if you sort the table by clicking on one of the colums and then do "Undo all changes" without first doing "Reset Sort" (both in the Tools menu) causing the line sequence to be messed up if you then save the file again.
    I'm not sure I ever would have noticed this myself.

Worked on Find in Files.
  • Fixed the exit menu. (I had no code here at all - double oops)
  • Implemented a replace in files feature. There is no undo for this other than making backups before using it. (I really needed this a week ago while altering a directory full of php scripts - but at least its available now.) The replace function is case sensistive.

NOTICE: volunteers needed to let me pull their hair.

Edit: -RH

Test #13


Last edited by RedHawke; 01-19-2007 at 01:28 AM.
Kristy Kistic is offline   you may: quote & reply,
Old 01-19-2007, 09:03 AM   #35
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
Worked on the dialog viewer.
Complete menu rewrite. They work for me, but so did the old ones.
That menu problem appears to be fixed in this version.... but another seems to have cropped up instead. The menus appear to work fine at first when loading the application and everything seems normal. But after having loaded a DLG file they all end up looking like this instead:


The other things you have fixed seems to work fine now though, at least as far as I've had time to test them so far.

stoffe is offline   you may: quote & reply,
Old 01-19-2007, 03:59 PM   #36
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
Quote:
Originally Posted by kristykistic
NOTICE: volunteers needed to let me pull their hair.
I've already got enough things causing me to rip chunks of my beard out right now I don't think I need to look anymore scraggly for somebody else.

However I'll keep test driving these updates to your tools to ensure you of a good nights sleep 2 months from now.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 01-20-2007, 02:31 AM   #37
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
Quote:
Originally Posted by Darkkender
I've already got enough things causing me to rip chunks of my beard out right now I don't think I need to look anymore scraggly for somebody else.

However I'll keep test driving these updates to your tools to ensure you of a good nights sleep 2 months from now.
Aww c'mon...it won't hurt...much Actually I was kinda hoping a female would volunteer. (We don't take to kindly to having our hair messed with, and that's exactly what would make it so much funnier. Ahem...)

All this just because I wanted to try my hand at owner drawn menus. Although I do like them, I'm not sure they're worth this much trouble. Anyway...

Test #14

Kristy Kistic is offline   you may: quote & reply,
Old 01-20-2007, 08:00 AM   #38
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by kristykistic
All this just because I wanted to try my hand at owner drawn menus. Although I do like them, I'm not sure they're worth this much trouble. Anyway...

Test #14
That version seems to have fixed the new menu problem as well. I haven't stumbled across any other bugs yet. I'll keep testing it though and post if I spot anything more.
stoffe is offline   you may: quote & reply,
Old 01-23-2007, 02:43 PM   #39
Kristy Kistic
Junior Member
 
Kristy Kistic's Avatar
 
Join Date: Sep 2004
Location: Louisiana
Posts: 300
I have uploaded another copy of the 2da editor.
  • I fixed an issue where it wasn't opening the passed file if associated with 2da files.
  • Various fixes to the row indexing when adding or removing rows.
  • Completely new GetOpenFileName Dialog (menu Open or Save As). This was originally referenced back in post #21. When I fixed it the first time it was still open to certain errors. So I need to know if the menus File / Open, File / Save As, and View / Flexgrid Font works ok. If they work properly I'll update my other programs with this.

Test #15

Kristy Kistic is offline   you may: quote & reply,
Old 01-24-2007, 08:14 AM   #40
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by Kristy Kistic
So I need to know if the menus File / Open, File / Save As, and View / Flexgrid Font works ok. If they work properly I'll update my other programs with this.

Test #15
They seemed to work fine here when I tested. Though the "Places" bar (or whatever it's called, the palette to the left containing quick-icons for Desktop, My Documents, My Computer etc...) seems to be missing in the Open and Save dialog boxes.
stoffe is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > T3-M4's Astromech Droid Center > Various Modding Tools (2DA, TLK, DLG, Search)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:02 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.