Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"translated in total 0 dialog windows" #3

Open
ghost opened this issue Mar 20, 2023 · 1 comment
Open

"translated in total 0 dialog windows" #3

ghost opened this issue Mar 20, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 20, 2023

After a long time i got this output message, when i put the translated files back in, it seems to have done nothing.

Using command :
python dialogs_translator.py --print_neatly --source_lang zh --dest_lang en
For Chinese to English

Output has a lot of "Anomaly" outputs and squares with question marks. Is it the terminal i'm using? (cmd)

@tnmod
Copy link

tnmod commented May 17, 2024

This might sound silly, but the principle is to translate according to the codes that the author encountered (possibly because the game the author played had different text codes compared to other games) if the author has set default codes.

There are 3 types of codes:

Plain text (401)
Choices (302)
Answer (402)
To fix this issue, you should open files like mapXX.json and check what the current code for the dialogues is. For example, in my game, Plain text is 355. Then, open dialogs_translator.py and object_translator.py and change Plain text to 355 ("if list['code'] == 355:").

Note: You should disable print_neatly to avoid losing dialogues. Try translating one mapXX.json file first and see if it loses any dialogues or if its structure changes. Any change in the structure will cause the game to crash.

Original: "$gameVariables.setValue(21, "Open your inventory and select your phone.");"

Translated: "$gameVariables.setValue(21, "Open your..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant