Jump to content


Photo

Fixing something that's always bugged me...


  • Please log in to reply
8 replies to this topic

#1 ThunderPeel2001

ThunderPeel2001
  • Member
  • 74 posts

Posted 28 December 2017 - 04:44 PM

I really appreciate Qwinn's work on fixing typos throughout the game, but there's always been something about the dialogue that's bugged me, and continues to bug me: Proper nouns are not always capitalised, as they should be, making the dialogue a little difficult to read at times. At least for me.

 

For example: 

 

4UxgsHS.png

 

In this example, Abishai and Githzerai should be capitalised in the same way we'd capitalise American, Spaniard, or Martian. This is standard for English (even though it varies for other languages).

 

Which files is the dialogue stored in? And what tools can I use to change this? (And possibly release it wider, if others want it, too?)

 

Thanks very much for any assistance.


Edited by ThunderPeel2001, 28 December 2017 - 04:48 PM.


#2 -pedantic-

-pedantic-
  • Guest

Posted 28 December 2017 - 07:17 PM

Abishai and githzerai are common nouns, not proper nouns, and therefore

should not be capitalized.

 

 



#3 ThunderPeel2001

ThunderPeel2001
  • Member
  • 74 posts

Posted 29 December 2017 - 02:37 AM

You are probably right, but i think its debatable given the context. We certainly capitalise races in English sometimes (like in my examples). Personally I would find it easier to read.

Either way, Im looking for modding assistance :) Just a few pointers would be greatly appreciated. Thanks.

Edited by ThunderPeel2001, 29 December 2017 - 02:41 AM.


#4 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 4770 posts

Posted 29 December 2017 - 04:50 AM

a Clueless kid... :lol:

... in this case the Ebb Creakknees dialog file(.dlg) needs to be found nad recompiled with a REPLACE_TEXTUALLY action. And then the same needs to be done with everyother .dlg -file. That's done ...

 

EDIT, or more like:

ACTION_FOR_EACH dialog IN ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ BEGIN
  ACTION_IF FILE_EXISTS_IN_GAME ~%dialog%.dlg~ BEGIN
    COPY_EXISTING ~%dialog%.dlg~ ~override~
      PATCH_IF SOURCE_SIZE > 0x34 BEGIN
        DECOMPILE_AND_PATCH
        REPLACE_TEXTUALLY CASE_SENSITIVE EXACT_MATCH ~abishai~ ~Abishai~
        REPLACE_TEXTUALLY CASE_SENSITIVE EXACT_MATCH ~githzerai~ ~Githzerai~
        END
      END
    BUT_ONLY
  END
END

Where you place the dialog files name in to the *'s.


Edited by The Imp, 29 December 2017 - 05:04 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#5 ThunderPeel2001

ThunderPeel2001
  • Member
  • 74 posts

Posted 29 December 2017 - 06:25 AM

Ha. Good point! I didn't notice that Clueless was capitalised... X)

 

Is replace REPLACE_TEXTUALLY something I use with Near Infinity? I've Googled and all I see are lots of questions relating to it...

 

Edit: Ah, it's a WeiDU thing. Thanks!



#6 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 4770 posts

Posted 29 December 2017 - 07:34 AM

It's a weidu's .tp2 action... aka to make this mod, you just need to use the Near Infinity tofind all the .dlg files you want to fix, and then build the mod, by getting a weidu.exe from the PPG, or any of the mods you already installed(as it's the setup-modname.exe -file), then make a mod folder, say "PSTspelling", then copy the weidu.exe and rename that as setup-PSTspelling.exe, and make a new .txt file, name is as a setup-PSTspelling.tp2, and edit that with Notepad, and have this code in it:

BACKUP ~PSTspelling/backup~
AUTHOR ~ThunderPeel2001~
BEGIN ~Spelling fixes for PST~
ACTION_FOR_EACH dialog IN ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ BEGIN 
ACTION_IF FILE_EXISTS_IN_GAME ~%dialog%.dlg~ BEGIN 
COPY_EXISTING ~%dialog%.dlg~ ~override~ 
PATCH_IF SOURCE_SIZE > 0x34 BEGIN 
DECOMPILE_AND_PATCH REPLACE_TEXTUALLY CASE_SENSITIVE EXACT_MATCH ~abishai~ ~Abishai~ 
REPLACE_TEXTUALLY CASE_SENSITIVE EXACT_MATCH ~githzerai~ ~Githzerai~ 
END 
END 
BUT_ONLY 
END 
END

Save the file, and run the .exe, simple ? Surprice, now you know the basics of Weidu coding, now. Whell...


Edited by The Imp, 29 December 2017 - 08:59 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#7 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Member
  • 1502 posts

Posted 29 December 2017 - 09:17 AM

It's a weidu's .tp2 action... aka to make this mod, you just need to use the Near Infinity tofind all the .dlg files you want to fix, and then build the mod, by getting a weidu.exe from the PPG, or any of the mods you already installed(as it's the setup-modname.exe -file), then make a mod folder, say "PSTspelling", then copy the weidu.exe and rename that as setup-PSTspelling.exe, and make a new .txt file, name is as a setup-PSTspelling.tp2, and edit that with Notepad, and have this code in it:
BACKUP ~PSTspelling/backup~
AUTHOR ~ThunderPeel2001~
BEGIN ~Spelling fixes for PST~
ACTION_FOR_EACH dialog IN ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ BEGIN 
ACTION_IF FILE_EXISTS_IN_GAME ~%dialog%.dlg~ BEGIN 
COPY_EXISTING ~%dialog%.dlg~ ~override~ 
PATCH_IF SOURCE_SIZE > 0x34 BEGIN 
DECOMPILE_AND_PATCH REPLACE_TEXTUALLY CASE_SENSITIVE EXACT_MATCH ~abishai~ ~Abishai~ 
REPLACE_TEXTUALLY CASE_SENSITIVE EXACT_MATCH ~githzerai~ ~Githzerai~ 
END 
END 
BUT_ONLY 
END 
END

Save the file, and run the .exe, simple ? Surprice, now you know the basics of Weidu coding, now. Whell...

Strings are not in the dialogue files, only references to the tlk table. You'll need STRING_SETs or somesuch since actual string contents are in dialog.tlk.


Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#8 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 4770 posts

Posted 29 December 2017 - 11:02 AM

Yeah, probably...


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#9 ThunderPeel2001

ThunderPeel2001
  • Member
  • 74 posts

Posted 29 December 2017 - 02:23 PM

Thanks for help everyone, I found this guide which is very helpful: http://forums.pocket....php?topic=55.0

 

Unfortunately the more you play with an eye for capitalisation, the more you see it's all over the place. Sometimes it's Hive, sometimes it's hive. Sometimes it's Clueless, sometimes it's clueless. Sometimes it's Planes, sometimes it's planes. Ugh.

 

It seems that standardising everything would be quite a large task! :-/


Edited by ThunderPeel2001, 29 December 2017 - 02:26 PM.