The Black Wyrm's Lair - Forums

Mod development resources & discussion => The Modder's Tools => Topic started by: Baronius on November 20, 2005, 12:38:43 AM

Title: Infinity Engine Talk Table Editor
Post by: Baronius on November 20, 2005, 12:38:43 AM
INFINITY ENGINE TALK TABLE EDITOR

WEBSITE: http://www.blackwyrmlair.net/Tools/tlkeditor.php (http://www.blackwyrmlair.net/Tools/tlkeditor.php)

I finished its development a few months ago, but could not release it so far. Now I have made the documentation, so TLKEditor is ready to work with your dialog.tlk-s. :)
Please inform me if you encounter any problem/bug while using this program.
Title: Infinity Engine Talk Table Editor
Post by: Vlad on November 20, 2005, 09:44:55 AM
Great! Thank you Baronius!
Title: Infinity Engine Talk Table Editor
Post by: Baronius on November 23, 2005, 04:42:39 PM
I hope you (and everyone who will use it) will be satisfied :). Remember, its the initial version and might contain bugs. :)
Title: Infinity Engine Talk Table Editor
Post by: Vlad on January 01, 2006, 09:09:10 PM
There is a very minor issue in the editor. When you create a new string, then write/type, and then save the dialogue, the program leaves many blank lines between the written lines inside the string.
Title: Infinity Engine Talk Table Editor
Post by: Baronius on January 02, 2006, 10:58:33 PM
I have found the problem. BG2 (and possibly other IE games) doesn't interpret the CR/LF (carriege return/linefeed) characters in the usual way when reading from the talk table file. I'll alter the relevant functions.

I didn't notice this when developing TLKEditor because I made my tests with BG1 and it doesn't seem to have any problems in this respect.

I will release a newer version of TLKEditor as soon as possible. Thanks a lot for your report, Vlad!
Title: Infinity Engine Talk Table Editor
Post by: Baronius on September 14, 2006, 11:47:43 PM
Version 1.03 has been released.  Only an old bug was fixed. (Advanced search refused to work after changes were saved to TLK, it was required to restart TLK Editor.)
Title: Infinity Engine Talk Table Editor
Post by: Ulicus on March 23, 2008, 12:49:14 AM
Thanks for this, Baronius, it's great!  Just the sort of easy-to-use editing system I was looking for.  :thumb:

There's one slight problem that I've noticed, however.  Whenever I edit a block of text that contains "<CHARNAME>", the game seems to get confused and - instead of displaying my character's name - it will actually display "<CHARNAME>" in the in-game text.  Is there any way around this? Am I just being an idiot?

Ah well, even if there's nothing that can be done, thanks for the editor once more!  ^_^
Title: Infinity Engine Talk Table Editor
Post by: Baronius on March 23, 2008, 01:36:38 AM
Glad to read you're satisfied with this small tool! :)

QuoteThere's one slight problem that I've noticed, however. Whenever I edit a block of text that contains "<CHARNAME>", the game seems to get confused and - instead of displaying my character's name - it will actually display "<CHARNAME>" in the in-game text. Is there any way around this? Am I just being an idiot?
If it happens, it has a reason which isn't your mistake. Hopefully, we will find the source of the problem.

First of all, I suppose you meant it displays "<CHARNAME>" in the game but without the quotes (i.e. you used quotes in your post to enclose <CHARNAME> but they don't actually appear in the game).

Did you copy & paste text from somewhere, e.g. from another editor (such as Microsoft Word) into the text box of IE Talk Table Editor? Did the pasted text contain <CHARNAME> (if the question makes sense)? Did the entry include <CHARNAME> in advance and you edited other parts of it, or did you type CHARNAME manually, i.e. added it to an entry that didn't contain it?

Could you tell the exact scenario? For example, "I open the TLK file, edit the string with <CHARNAME>, and then I press F5". What other steps do you do meanwhile? I guess you can easily reproduce the bug (does it happen always when you edit such an entry)?
Title: Infinity Engine Talk Table Editor
Post by: Ulicus on March 23, 2008, 01:53:38 AM
Thanks for the quick response.

Quote from: Baronius on March 23, 2008, 01:36:38 AMGlad to read you're satisfied with this small tool!  :)
Most satisfied.

I'm pleased I've finally been able to rewrite Jaheira's biography, for one thing.  The one BioWare wrote (with her birth placed during the Tethyrian civil war) meant she was in her early twenties... which was odd.  :wacko:

Quote from: Baronius on March 23, 2008, 01:36:38 AMFirst of all, I suppose you meant it displays "<CHARNAME>" in the game but without the quotes (i.e. you used quotes in your post to enclose <CHARNAME> but they don't actually appear in the game).
Aye, that's what I meant.

Quote from: Baronius on March 23, 2008, 01:36:38 AMDid you copy & paste text from somewhere, e.g. from another editor (such as Microsoft Word) into the text box of IE Talk Table Editor? Did the pasted text contain <CHARNAME> (if the question makes sense)?
Nope, no copying and pasting.

Quote from: Baronius on March 23, 2008, 01:36:38 AMDid the entry include <CHARNAME> in advance and you edited other parts of it, or did you type CHARNAME manually, i.e. added it to an entry that didn't contain it?
The problem occurs in either situation.

I first noticed it when I edited other parts of an entry that already included CHARNAME, however.  Then started to experiment. (Inserting my own CHARNAME, etc)

Quote from: Baronius on March 23, 2008, 01:36:38 AMCould you tell the exact scenario? For example, "I open the TLK file, edit the string with <CHARNAME>, and then I press F5". What other steps do you do meanwhile? I guess you can easily reproduce the bug (does it happen always when you edit such an entry)?
Yeah, it has happened every time so far.

Here's exactly what I do in the format you requested:

"I open the TLK file, edit a string that contains <CHARNAME>, and then I press F5.  From this point foward, the game displays that string's instance of <CHARNAME> as '<CHARNAME>', instead of 'John Doe/Whoever' "
Title: Infinity Engine Talk Table Editor
Post by: Baronius on March 23, 2008, 03:00:04 AM
It might be some character conversion problem.

What operating system do you have?

I suppose it's a too big request, but could you send me your dialog.tlk?
Title: Infinity Engine Talk Table Editor
Post by: Ulicus on March 23, 2008, 03:34:44 AM
Ah, I've sorted it out now.

I had the "BG2-specific StrRefs" box unchecked.   :blush:

It was just me being an idiot after all!  Sorry for wasting your time. (I'll go and, uh, hide under a rock....)
Title: Infinity Engine Talk Table Editor
Post by: Baronius on March 23, 2008, 04:14:50 AM
Quote from: UlicusIt was just me being an idiot after all! Sorry for wasting your time. (I'll go and, uh, hide under a rock....)

Quote from: BaroniusIf it happens, it has a reason which isn't your mistake.

:)

IE Talk Table Editor should automatically set that flag to true (i.e. tick the checkbox) when it detects it's a BG2 TLK. If it's a usual BG2 dialog.tlk, the detection should always be successful when you open the file. But for some reason, it was not ticked for you. Perhaps you removed the tick, I don't know. Nonetheless, it's still not your mistake, because IE Talk Table Editor could also consider all StrRefs BG2-specific (because as far as I know, none of the IE games are unhappy if they have to read StrRefs of type seven -- these are BG2's usual StrRefs).

Nevermind, it's now solved. Don't hesitate to return if you need any more assistance, Ulicus.