READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Baldur's Gate II EE - dialog.tlk unpack/repack

Need help translating games in other languages? Have your language problems solved here.
Post Reply
Taner038
mega-veteran
mega-veteran
Posts: 171
Joined: Fri Aug 22, 2014 6:14 pm
Has thanked: 11 times
Been thanked: 5 times

Baldur's Gate II EE - dialog.tlk unpack/repack

Post by Taner038 » Wed Oct 11, 2017 7:38 pm

Hi,

I want to translated this game, but I can't open this file.

I search form and find nothing :)

Sample: http://www.mediafire.com/file/p4y9bouji ... dialog.tlk

Please help.

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 132 times

Re: Baldur's Gate II EE - dialog.tlk unpack/repack

Post by WRS » Sat Oct 14, 2017 12:45 am

dead simple format

Code: Select all

//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: dialog.tlk
// Author: wrs
// Revision: 1
// Purpose: parse dialog.tlk
//--------------------------------------

byte fluff[10]; // magic "TLK V1  \0\0"
uint num;
uint offset; // absolute

struct info
{
  short rev;
  char ref[8];
  int zero1, zero2; Assert(zero1==0); Assert(zero2==0);
  int offset; // absolute
  int length;
} a[num] <optimize=false>;

byte data[FileSize()-offset];
Assert(FEof());
Useful tool links:

Taner038
mega-veteran
mega-veteran
Posts: 171
Joined: Fri Aug 22, 2014 6:14 pm
Has thanked: 11 times
Been thanked: 5 times

Re: Baldur's Gate II EE - dialog.tlk unpack/repack

Post by Taner038 » Sat Oct 14, 2017 8:12 pm

WRS wrote:dead simple format

Code: Select all

//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: dialog.tlk
// Author: wrs
// Revision: 1
// Purpose: parse dialog.tlk
//--------------------------------------

byte fluff[10]; // magic "TLK V1  \0\0"
uint num;
uint offset; // absolute

struct info
{
  short rev;
  char ref[8];
  int zero1, zero2; Assert(zero1==0); Assert(zero2==0);
  int offset; // absolute
  int length;
} a[num] <optimize=false>;

byte data[FileSize()-offset];
Assert(FEof());
Thx a lot. But how do I use 010 Editor?
Can you share extract.cmd for this?

Post Reply