XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Nov 20, 2017 1:33 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Baldur's Gate II EE - dialog.tlk unpack/repack
PostPosted: Wed Oct 11, 2017 7:38 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Aug 22, 2014 6:14 pm
Posts: 169
Has thanked: 9 times
Have thanks: 5 times

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.

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Baldur's Gate II EE - dialog.tlk unpack/repack
PostPosted: Sat Oct 14, 2017 12:45 am 
Offline
ultra-veteran
ultra-veteran

Joined: Fri Nov 06, 2009 12:13 am
Posts: 592
Has thanked: 70 times
Have thanks: 127 times
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());

_________________
Useful tool links:


Top
 Profile  
 
 Post subject: Re: Baldur's Gate II EE - dialog.tlk unpack/repack
PostPosted: Sat Oct 14, 2017 8:12 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Aug 22, 2014 6:14 pm
Posts: 169
Has thanked: 9 times
Have thanks: 5 times
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?



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group