XeNTaX
http://forum.xentax.com/

Baldur's Gate II EE - dialog.tlk unpack/repack
http://forum.xentax.com/viewtopic.php?f=35&t=17124
Page 1 of 1

Author:  Taner038 [ Wed Oct 11, 2017 7:38 pm ]
Post subject:  Baldur's Gate II EE - dialog.tlk unpack/repack

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.

Author:  WRS [ Sat Oct 14, 2017 12:45 am ]
Post subject:  Re: Baldur's Gate II EE - dialog.tlk unpack/repack

dead simple format

Code:
//--------------------------------------
//--- 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());

Author:  Taner038 [ Sat Oct 14, 2017 8:12 pm ]
Post subject:  Re: Baldur's Gate II EE - dialog.tlk unpack/repack

WRS wrote:
dead simple format

Code:
//--------------------------------------
//--- 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?

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/