Author Topic: Changing Existing Dialog  (Read 2399 times)

Sevarus

  • Guest
Changing Existing Dialog
« on: February 23, 2011, 12:38:07 PM »
Say I find an error with a dialog token that I would like to fix.  I don't want to add any extra lines, and it's from an original line from the vanilla game, so no TRA strings to fool around with.

Existing line:  "You, sir, are looking smashing." (Okay, this obviously isn't a real line, but you get the idea)
Changed:  "You, <SIRMAAM>, are looking smashing."

First I tried using NI to just change the dialog.tlk file itself.  The tokens didn't translate in game.  I would literally see <SIRMAAM>, not "Sir" or "Ma'am."  Plus I felt dirty straight up editing the tlk file itself  ;)

So I attempted to use WeiDU.  "Weidu dialogs\dshop2.d --tlkout dialog.tlk --out override.  Went in NI, refreshed the files, looked at "DSHOP2.DLG" and nothing changed! ???  Went back to the command prompt, "weidu dshop02.dlg"  Took a look... nothing changed.  Weird.

Is there something I'm missing?

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6250
  • Gender: Female
  • The perfect moment is now.
Re: Changing Existing Dialog
« Reply #1 on: February 23, 2011, 01:21:21 PM »
Usually you report to the fixpack for the particular game, and they fix it. If it's BG2, then it's BG2 Fixpack. If it's EasyTutu, there's an embedded text update component.

Sevarus

  • Guest
Re: Changing Existing Dialog
« Reply #2 on: February 23, 2011, 01:27:32 PM »
Yeah, I know, but this one is pretty much only useful to me.  I have romance hacks installed, and DSHOP02 is for the merchant in the Docks who sells you a necklace if you are romancing Jaheira.  Since my PC is a lady, I would prefer it if he would stop calling me "Sir"  ;D  And then, once I figure this one out, I can go and edit Galvarey's dialog and Wraith!Khalid's as well...

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Changing Existing Dialog
« Reply #3 on: February 23, 2011, 01:34:57 PM »
If you know the strref, you can create a simple tp2 that uses STRING_SET.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Sevarus

  • Guest
Re: Changing Existing Dialog
« Reply #4 on: February 23, 2011, 02:30:35 PM »
And is that safe to do with dialog.tlk entries added by mods, as well?  I've read that STRING_SET wasn't supposed to be used, back in the day, but it's safe now, correct?  If I screw something up, I can uninstall the changes and fix it?

Also, looking at the Game Text Update of the BG2 Fixpack, I see that they use a TPH file?  Will I need to do that, or can I do it all within the .tp2?

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Changing Existing Dialog
« Reply #5 on: February 23, 2011, 02:34:15 PM »
And is that safe to do with dialog.tlk entries added by mods, as well?  I've read that STRING_SET wasn't supposed to be used, back in the day, but it's safe now, correct?  If I screw something up, I can uninstall the changes and fix it?
It's safe to use and uninsalls correctly. If the string is mod-added, it might change positions after reinstalling - in that case, you're better off altering the mods' TRA (and possibly report the change to the mod author - even if you're changing 'him' to <PRO_HIMHER>' to support romance hacks, it could make sense to have such support built in the mod itself).

Quote
Also, looking at the Game Text Update of the BG2 Fixpack, I see that they use a TPH file?  Will I need to do that, or can I do it all within the .tp2?
Using a tph is for convenience, you can do everything in the tp2.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Sevarus

  • Guest
Re: Changing Existing Dialog
« Reply #6 on: February 23, 2011, 03:44:26 PM »
It appears I have success!!

I hope I didn't miss anything.  The only mod content I ended up having to fiddle with was Flirtpack.

Thanks a lot for your help.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: