lfnetwork.com mark read register faq members calendar

Thread: Monkey Island SE translator
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 11-30-2009, 05:49 PM   #1
koun
Rookie
 
Join Date: Jul 2009
Posts: 11
Cool Guy Monkey Island SE translation tool

This tool is intended to ease the task of translating the Monkey Island SE.

Requirements:
-Monkey Island SE (got mine from Steam)
-Java 1.5+ (latest Java 6 recommended)

HowTo:
-copy the following 3 files to a new directory:
-- "misetran.jar" (download link at the end of this post)
-- "speech.info" from "C:\Program files\Steam\steamapps\common\the secret of monkey island special edition\audio" or similar
-- "uiText.info" from "C:\Program files\Steam\steamapps\common\the secret of monkey island special edition\localization" or similar
-run the following command:
java -jar misetran.jar speech.info uiText.info
(add paths where necessary)

-all changes are saved immediately, so you can close the tool at any time
-to test your (partial) translation copy the 2 files back overwriting the ones in the MI-SE subdirectories (always keep backups!!!) and play the game with the first non-English language selected

the translator keeps the English text, stores your translation in place of the first non-English language and uses the other languages to store it's data

You can copy your translation over any language of an existing speech.info or uiText.info using the following command:
java -cp misetran.jar Copy inFile outFile inLang outLang type
inFile: the file to copy a translation from
outFile: the file to copy a translation to
inLang: number of the language to copy from the source file (0 = english, 1-4 = the 4 translations [1 = your translation])
outLang: number of the language to overwrite in the target file (0 = English, 1-4 = the 4 translations]) [not sure if overwriting English is a good idea]
type: "speech" or "uitext" (if this is wrong the target file will be corrupted. keep backups)

NOTE:
this tool is released for free, but also AS IS. the translator has only been tested roughly. the copy tool is untested.

Download:
http://rapidshare.com/files/314488893/misetran.jar

Please post feedback, questions, bug reports and so on in this thread.

Last edited by koun; 12-06-2009 at 04:39 PM. Reason: made title more clear
koun is offline   you may: quote & reply,
Old 04-30-2010, 09:03 AM   #2
LucaT
Lurker
 
Join Date: Apr 2010
Posts: 1
How it work

Hi, i'm new on the forum and i'm intersted to your utility...

But i'd like to know exatly how it work.

So i can made changes in the speech.info and then use your utility to bind it to uiText.info?

Also, i get some errors when run command line :

Microsoft Windows XP [Versione 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Luca\Desktop\MISE>java -jar misetran.jar speech.info u
iText.info
java.io.EOFException
at java.io.RandomAccessFile.readFully(Unknown Source)
at java.io.RandomAccessFile.readFully(Unknown Source)
at FileIO.readData(FileIO.java:82)
at SubsTableModel.<init>(SubsTableModel.java:15)
at Main.main(Main.java:54)
java.lang.NullPointerException
at SubsTableModel.<init>(SubsTableModel.java:17)
at Main.main(Main.java:54)


Thanks
LucaT is offline   you may: quote & reply,
Old 05-07-2010, 01:41 PM   #3
paprik123456
Rookie
 
paprik123456's Avatar
 
Join Date: Jun 2007
Location: Roswell
Posts: 60
Current Game: Indiana jones
This is very cool!


2D/3D Artist and Animator
Patrik Spacek
paprik123456 is offline   you may: quote & reply,
Old 07-10-2010, 04:42 AM   #4
kenand
Rookie
 
Join Date: Sep 2009
Posts: 51
Please translate tool for MISE 2
Lucas changed speech.info and uitext.info. Separated them.. (en. fr. etc)
Old tool do not work

Last edited by kenand; 07-10-2010 at 05:04 AM.
kenand is offline   you may: quote & reply,
Old 07-10-2010, 05:30 PM   #5
koun
Rookie
 
Join Date: Jul 2009
Posts: 11
I currently do not plan to work on a translator for the new SE. For the first tool there was no feedback (except for maybe 2 people). If nobody cares to write a few lines about what he liked or didn't like about the tool, then I just don't have the motivation to spend my evenings coding a new tool. Also I remember only like one single instance of someone posting that he actually did a translation using the tool, so there doesn't seem to be much need for it. I still might look into it to see how easy i can adapt the code, but don't expect it anytime soon.
koun is offline   you may: quote & reply,
Old 07-14-2010, 12:07 PM   #6
kenand
Rookie
 
Join Date: Sep 2009
Posts: 51
Dear Koun,
I wrote you, I like your great tool.
I and my friend made full Hungarian translation of Monkey Island SE
Your translation tool was great. My work was much much easier, than I used hex editor....
I would like to translate MISE 2, but my work will be much much hard without your great tool.

Last edited by kenand; 07-16-2010 at 10:44 AM.
kenand is offline   you may: quote & reply,
Old 07-16-2010, 04:56 AM   #7
Dunstan
Rookie
 
Join Date: Jul 2010
Posts: 11
Yes, please, Koun, would you be so kind and modify your program to handle Monkey2SE texts, too? I promise to give you feedback, just please, please... I have a complete Monkey2 translation, but I can't insert it into the localization files with a hex editor, because some sentences are too long.

Last edited by Dunstan; 07-16-2010 at 05:05 AM.
Dunstan is offline   you may: quote & reply,
Old 07-19-2010, 01:14 PM   #8
ronzbig1
Rookie
 
Join Date: Sep 2008
Posts: 14
I'd also like to ask you for this tool. I know we were ungrateful with feedback, but everyone hasn't much time. Without your help it would be extremely difficult to translate game.
ronzbig1 is offline   you may: quote & reply,
Old 07-19-2010, 02:31 PM   #9
paprik123456
Rookie
 
paprik123456's Avatar
 
Join Date: Jun 2007
Location: Roswell
Posts: 60
Current Game: Indiana jones
..do it Koun... no question..

no response about your tool, but hundreds people use it


2D/3D Artist and Animator
Patrik Spacek
paprik123456 is offline   you may: quote & reply,
Old 07-27-2010, 01:54 PM   #10
TheHutt
Rookie
 
TheHutt's Avatar
 
Join Date: Oct 2009
Location: Germany
Posts: 24
I really really would appreciate a translation tool for MI2. The first one I didn't come around using, because the first SE contained 5 translations already, including the old German one. For the second one, I would like to restore the classic German translation of the DOS version which has been practically butchered for the SE release.
TheHutt is offline   you may: quote & reply,
Old 08-30-2010, 09:14 AM   #11
Dunstan
Rookie
 
Join Date: Jul 2010
Posts: 11
For those who'd like to write a translator for Mi2SE:

The fr.uitext.info's format is the following:

Byte 0-3: identifying data(?)
Byte 4-10131 index table
Byte 10131- localization data in pointer text - localization text format separated by 00 bytes.


The index table contains reversed 4 byte values (for example hex 90 27 00 00 -> hex 00 00 27 90), every value corresponds to one of the pointer texts (like MENU_PLAY_NEW_GAME) or one of the localized texts (like NOUVELLE PARTIE).
There is an offset value for every element in the index table which is i*4 where i is the element's position in the table (starting with 1). In the case of the first index of the table which points to 'MENU_PLAY_NEW_GAME' by value 00 00 27 90, the correct address would be 00 00 27 94, the second index, which is the translated text 'NOUVELLE PARTIE' 00 00 27 9F, the correct address is 00 00 27 A7.

The correct addresses of the n-th item are:

pointer text of the n-th item: (2*(n)-1)-th element of the index table+4*(2*n-1)
localized text of the n-th item: (2*n)-th element of the index table+4*(2*n)

where n starts with 1.

I hope it helps.
Dunstan is offline   you may: quote & reply,
Old 09-04-2010, 09:42 AM   #12
Dunstan
Rookie
 
Join Date: Jul 2010
Posts: 11
The format of the fr.speech.info is the following:

byte 0-3 : identification data (?)
byte 4-279203 : index table in 32 byte records (8725 entries)
byte 279204- : localization text in pointer text - English original - translation format separated by bytes 00.

The index table's 32 byte records contain pointers to the actual speech file, and to the localization data in this file. Bytes 20-31 contain the three 4-byte reversed pointers, bytes 20-23 for the pointer text (like 'GUY_4_shore_11_1a'), bytes 24-27 for English original (like 'It doesn't seem to open.'), bytes 28-31 for the translation (like 'Ça n'a pas l'air de s'ouvrir.'). Reversed values mean, the actual value of the pointer is byte0+256*byte1+256*256*byte2+256*256*256*byte3. Pointers have an offset which is the position of the first byte in the file. So correct pointers for the n-th item are:

pointer text of the n-th item: (value from the reversed 4 bytes starting at position 4+(n-1)*32+20) + 4+(n-1)*32+20
English original of the n-th item: (value from the reversed 4 bytes starting at position 4+(n-1)*32+24) + 4+(n-1)*32+24
localized text of the n-th item: (value from the reversed 4 bytes at position 4+(n-1)*32+28) + 4+(n-1)*32+28

Where n starts with 1.

Hope it helps.

Last edited by Dunstan; 09-04-2010 at 09:47 AM.
Dunstan is offline   you may: quote & reply,
Old 10-07-2010, 10:44 PM   #13
edbusana
Lurker
 
Join Date: Oct 2010
Posts: 3
SPEECH.info and uiTEXT.info

Is there any tool to easily edit these files to a translation?
edbusana is offline   you may: quote & reply,
Old 10-20-2010, 06:02 AM   #14
dante999
Lurker
 
Join Date: Oct 2010
Posts: 4
hi~
thanks! good tool
can you edit or make font?
i try translate .. use your tool... but not work! because font
base font is not support my language
dante999 is offline   you may: quote & reply,
Old 10-24-2010, 10:19 AM   #15
kenand
Rookie
 
Join Date: Sep 2009
Posts: 51
You should edit font, because MISE 1 and MISE 2 also use png files to fonts.
I edited font files to Hungarian language support.
Hungarian language contains some extra characters. I edited some unused characters to Hungarian. I replaced characters in uitext.info and speech.info. After replace MISE 2 will display proper Hungarian characters.

Original:



Hungarian version:

kenand is offline   you may: quote & reply,
Old 09-19-2012, 01:07 PM   #16
kenand
Rookie
 
Join Date: Sep 2009
Posts: 51
I made a tool to translate Monkey Island SE 2 speech.info file.
It support speech.info only (at now ), but later I will add uitext.info

http://www.mediafire.com/?gclm9nd012nkmgs


I made new version.
You may edit uitext.info also. I made a bug fix. Earlier version did not put 00 byte after translated text.
http://www.mediafire.com/?0610c4mi1z9bmod

Last edited by kenand; 09-24-2012 at 09:36 AM.
kenand is offline   you may: quote & reply,
Old 09-30-2012, 02:24 PM   #17
kenand
Rookie
 
Join Date: Sep 2009
Posts: 51
The speech.info and uitext.info files are different in XBOX than PC.
So you need different tool to edit them:
http://www.mediafire.com/?jruh8rfz1p4hosd

UItext.info and speech.info files are also supported.
kenand is offline   you may: quote & reply,
Old 07-08-2013, 04:23 PM   #18
Krasas
Rookie
 
Join Date: Jan 2007
Location: Greece
Posts: 22
Current Game: Tales of MI
In case anyone's still interested for an alternative, I'm making available the source files (python 2.7 code) and a binary version for the translation tools we used for the greek translation of MI:SE (completed) and MI2:SE (translation is work in progress).

The source files are in a git-hub repository here:
https://github.com/ShadowNate/MISETranslator

The most recent zipped package (with a binary executable) is here* (compressed with 7-zip; just un-zip to a folder and run the MISEDialogTranslate.exe):
https://docs.google.com/file/d/0B8pm...lOdm4zcU0/edit

The code is not as well written nor as organised as I'd like, but it does the job; well, at least it did for the greek translation
I have used the PyQt4 v4.9.2 and Python Imaging Library (PIL) libraries for Python 2.7, so you'll need to install those if you want to edit the code and run it with python.

The translation tools are aimed for the PC (Steam) versions of the MI:SE and MI2:SE (I haven't tested with the XBOX or other versions).
Note that they are mostly intented for translation teams that need to extend the font files in order to add support for (multiple) non-latin characters of their native language, while maintaining the latin characters used in-game in the original English translation)

The tools support the translation of the speech.info, uiText.info, *.hints.csv and credits.xml files.
The French language texts in the original game will be replaced with the new translation.
The main application (MISEDialogTranslate) is used to translate the dialogue text, ui text, hints and credits. From the "Tools" menu section you can launch the "Fonts Mod tool", that is used to extend the font files, and also the "Repacking tool", that can be used to recreate a valid .pak file containing the custom translation (in case you want to use that to ultimately create a binary patch). I have included some basic documentation in the readme.txt, though perhaps more details are required for the usage of some of the functionalities.

*. For the creation of the binary, I have used pyinstaller 2.x . Although the executable contains no malware, some antivirus -for example Avast!, may display warnings such as "The file prevalance is low" and run the application in sandbox mode (if you have enabled this in avast!) until you verify that you want to "continue the execution". I don't know how I can prevent this from my side (any ideas are welcome), but in any case, since the source files are availble, you can skip running the executable and try the source files directly.

The tools were tested in Windows 7. They should run in Linux distibutions too (at some point I had tested them in multiple Ubuntu installations -though not the most recent versions).

The translation tool is provided as is, and is considered to be a beta version. As I said, it works fine for the purposes of the greek translation, and I have tried to facilitate the capability to use other encodings (the default is the greek: windows-1253), but I have not tested this.

I intent to work on the code further so as to add some extra or missing functionalities, and organize it better, but I have no timeschedule for this and I have quite limited free time, so I make no promises.
Krasas is offline   you may: quote & reply,
Old 10-01-2013, 12:52 PM   #19
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
Thanks for making it open source Krasas. I've just had a quick look through - it will certainly be useful to other translators - good work!

bgbennyboy is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Mixnmojo.com > Community Discussion Forums > SCUMM > Monkey Island SE translator

Tags
free, java, language, monkey island se, translation tool, translator

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:51 AM.


LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.