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

This project is meant for research purposes only.

How do I compare dlg files?

Page: 1 of 1
 Soltaris
01-01-2006, 7:42 PM
#1
I've been checking out a few new mods and ran accross a problem. When 2 mods have the same dlg file how can I compare the differences between them or combine them?

The conversation editor doesn't seem to load any of my dlg files, and I don't see an option to compare files in dlgeditor_224.
 90SK
01-01-2006, 7:54 PM
#2
If the dlg files are different in content, but same in filename, you can't combine them. You'd have to rename one of them and then modify the script that triggers it to look for the new name.
 Soltaris
01-01-2006, 8:21 PM
#3
Yikes, so getting Achilles' Unofficial Dialog Patch (http://www.freewebs.com/achilles01/miscellaneous.htm) to work with XL's NPC Jedi Training Robes (http://www.pcgamemods.com/mod/12151.html) is going to be really hard?

There can't be that many lines in Atton.dlg that are different. I thought I could simply copy the lines that were unique from one to the other and save.
 90SK
01-01-2006, 8:23 PM
#4
I'm not an expert, so I can't really say for sure. I'm just reiterating what I've picked up from my extended time here.
 Achilles
01-01-2006, 11:11 PM
#5
You can use TK102's GFF File Comparison utility (available from StarWarsKnights...the banner at the top). It will tell you exactly what needs to be changed.
 Soltaris
01-02-2006, 12:05 AM
#6
Thanks Achilles that was perfect :) I had no idea that would work on dlg's but it worked like a charm.

On another note I have a different problem maybe you can help me with. I noticed a thread of yours a while back which had a fix for a problem with a couple NPC's getting their unarmed feats reset. http://www.lucasforums.com/showthread.php?t=149222&highlight=k_inc_debug.nss)

Stoffe helped you out and you got it to work. But I'm still having trouble compiling it. It gives me a total execution time and no errors.

I used KOTOR tool to extract all the necessary files and got the following files in my directory:

nwnnsscomp.exe
nwscript.nss
k_inc_debug.nss
k_inc_drop.nss
k_inc_generic.nss
k_inc_gensupport.nss
k_inc_utility.nss
k_inc_walkways.nss
k_oei_hench_inc.nss
compile.bat <- nwnnsscomp.exe -c -g 2 k_oei_hench_inc.nss

I had copied and pasted the code in the 4 places just like stoffe said. I'm not certain what's wrong even after looking back through all the compiling tutorials I could find.

As for where I pasted the lines, the big function I put right after the void Do711UserDef(object oPartyMember,int pUserEvent); function.

The next piece of code for handmaiden was pasted right after int In711KOR = (sModuleName == "711KOR");.

The repeated code for baodur was pasted right after int In711KOR = (sModuleName == "711KOR");

The last code for baodur was pasted right after int In711KOR = (sModuleName == "711KOR");

I'm pretty sure that all looks right. If you don't know where the problem might lie is there any way you can make the ncs available for me to download?
 stoffe
01-02-2006, 11:15 AM
#7
compile.bat <- nwnnsscomp.exe -c -g 2 k_oei_hench_inc.nss


k_oei_hench_inc.nss is an include file, which is used by and compiled into other scripts. An include file cannot be compiled directly since it contains no main() or StartingConditional() function, which is needed as a starting point for a script.

For some reason nwnnsscomp.exe won't complain if you try to compile a script without a start function, but no NCS file will be generated.

Thus, you'll need to recompile the scripts that use the include file, not the include file itself. In this case the scripts you need to recompile are k_oei_spawn.nss and k_oei_userdef.nss.
 Soltaris
01-02-2006, 12:50 PM
#8
Thank you :) That worked fantastically and you even explained it in such a way that I can understand the concept of what needed to be done. Doing this manually was helpful and the knowledge I gained will surely aid me on other projects too.
Page: 1 of 1