[RPGM] [Tool] RPG Maker Auto-Translator

sc4tman

New Member
Apr 13, 2018
2
0
#61
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.
 
Jun 10, 2017
3
0
#62
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
 
Feb 14, 2018
1
0
#63
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.

I've read and followed everything on the page, including changing the options in the script.
 
Jul 18, 2017
377
355
#64
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!
 
Jul 18, 2017
377
355
#66
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
2
0
#71
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>'
 
Feb 3, 2018
57
27
#75
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!
 
Feb 3, 2018
57
27
#76
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.
 
Jul 21, 2017
22
7
#79
Hi

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

194367_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
 
Jul 21, 2017
22
7
#80
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"

194369_Captura_2.jpg

Obviosely something is wrong
 
Last edited:

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.