PDA

View Full Version : (Hopefully) a quick question about .dlg files


Apprentice_Greenwood
04-22-2009, 04:58 PM
Hi, sorry if this has been answered elsewhere (I'm sure it will have been) but I can't find anything on it if so, and thought it wouldn't hurt to ask - is there a simple way to merge two identically named .dlg files from separate mods, as can be done with compatible files for JRLmerger, Convert2da etc., or would I need to manually add and edit every separate entry and value in a .dlg to build a new file? Failing that, is there a simple way to rename a .dlg and then get the correct script triggering to point to the renamed file? I have DLGEditor and the rest of the tools available up and running, but can't find anything to do this.

Also, the conversation editor in KOTOR Tool doesn't display anything in any area of any field when I use it to open a .dlg, and when I click the 'expand all nodes in the treeview' button, I get the 'unhandled error has occurred in your application' error message pop-up, both of which I'm guessing are abnormal behaviour, would fixing the KOTOR Tool issue likely provide me with what I'm looking for? Failing that, should I be doing this via KGFF instead, perhaps?

Apologies if this all seems like a stupid question, but I'm brand new to this and I'm picking stuff up by playing around with mods to make them compatible where I can (I figure this is a good way to learn what some of the basic functions in the various different file fields do, and observing the effects that come about) and up to now it's been working a treat, I just seem to have hit a wall. I can't find a tutorial to explain this aspect of .dlgs to me, so if anyone can help or point me in the direction of a thread I've missed, it'd be much appreciated.

Thanks for your time!

Ulmont
04-22-2009, 07:10 PM
Also, the conversation editor in KOTOR Tool doesn't display anything in any area of any field when I use it to open a .dlg, and when I click the 'expand all nodes in the treeview' button, I get the 'unhandled error has occurred in your application' error message pop-up, both of which I'm guessing are abnormal behaviour, would fixing the KOTOR Tool issue likely provide me with what I'm looking for? Failing that, should I be doing this via KGFF instead, perhaps?

KotOR Tool doesn't do well with Dialogue files, I suggust you use TK102's Dialogue Editor.

As for merging, do you mean you want two dialogues to be spoken by one person? Or do you want to dialogues to be able to be used without the filename conflicts?

Apprentice_Greenwood
04-23-2009, 02:59 AM
The later - as far as I can tell, the files are nearly identical, so I was wondering if there's just a simple way of tweaking them so they integrate into each other. If I have to go the KGFF route then I (think) know what I'm doing there, but I'm not sure whether the end result will produce the desired effects.

Robespierre
04-23-2009, 09:15 AM
The later - as far as I can tell, the files are nearly identical, so I was wondering if there's just a simple way of tweaking them so they integrate into each other. If I have to go the KGFF route then I (think) know what I'm doing there, but I'm not sure whether the end result will produce the desired effects.

According to the KotOR Tool manual in relation to dialogue files:

"[The KotOR Tool] allows you to insert new fields into GFF-format files (UT*, DLG, JRL etc...) present in the override folder and either assign the value directly or fetch it from a memorized StrRef or 2DA value. For example you could use it to insert new journal entries into a custom global.jrl file that another mod has already put in override."

"It allows you to modify GFF files that already exist in either the override folder or an ERF or RIM format archive file within the game folder or any of its sub-folders. You can also insert new GFF files into any such files."

I believe the only method of modifying DLG files used to be using GFF editors, which I believe used to be a massive pain, since its painstaking and frustrating. Since DLG editors came into existence, very few people (if anyone) still use the old method of GFF editing.

As such, I do not know how well you will be able to use KotOR tool (which I believe to be the only program capable of merging files appropriately) with regard to DLG files. I don't know how automated the program is, nor do I know how easy it is to merge DLG files using this method.

So: It's up to you. If the files really are that similar I would consider just finding the relevant nodes and merging the files normally, though if an old hand who has experience with DLG files could explain exactly how the KotOR tool merges DLG files, then I'm sure you could get a better answer.

Apprentice_Greenwood
04-23-2009, 09:37 AM
Thanks very much - that pretty much confirms what I'd suspected, so unless anyone happens to know of a miracle cure I'm yet to notice, manual it is.
I suppose that I'm just a little surprised that there isn't a feature similar to those available for .jrl's and .2da's, given both how frequently .dlg's conflict with one another, and how similar the majority of their structures usually are in these circumstances, but I also realise how much can be dependent on those .dlgs and that their very nature is pretty different to 2da and jrl files.
As I hopefully made clear above, it's more to do with experimentation and observation than achieving anything specific at this stage, so in many ways this approach will do me good anyhow. Cheers folks!