Tool RPGM RPG Maker Auto-Translator

Apr 13, 2018
74
138
Make sure the script is set to be accessible by 'Everyone, even anonymous'. If that doesn't change anything, on the Github page, Tranquwil also gave instructions to change the option of the script.

"I used option 2 for the script but I don't understand the differences between them well and both seem to work. If anybody wants to switch just uncomment line 23, comment out 27-32 and publish as a new project version. After that if you want to swap again you can just set it to whichever version while publishing without needing to change the script."

Try changing it to Option 1. Also, uncomment means to remove the // at the start of the line, comment means to add // at the start of the line.
I did that, turns out the error needed a newer ruby version. I'm up to Ruby 2.5 now and I'm getting a new error

Translation API failed for [繧・◆縺犠 with message: 751: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>リョリキリ」</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">リェリケリーリア リァル・ケリォル畏ア リケル・・リッリァル・ゥ リァル・・オ リァル・ィリアル・ャル・ doGet</div></body></html>'

Translation API failed for [繧・◆縺犠 with message: 751: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>リョリキリ」</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">リェリケリーリア リァル・ケリォル畏ア リケル・・リッリァル・ゥ リァル・・オ リァル・ィリアル・ャル・ doGet</div></body></html>'

"Unexpected token" over and over again.
 

Huoyan86

New Member
Jun 10, 2017
5
1
I did that, turns out the error needed a newer ruby version. I'm up to Ruby 2.5 now and I'm getting a new error

Translation API failed for [繧・◆縺犠 with message: 751: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>リョリキリ」</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">リェリケリーリア リァル・ケリォル畏ア リケル・・リッリァル・ゥ リァル・・オ リァル・ィリアル・ャル・ doGet</div></body></html>'

Translation API failed for [繧・◆縺犠 with message: 751: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>リョリキリ」</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">リェリケリーリア リァル・ケリォル畏ア リケル・・リッリァル・ゥ リァル・・オ リァル・ィリアル・ャル・ doGet</div></body></html>'

"Unexpected token" over and over again.
read page 3
 

DogFog

New Member
Feb 14, 2018
14
3
I did that, turns out the error needed a newer ruby version. I'm up to Ruby 2.5 now and I'm getting a new error

Translation API failed for [繧・◆縺犠 with message: 751: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>リョリキリ」</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">リェリケリーリア リァル・ケリォル畏ア リケル・・リッリァル・ゥ リァル・・オ リァル・ィリアル・ャル・ doGet</div></body></html>'

Translation API failed for [繧・◆縺犠 with message: 751: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>リョリキリ」</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">リェリケリーリア リァル・ケリォル畏ア リケル・・リッリァル・ゥ リァル・・オ リァル・ィリアル・ャル・ doGet</div></body></html>'

"Unexpected token" over and over again.
I'm getting this same error.

read page 3
I've read and followed everything on the page, including changing the options in the script.
 

Emperor_Arcturus

Well-Known Member
Jul 18, 2017
1,431
1,251
The fix that Deserve-And-Enjoy put up worked for me and now I'm starting the translation for my first game that I've wanted to get translated for a long time. UNFORTUNATELY, I may have gotten a bit in over my head, it's been several hours and it's not even close to being done. Apparently there's 254490 lines to be translated, and its only done 71000 so far. Well, guess I'm leaving my computer on overnight, oh well. Still, good work! Can't wait to see how well it works!
 

Emperor_Arcturus

Well-Known Member
Jul 18, 2017
1,431
1,251
okay, ran into a problem. Get to a certain point, basically a few minutes into the game switching screens, probably to a map, and I get an error: Script 'Game_Interpreter' line 1409: Syntax Error occured. unexpected $end

Anyone know how to get around this/fix this? Thanks!
 

Stm85

New Member
Jul 5, 2017
9
16
Hi. I've been having this error for a couple of days now and I can't figure it out myself. I've done everything mentioned on page 3 and 4 and it still gives me this error(see below). If anyone could help me, I would appreciate it.

Translating: C:/Users/stmga/Desktop/Translator/Output/Fantasia Quest/JsonExtracted/Actors.json
2018-09-02 18:59:25 -0500 Progress: Total [0/421566] Fantasia Quest/Actors.json [0/116] Cache hits [0] Translations [0] Failures [0]
Translation API failed for [セレア] with message: 765: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Script function not found: doGet</div></body></html>'
Translation API failed for [セレア] with message: 765: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Script function not found: doGet</div></body></html>'
Translation API failed for [セレア] with message: 765: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Script function not found: doGet</div></body></html>'
Translation API failed for [セレア] with message: 765: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Script function not found: doGet</div></body></html>'
Translation API failed for [セレア] with message: 765: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Script function not found: doGet</div></body></html>'
Translation API failed for [いちげきひっさつ] with message: 765: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Script function not found: doGet</div></body></html>'
Translation API failed for [いちげきひっさつ] with message: 765: unexpected token at '<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Script function not found: doGet</div></body></html>'
 

ADIDAS

Member
Feb 3, 2018
316
296
Translations back again, but you need to do the following in order to fix it:
(Instructions taken from a comment by at )

  1. Download the program normally from the github
  2. go to and press start scripting, copy into it
  3. click publish then deploy as web app, give the script whatever name and description you want, set "Execute the app as:" to me and "Who has access to the app:" to anyone, even anonymous then deploy
  4. authorize the script then copy the "Current web app URL"
  5. download my file
  6. replace the original "auto_translate.rb" with the new one
  7. open up the new "auto_translate.rb" file with notepad++ ( )
  8. ctrl+F and search YOUR_WEB_APP_HERE
  9. replace "YOUR_WEB_APP_HERE" with the link you copied to the web app
  10. done

Thank You!!! The translator is working like a charm now!
 

ADIDAS

Member
Feb 3, 2018
316
296
Would there be any translator API's anyone would suggest that are free? I'm finding the current one is not doing so hot of a job of translating Japanese.
 

Gonzo

Newbie
Jul 21, 2017
53
69
Hi

I don't know why I'm stucked in this part of the process (see the image)

Captura.JPG

I press [TRANSLATE]. Then nothing happens. Just appear many words in the cache box and I have the option to [ABORT]

I miss that bar below filling Green, you know? But nothing happens. This is frustrating. I copied that text from but didn't work
 

Gonzo

Newbie
Jul 21, 2017
53
69
Ok ok, now it seems the bar is becoming green. That should be good news.

But you see they say "translation API failed for [xxxxxxxxx] with message 765 unexpected token at"

Captura 2.JPG

Obviosely something is wrong
 
Last edited: