XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Dec 13, 2018 10:35 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Tropico 2 Texts File
PostPosted: Sun Jun 01, 2014 1:56 pm 
Offline
n00b

Joined: Sat Jun 20, 2009 2:47 pm
Posts: 10
Has thanked: 4 times
Have thanks: 0 time

Hi everyone.

I would like to translate Tropico 2 but I can not edit the texts.

I have been analyzing the file with a hex editor, but I could not understand much.

I would appreciate if you could help me.

The only thing I noticed was:
  • Header contains 16 bytes.
  • First 4 bytes is the file ID (75 B1 C0 BA).
  • Third 4 bytes is pointer with data in file.
  • Fourth 4 bytes is size file.

RAR file with file in multiple languages: https://mega.co.nz/#!44YXHCQZ!B0_iW7ID_PsQg8QcaExYxrixcpajLHAlKKqLbqWnZe4

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Tropico 2 Texts File
PostPosted: Sat Nov 08, 2014 8:49 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Fri Nov 06, 2009 12:13 am
Posts: 595
Has thanked: 72 times
Have thanks: 132 times
hello

i have spent time looking at this format. i can parse the entire thing but haven't finished writing up the code for unpacking to a format you could edit for translations.

overview;

  • 16 byte header (magic, unknown, footer block, size)
  • backwards recursive resource structures - starting from the footer block) - offsets are signed
  • strings are stored in 2 ways; the blob after the header, and inlined (if < 4 characters)
  • also this format includes more than 1 language for special "nati" entries

pm me if you want to continue my work (c# source)

edit

i've dumped the languages here:
https://mega.co.nz/#!F9Yn0ACB!kglwD7jev ... qhqTX5WILQ

beware the encoding of the output and string data is different (utf8)

_________________
Useful tool links:


Top
 Profile  
 
 Post subject: Re: Tropico 2 Texts File
PostPosted: Sun Nov 09, 2014 8:18 pm 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 941
Has thanked: 10 times
Have thanks: 130 times
hmm i was thinking abut there is something allrady.... Just cannot remeber where i have seen it


_________________
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/


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 1 guest


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