goedmonton

Opening dialog.tlk file for KOTOR 1 and 2?

Recommended Posts

I want to create a dialogue/conversation guide for KOTOR 1 and 2

But I don't know what to do with the dialog.tlk

I don't know what software/tools to use to open it up and turn it into something that I can read

got any tips or recommendation

Share this post


Link to post
Share on other sites

It's a collection of commandline tools. Assuming you are on Windows, you'll need to run it from a command prompt, AKA a DOS box. Running each tool without arguments will display their built-in help.

BioWare TLK to XML converter

Usage: tlk2xml [<options>] <input file> [<output file>]
  -h      --help              This help text
          --version           Display version information

          --cp1250            Read TLK strings as Windows CP-1250
          --cp1251            Read TLK strings as Windows CP-1251
          --cp1252            Read TLK strings as Windows CP-1252
          --cp932             Read TLK strings as Windows CP-932
          --cp936             Read TLK strings as Windows CP-936
          --cp949             Read TLK strings as Windows CP-949
          --cp950             Read TLK strings as Windows CP-950
          --utf8              Read TLK strings as UTF-8
          --utf16le           Read TLK strings as little-endian UTF-16
          --utf16be           Read TLK strings as big-endian UTF-16

          --nwn               Use Neverwinter Nights encodings
          --nwn2              Use Neverwinter Nights 2 encodings
          --kotor             Use Knights of the Old Republic encodings
          --kotor2            Use Knights of the Old Republic II encodings
          --jade              Use Jade Empire encodings
          --witcher           Use The Witcher encodings
          --dragonage         Use Dragon Age encodings
          --dragonage2        Use Dragon Age II encodings

If no output file is given, the output is written to stdout.

There is no way to autodetect the encoding of strings in TLK files,
so an encoding must be specified. Alternatively, the game this TLK
is from can be given, and an appropriate encoding according to that
game and the language ID found in the TLK is used.

To make your life easier, just download this batch file and drop it into the same folder as the tool and TLK. Double click it and follow the instructions.

TLK_to_XML.bat

Share this post


Link to post
Share on other sites
7 minutes ago, DarthParametric said:

It's a collection of commandline tools. Assuming you are on Windows, you'll need to run it from a command prompt, AKA a DOS box. Running each tool without arguments will display their built-in help.


BioWare TLK to XML converter

Usage: tlk2xml [<options>] <input file> [<output file>]
  -h      --help              This help text
          --version           Display version information

          --cp1250            Read TLK strings as Windows CP-1250
          --cp1251            Read TLK strings as Windows CP-1251
          --cp1252            Read TLK strings as Windows CP-1252
          --cp932             Read TLK strings as Windows CP-932
          --cp936             Read TLK strings as Windows CP-936
          --cp949             Read TLK strings as Windows CP-949
          --cp950             Read TLK strings as Windows CP-950
          --utf8              Read TLK strings as UTF-8
          --utf16le           Read TLK strings as little-endian UTF-16
          --utf16be           Read TLK strings as big-endian UTF-16

          --nwn               Use Neverwinter Nights encodings
          --nwn2              Use Neverwinter Nights 2 encodings
          --kotor             Use Knights of the Old Republic encodings
          --kotor2            Use Knights of the Old Republic II encodings
          --jade              Use Jade Empire encodings
          --witcher           Use The Witcher encodings
          --dragonage         Use Dragon Age encodings
          --dragonage2        Use Dragon Age II encodings

If no output file is given, the output is written to stdout.

There is no way to autodetect the encoding of strings in TLK files,
so an encoding must be specified. Alternatively, the game this TLK
is from can be given, and an appropriate encoding according to that
game and the language ID found in the TLK is used.

To make your life easier, just download this batch file and drop it into the same folder as the tool and TLK. Double click it and follow the instructions.

TLK_to_XML.bat

Thanks DarthParametric

got any other tips or recommendations to creating a dialogue/conversation guide

Share this post


Link to post
Share on other sites

Not really, other than that most actual conversations are in module-specific DLG files, not the TLK, in terms of the actual structure of a conversation (only the text strings are in the TLK). For that you'd be better off with DLGEditor - http://www.starwarsknights.com/mtools/dlgeditor_232.zip

You'll still want the converted TLK if you plan on copying and pasting lines to a guide, but they are not stored in any human-friendly order, so you'll need the DLGEditor in order to have a logical way to peruse the branches of specific conversations.

Share this post


Link to post
Share on other sites
4 minutes ago, DarthParametric said:

Not really, other than that most actual conversations are in module-specific DLG files, not the TLK.

how do I access that?

Share this post


Link to post
Share on other sites
22 minutes ago, DarthParametric said:

Not really, other than that most actual conversations are in module-specific DLG files, not the TLK, in terms of the actual structure of a conversation (only the text strings are in the TLK). For that you'd be better off with DLGEditor - http://www.starwarsknights.com/mtools/dlgeditor_232.zip

You'll still want the converted TLK if you plan on copying and pasting lines to a guide, but they are not stored in any human-friendly order, so you'll need the DLGEditor in order to have a logical way to peruse the branches of specific conversations.

problem

starwarsknights sit wont open so i downloaded a dlg editor here

is that the same?

 

Share this post


Link to post
Share on other sites
4 minutes ago, DarthParametric said:

Seems to work if you download it via the page rather than the direct link, but yes, the DS hosted one should be the same (I forgot it was also here).

I downloaded it, now I don't know what to do?

Share this post


Link to post
Share on other sites

Could any experienced modders here help me fix 3 mistakes in eXtensive Dialog Overhaul 1.3, please? Its author has been inactive since February, and I cannot even open that file with any of the tlk editors available on this site (including the one in the message above). The tlk editors either run but hang up indefinitely once I try to load the dialog.tlk, or do not run at all. 

Here's a list of the mistakes in question:

https://deadlystream.com/files/file/2216-extensive-dialog-overhaul/?do=findComment&comment=11785&tab=comments

It'd be much appreciated if you could download eXtensive Dialog Overhaul 1.3 and make the respective changes in it, and then upload your dialog.tlk to a filesharing service so that I could access it there. 

 

*** Never mind, I managed to open that tlk file using KOTOR Tool's TLK Editor and fixed those mistakes there. ***

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.