Playing games with google translate

Started by heltenjon, 20 Feb 2022, 14:17

« previous - next »

heltenjon

Marion doesn't only post games here, but she's got a ton of CYO-AGS games on her site that are French only. But last night I thought...what if...?

So I started up Legende d'Eikos while downloading a Google Translate Camera app on my smartphone. Then I pointed the phone's camera at the text on screen, scanned it and got instant translations. I played/read through the entire game that way.

Now, this can't replace a proper translation. The text shifts as the translation AI tries to make sense of it, and when I fail to hold my phone level (or still), it's all over the place. My camera would frequently read " l' " as a t, for instance. The writing won't be as good either, but the meaning comes across. I found that this worked okay with Marion's game, as the text stays on screen for a long time, and much of the story is told through the images (her being a graphic novel artist). I won't get the same experience reading the descriptions, but I will understand the options I can choose from.

I understand that this tech isn't new, but for me, it's science fiction.

Crimson Wizard

Note, you may use third party tools to extract texts from the ags games and create your own TRS/TRA pair. Probably there may be also a way to pass TRS through google translate, or similar programs. This will remove the necessity of managing the camera.

Danvzare

Quote from: Crimson Wizard on 20 Feb 2022, 14:44
Note, you may use third party tools to extract texts from the ags games and create your own TRS/TRA pair. Probably there may be also a way to pass TRS through google translate, or similar programs. This will remove the necessity of managing the camera.
There is an easy way to pass a TRS file through google translate.
What I do is copy the entire file and paste it into a .html file and open it, then get Google Translate to translate the entire page. Then copy that and paste it into a new TRS file and then combine it with the original TRS file using a special tool. It tends to work brilliantly. It can mess up with the special string character though, likes %s for example. But it usually works. (It's allowed me to play a whole bunch of untrasnalted Maniac Mansion Mania games)
Now if only there was a tool that could reliably extract ALL of the text from AGS games. In my experience, they ignore certain hyphenated characters, don't extract dialogs at all, and don't even work at all on some versions of AGS. Right now, the only reliable way to extract all of the text, is if it's already got a translation in it that you can decompile.

Crimson Wizard

Quote from: Danvzare on 20 Feb 2022, 17:11
Now if only there was a tool that could reliably extract ALL of the text from AGS games. In my experience, they ignore certain hyphenated characters, don't extract dialogs at all, and don't even work at all on some versions of AGS. Right now, the only reliable way to extract all of the text, is if it's already got a translation in it that you can decompile.

It's a matter of making one, since all the engine code is open and data formats are known. In the past some translators asked me and I made such tool out of the engine to save time, which would load a game and export all texts by command.

eri0o

If it's Google Translate, it's API can take 600 requests per minute of up to 5k characters, there's no need to extract anything, just translate at runtime as needed.

heltenjon

Quote from: Danvzare on 20 Feb 2022, 17:11
There is an easy way to pass a TRS file through google translate.
What I do is copy the entire file and paste it into a .html file and open it, then get Google Translate to translate the entire page. Then copy that and paste it into a new TRS file and then combine it with the original TRS file using a special tool. It tends to work brilliantly. It can mess up with the special string character though, likes %s for example. But it usually works. (It's allowed me to play a whole bunch of untrasnalted Maniac Mansion Mania games)
Now if only there was a tool that could reliably extract ALL of the text from AGS games. In my experience, they ignore certain hyphenated characters, don't extract dialogs at all, and don't even work at all on some versions of AGS. Right now, the only reliable way to extract all of the text, is if it's already got a translation in it that you can decompile.
Can you share what "special tool" you use for this? This may even be interesting to the authors of the MMM games...I'm sure most wouldn't mind to see their games in English, too.

Danvzare

#6
Quote from: heltenjon on 24 Feb 2022, 16:59
Quote from: Danvzare on 20 Feb 2022, 17:11
There is an easy way to pass a TRS file through google translate.
What I do is copy the entire file and paste it into a .html file and open it, then get Google Translate to translate the entire page. Then copy that and paste it into a new TRS file and then combine it with the original TRS file using a special tool. It tends to work brilliantly. It can mess up with the special string character though, likes %s for example. But it usually works. (It's allowed me to play a whole bunch of untrasnalted Maniac Mansion Mania games)
Now if only there was a tool that could reliably extract ALL of the text from AGS games. In my experience, they ignore certain hyphenated characters, don't extract dialogs at all, and don't even work at all on some versions of AGS. Right now, the only reliable way to extract all of the text, is if it's already got a translation in it that you can decompile.
Can you share what "special tool" you use for this? This may even be interesting to the authors of the MMM games...I'm sure most wouldn't mind to see their games in English, too.
Here you go: https://vk.com/topic-17976818_41248486
Look for AGSTool. (In case you're wondering, I was specifically talking about the "Create TRS from 2x TXT" function.)

And if you ever want my collection of semi-translated MMM files, just ask and I'll send them over in a PM.

SMF spam blocked by CleanTalk