Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Tropico 2 Texts File

Need help translating games in other languages? Have your language problems solved here.
Post Reply
dijotp
n00b
Posts: 10
Joined: Sat Jun 20, 2009 2:47 pm
Has thanked: 4 times

Tropico 2 Texts File

Post by dijotp »

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_ ... KqLbqWnZe4
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: Tropico 2 Texts File

Post by WRS »

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:
michalss
Moderator
Posts: 954
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 161 times

Re: Tropico 2 Texts File

Post by michalss »

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/
Post Reply