Ren'Py translator3000

renato186a

Active Member
Sep 6, 2020
657
690

file that translates games visual novel renpy equals auto translator tool unity


  1. Copy Translator3000.rpa to the game folder in the directory of the game you want to translate.
    • The following paragraphs will describe the manual setup.
    • In this version of the translator you can also configure the settings using the graphical interface.
    • The interface is shown/hidden with the key combination Alt+~ (tilde) (in the English keyboard layout).
    • If you configure the settings in the GUI, you don't need to read the rest of the instructions.
  2. Start the game and close it, after starting.
  3. Open the file _translator3000_setting.json that appeared in the game directory.
    • In the directory of the game itself. Not in the "game" folder.
  4. Change the parameters to the required ones, replacing the value null:
    • Important: Check for quotes, when entering text values! null did not have them, but for "en" they are needed.
  5. {
    "gameLanguage": "ja",
    "directionOfTranslation": "en",
    "prescan": false,
    "_debug_mode": false,
    "translationService": "google",
    "workMethod": "dialogueOnly",
    "originalInHistory": false,
    "requestsFrequency": 120.0,
    "extraTextOptions": {
    "font": null,
    "size": "+10",
    "bold": false,
    "italic": false
    }
    }
    1. Parameter gameLanguage (text value):
      • The language of the game itself (the language FROM WHICH a translation is needed).
    2. Parameter directionOfTranslation (text value):
      • The language of translation (the language INTO WHICH a translation is needed).
    3. Parameter prescan (true/false):
      • Preliminary translation of the whole text.
        • It can take an extremely long time (depends on the amount of text).
        • The best way to use this option is to start the game on any line and wait for the translation to finish.
    4. Parameter _debug_mode (true/false):
      • Well... Everything is said in the title. This is a debug mode.
        • If false (default) - errors will be ignored.
        • If true - logging to an external file is activated and exceptions are raised when errors occur.
    5. Parameter translationService (text value):
      • Again, everything is clear from the title. This is a translation service.
        • At the moment, there can only be "google". Preparation for the future.
    6. Parameter workMethod (text value):
      • Method of the translator's work. Can take two values:
        1. "dialogueOnly"
          • The text in the dialog box and the choices menu will be translated.
        2. "allText"
          • All the text in the game will be translated.
            • At the moment the method is in Beta stage.
    7. Parameter originalInHistory (true/false):
      • Leave untranslated text in the "history" (screen history).
        • If true - the text in the history will not be translated.
        • If false (default) - translation will be both in the dialog box and in the history.
    8. Parameter requestsFrequency (positive real number):
      • Maximum number of requests to the translation service per minute.
        • To simulate the human factor, the real number of requests will be randomized in the range:
          • For example, if requestsFrequency is 100 - the real value will be in the range from 75 to 100.
        • The default value is 100.
        • Use this option only at your own risk, because it is possible to block by the service, if the number of consecutive requests is too large and it is suspected of automating requests.
    9. Parameter extraTextOptions (multiple values):
      • Options that will apply to the translated text.
      1. Parameter font (text value):
        • The font used when displaying text.
        • The path to the font file is set relative to the gamefolder in the game directory.
          • The folder where the Translator3000.rpa file was copied earlier.
      2. Parameter size (positive integer or expression in Ren'Py format):
        • The size of the displayed text.
        • Can be either an integer or an expression in Ren'Py format.
          • .
      3. Parameter bold (true/false):
        • Make the text bold.
      4. Parameter italic (true/false):
        • Make the text italic.
    • .
    • Also, instead of the language code, you can specify a common name in English:
      • "russian" for the Russian language.
      • "english" for the English language etc.
  6. Save the file.
  7. Start the game and use it.
  • P.S.:
    I do not speak English very well, so I wrote this manual using online translators.
    If a native speaker decides to help me correct translation errors, I would be very grateful.
    Contact details are given at the end of the article.
If there are native speakers of other languages who are willing to help translate this instruction into their language, I will be happy to add their translations. Thank you!

My contact information:

Email: nyashniyvladya@gmail.com
VK:
Or write in here on GitHub.
 
Last edited:

X3gold

New Member
Oct 6, 2017
11
16
Hello can you help me I just can't get it to work with the key combination Alt+~ for me it only opens a window when I first start it but when I close it and try it with the key combination but no window opens
 

X3gold

New Member
Oct 6, 2017
11
16
I have discovered a bug when several languages are available he chooses the other when selecting as an example with me in the game CorruptedWorld there he chooses Russian although I have the game in English and translate it to German
 
  • Like
Reactions: renato186a

renato186a

Active Member
Sep 6, 2020
657
690
I have discovered a bug when several languages are available he chooses the other when selecting as an example with me in the game CorruptedWorld there he chooses Russian although I have the game in English and translate it to German
best translated games with 1 language
 

renato186a

Active Member
Sep 6, 2020
657
690
I have discovered a bug when several languages are available he chooses the other when selecting as an example with me in the game CorruptedWorld there he chooses Russian although I have the game in English and translate it to German
Let the creator of this file set the option to translate the menu and game options to the file or version of the file.
 

vsavsavsa

New Member
Jul 28, 2017
3
0
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/Translator3000Data/scripts/general.rpy", line 608, in <module>
File "game/Translator3000Data/scripts/general.rpy", line 101, in turn_on
File "game/Translator3000Data/scripts/general.rpy", line 72, in __init__
Exception: ###notTranslate###An error occurred while trying to read a configuration file. Double-check the entered data (commas, quotation marks in text values, missing closing tokens - '}', ']', etc.

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 550, in main
renpy.game.context().run(node)
File "Translator3000Scripts/general.rpyc", line 2, in script
File "Translator3000Scripts/general.rpyc", line 2, in script
File "renpy/ast.py", line 928, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2245, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/Translator3000Data/scripts/general.rpy", line 608, in <module>
File "game/Translator3000Data/scripts/general.rpy", line 101, in turn_on
File "game/Translator3000Data/scripts/general.rpy", line 72, in __init__
Exception: ###notTranslate###An error occurred while trying to read a configuration file. Double-check the entered data (commas, quotation marks in text values, missing closing tokens - '}', ']', etc.

Windows-10-10.0.19041
Ren'Py 7.4.10.2178



Please help thanks
 

EnlyZ

Newbie
Nov 21, 2019
91
39
I assact the "prescan" and it begins to translate the lines from the beginning of the game. And I want him to start from where I stopped. Example a game episode 5 and wanted him to begin to translate from the end of the episode 4 of my save.
 
  • Like
Reactions: renato186a

vsavsavsa

New Member
Jul 28, 2017
3
0
Understand a little bit how to use this program

1. Must have been opened at least once

It will work the second time

(From the first time to "start game", load game options screen

Turn it off first and turn it on again. The second time there is almost no error. The second turn on is a cycle.

(It is also suitable for reading your own " save ")

2. Before installation, if the game has been decompiled (UnRen)

It’s better to install 3000 after this program

Sorry I am not an English user (using google translation)
 

Deleted member 3351004

Active Member
Feb 6, 2021
870
6,772
While running game code:
File "game/Translator3000Data/scripts/general.rpy", line 608, in <module>
File "game/Translator3000Data/scripts/general.rpy", line 101, in turn_on
File "game/Translator3000Data/scripts/general.rpy", line 92, in __init__
ValueError: No JSON object could be decoded

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "Translator3000Scripts/general.rpyc", line 2, in script
File "C:\Users\Pedro\Downloads\LustHunter-0.3.5-pc\renpy\ast.py", line 914, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Pedro\Downloads\LustHunter-0.3.5-pc\renpy\python.py", line 2028, in py_exec_bytecode
exec bytecode in globals, locals
File "game/Translator3000Data/scripts/general.rpy", line 608, in <module>
File "game/Translator3000Data/scripts/general.rpy", line 101, in turn_on
File "game/Translator3000Data/scripts/general.rpy", line 92, in __init__
File "_translator3000/translator.py", line 19, in __init__
File "_translator3000/_google/translator.py", line 42, in __init__
File "_translator3000/translator_abstract.py", line 32, in __init__
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/__init__.py", line 290, in load
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/__init__.py", line 338, in loads
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/decoder.py", line 366, in decode
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/json/decoder.py", line 384, in raw_decode
ValueError: No JSON object could be decoded
 
  • Like
Reactions: Ainz22tutti

ilikechong

New Member
Jun 12, 2020
8
2
Understand a little bit how to use this program

1. Must have been opened at least once

It will work the second time

(From the first time to "start game", load game options screen

Turn it off first and turn it on again. The second time there is almost no error. The second turn on is a cycle.

(It is also suitable for reading your own " save ")

2. Before installation, if the game has been decompiled (UnRen)

It’s better to install 3000 after this program

Sorry I am not an English user (using google translation)
How did you solve this problem?
 

rehicol

New Member
May 10, 2020
1
2
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/Translator3000Data/scripts/general.rpy", line 608, in <module>
File "game/Translator3000Data/scripts/general.rpy", line 101, in turn_on
File "game/Translator3000Data/scripts/general.rpy", line 72, in __init__
Exception: ###notTranslate###An error occurred while trying to read a configuration file. Double-check the entered data (commas, quotation marks in text values, missing closing tokens - '}', ']', etc.

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 550, in main
renpy.game.context().run(node)
File "Translator3000Scripts/general.rpyc", line 2, in script
File "Translator3000Scripts/general.rpyc", line 2, in script
File "renpy/ast.py", line 928, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2245, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/Translator3000Data/scripts/general.rpy", line 608, in <module>
File "game/Translator3000Data/scripts/general.rpy", line 101, in turn_on
File "game/Translator3000Data/scripts/general.rpy", line 72, in __init__
Exception: ###notTranslate###An error occurred while trying to read a configuration file. Double-check the entered data (commas, quotation marks in text values, missing closing tokens - '}', ']', etc.

Windows-10-10.0.19041
Ren'Py 7.4.10.2178



Please help thanks
To fix this error, you have to delete the folder with the name " vladya's projects database " which is located in the path C:\Users\ and remove it from the recycle bin as well.
 
  • Like
  • Red Heart
Reactions: escu and Lexkan