Author Topic: Help to make translation  (Read 18897 times)

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Help to make translation
« on: May 09, 2012, 05:02:22 PM »
Hello, im new in this forum.
I dont where to post this question, if is the section wrong please move this discussion in the right section.

Hower, my question is this:
I am the founder of a Touhou Italia forum and I want to make a translation of Touhou 6 (and the other) but I dont know how to change the text and what programm use!

Can someone teach me how to do this? Thanks everyone.

Sorry for my bad grammar...
Visit my Touhou Italian Forum, nya.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #1 on: May 11, 2012, 03:03:31 PM »
Up, please, it's very urgent...
Visit my Touhou Italian Forum, nya.

Re: Help to make translation
« Reply #2 on: May 11, 2012, 04:47:04 PM »
As far as I know there's already an english patch for TH6 and the others. Consult that instead.


Thanks to GreenVirus for the Siggy.
My TF2 Backpack of DOOM

Re: Help to make translation
« Reply #3 on: May 11, 2012, 08:43:35 PM »
Somehow I don't think he/she was trying to translate it to english.
Anyway, there's stuff here: http://en.touhouwiki.net/wiki/Game_Tools_and_Modifications
In the general utilities section.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #4 on: May 12, 2012, 11:51:09 AM »
I want to translate in Italian Touhou 6...
Hower, I have already check this page but, when I try to open the programm Touhou Toolkit, it doesn't open... and I dont know how to use and how to open..
Visit my Touhou Italian Forum, nya.

Re: Help to make translation
« Reply #5 on: May 12, 2012, 03:46:34 PM »
You have to open it on the command line.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #6 on: May 12, 2012, 06:55:00 PM »
And how?
What is the command line? Please explain me...
Visit my Touhou Italian Forum, nya.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #7 on: May 15, 2012, 10:45:52 AM »
Up...
Visit my Touhou Italian Forum, nya.

Pesco

  • Trickster Rabbit Tewi
  • *
  • Make a yukkuri and take it easy with me
Re: Help to make translation
« Reply #8 on: May 15, 2012, 10:49:35 AM »
If someone can help they'll come and post in the thread. Don't spam for bumps.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #9 on: May 17, 2012, 02:34:49 PM »
Oh, okay sorry. ^^
Visit my Touhou Italian Forum, nya.

Re: Help to make translation
« Reply #10 on: May 17, 2012, 04:08:46 PM »
Okay first, make sure you've downloaded the right thing.

Download and unzip this to whatever folder you want.

Now, I'm on a vista, so it may look slightly different on your machine but...
Here is the command prompt.


Run it. You should get something that looks like this


Go to the folder where you unzipped thtk.
Right-click on any of the files and click properties.


I've highlighted the bit you want. This is the file location, or path.

Then go into the command prompt, type cd (It stands for change directory), copy the path and hit enter. This should bring you to the correct directory.


From here, you can simply type the name of the program you want to run, and the output will appear onscreen.
There are html files telling you how to run each of the programs.
For simplicity's sake, I'd advise that you move the file(s) you're working with into the same directory as the program. Otherwise you will have to use the full path.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #11 on: May 17, 2012, 08:50:21 PM »
Thank you very much!!
So, now the problems is:
I have downloaded Touhou 6, I want to edit the file .msg but in the directory there are no file in .msg estension... what I need to do?
Visit my Touhou Italian Forum, nya.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #12 on: May 28, 2012, 01:33:07 PM »
I have searched on every Touhou, but I cant find the file for translate the dialogue!
Can someone explain to me where are this file and how to extract correctly? Please I don't want do some disaster...
Visit my Touhou Italian Forum, nya.

Tengukami

  • Breaking news. Any season.
  • *
  • I said, with a posed look.
Re: Help to make translation
« Reply #13 on: May 29, 2012, 04:38:58 PM »
I have downloaded Touhou 6

Just wanted to remind you of our piracy policy - and yes, that includes the games - located on our Rules board.

Also, rather than double-post, just edit your previous one - it will be seen as "unread" on people's Unread page if you edit it.

Thanks and good luck!

"Human history and growth are both linked closely to strife. Without conflict, humanity would have no impetus for growth. When humans are satisfied with their present condition, they may as well give up on life."

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #14 on: June 03, 2012, 09:33:05 AM »
I dont have requested the download for the game, I only want know where are this file to edit message of the character because I cant find...
Visit my Touhou Italian Forum, nya.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #15 on: August 12, 2012, 11:16:38 AM »
Sorry if a up the discussion, but seriously, this is very urgent for me and my team!
I need to know the comands of the tool, I want to start the translation of the game...

Or, do you know a programm for extract .dat and .msg file easy
Visit my Touhou Italian Forum, nya.

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help to make translation
« Reply #16 on: August 12, 2012, 11:18:35 AM »
Sorry if a up the discussion, but seriously, this is very urgent for me and my team!
I need to know the comands of the tool, I want to start the translation of the game...
thtk should display its commands if you just type the name of one of the included programs at the command prompt. What is it you are trying to do, specifically, and how is it not working? I gather you're trying to extract msg files from the th06e.dat file with thdat? Or are you trying to use thmsg on files you've already extracted?
« Last Edit: August 12, 2012, 11:21:52 AM by EthanSilver »


Latest works
The Strongest

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #17 on: August 12, 2012, 11:22:07 AM »
I dont know how work this tool... im not good with command tools and other.
I want to extract the message file of Touhou Ten Desires to edit them...
Visit my Touhou Italian Forum, nya.

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help to make translation
« Reply #18 on: August 12, 2012, 11:31:39 AM »
I dont know how work this tool... im not good with command tools and other.
I want to extract the message file of Touhou Ten Desires to edit them...

  • Copy the .exes in thtk to your TD folder.

  • Open a command prompt there. In windows 7, you can just right-click on the folder and pick "Open command window here".

  • You'll have to use thdat to extract the files from the th06e.dat file. If you just type "thdat" it should show you the options but it's probably something like...
    thdat x13 th13e.dat
    (I'm assuming you're using an english-patched game. If not, replace "th13e.dat" by whatever yours is called - probably th13.dat if you have the unpatched game.)

  • This will extract all of the files. You can now use thmsg to open up the .msg files. Same deal as with thdat.
    thmsg d13 st01a.msg > st01a.txt
    Replace "st01a.msg" with the name of any msg file and "st01a.txt" with the name you want the extracted script to be called.

Note that thmsg does not give you script commands. You will have to figure them out yourself. For instance...

Code: [Select]
10,1
 28,336.0f,272.0f
 17,So?
 17,What exactly were you talking about?

It's obvious that any line starting with "17," is a message, but the rest may take a bit of guesswork...

Good luck!


Latest works
The Strongest

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #19 on: August 12, 2012, 11:55:35 AM »
Oh... sorry if im giving problem, but there is a videotutorial to make trasnlation with the tool? I found really hard to do this... im so sorry.
There are other tools but easy?
Visit my Touhou Italian Forum, nya.

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help to make translation
« Reply #20 on: August 12, 2012, 12:14:23 PM »
Oh... sorry if im giving problem, but there is a videotutorial to make trasnlation with the tool? I found really hard to do this... im so sorry.

Can you tell me which step is giving you difficulty? I'll see if I can help out.

There are other tools but easy?

BrightMoon, if you can find it, can extract stuff from the .dat file too and has a simple user interface. However AFAIK thmsg is the only way you'll get your msg files decrypted.


Latest works
The Strongest

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #21 on: August 12, 2012, 12:40:41 PM »
When I write in cmd the comand thdat x13 th13e.dat it doesnt recognize...

Oh okay, so, I have BrithMoon now, I need to open thmsg.exe and then type what comand...?
Sorry If im giving problem, it's the first time that I try to use this tool...
Visit my Touhou Italian Forum, nya.

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help to make translation
« Reply #22 on: August 12, 2012, 12:48:56 PM »
When I write in cmd the comand thdat x13 th13e.dat it doesnt recognize...
This is either because...
a) You did not copy the .exes included with thtk into your TD folder.
or
b) You did not open the command window in the right place.


Like this...

Make sure your TD folder contains thdat.exe. Cmd is telling you that, in the folder you're calling it right now, there is no such thing as "thdat.exe".

Oh okay, so, I have BrithMoon now, I need to open thmsg.exe and then type what comand...?

Once you have extracted the .msg files, do the same as for thdat but using the command at step 4. This will produce a text file containing the script.


Latest works
The Strongest

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #23 on: August 12, 2012, 01:18:52 PM »
Nothing... it doesn't work...
I get this error...
http://i.imgur.com/xE1RI.png
Sigh...
Visit my Touhou Italian Forum, nya.

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help to make translation
« Reply #24 on: August 12, 2012, 01:40:45 PM »
Nothing... it doesn't work...
I get this error...
http://i.imgur.com/xE1RI.png
Sigh...
Unless your TD actually is installed directly in "c:\users\r", something tells me you're not following my instructions properly. Accessing cmd by right-clicking on a folder and selecting "open command window here" will place you in that folder. Accessing cmd by typing it from the start menu, on the other hand, will put you in your "users" folder (like in the image you posted).

I can't help you if you're skipping or altering steps. Please follow the instructions as I have provided them.
(Aside from that, the command you typed, itself, is correct. You must open cmd properly first and everything should work if you've followed the exact steps I've listed.)


Latest works
The Strongest

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #25 on: August 12, 2012, 07:15:35 PM »
IT WORK!
Now, to transform the file from .msg to .txt what I need to do?

I found the comand but it say:
failed seeking to 12: Bad file descriptor
« Last Edit: August 12, 2012, 07:26:27 PM by RemiShama »
Visit my Touhou Italian Forum, nya.

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help to make translation
« Reply #26 on: August 12, 2012, 10:01:18 PM »
Now, to transform the file from .msg to .txt what I need to do?
Assuming the .msg files you want to use are in the same folder as your thmsg.exe, you can do pretty much the same thing as with thdat.exe.

- Open a cmd by right-clicking on the folder (if you don't already have one opened).
- Type the following and hit enter.
thmsg d13 st01a.msg > st01a.txt
- The "st01a.msg" file has now been extracted into "st01a.txt".

The ">" in the command means "ohai computer plz redirect output to file ok?" instead of it dumping everything into your cmd window. You'll have to do this for each file you want to convert - this will just convert "st01a.msg". So "thmsg d13 st02a.msg > st02a.txt", so on...


Latest works
The Strongest

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #27 on: August 13, 2012, 10:49:36 AM »
Yeees, done. *-*
Now, for insert the .txt file in the .msg file?

And For change the image text of the stage/Spell Card/etc?
Visit my Touhou Italian Forum, nya.

RemiShama

  • Imperial Scarlet Devil.
    • Scarlet Devil Mansion | Touhou italian forum
Re: Help to make translation
« Reply #28 on: August 19, 2012, 08:14:19 PM »
Mmmh, I did to insert the .txt in the .msg and then in the th13e.dat, but now Ten Desires doesnt work, when I try to open it say that there is an error.
The dialog file are corret, what the problem?
If need it I post the dialog file translated so you can give to me an help to find the problem, thanks.
Visit my Touhou Italian Forum, nya.

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help to make translation
« Reply #29 on: August 19, 2012, 09:19:11 PM »
Ten Desires doesnt work, when I try to open it say that there is an error.
Can you post the error? It's pretty much impossible to tell which part may've gone wrong without being able to see the error message.

The dialog file are corret, what the problem?
Are you absolutely sure about that? The format is pretty strict. Are you sure you're not using a reserved character in your translation, haven't accidentally changed a number somewhere, or didn't add/remove lines improperly?

I can think of 3 possible errors.
- The .dat was incorrectly reassembled.
- The .msg was incorrectly reconverted from the .txt.
- The contents of the .txt used to produce the .msg were incorrect in some way.

With the error message, it should be possible to tell which case we're dealing with here.


Latest works
The Strongest