Page 1 of 1

[Solved] Text Menu and Language

Posted: Fri Feb 11, 2022 5:36 am
by PGN
English is not my language, so I write through an online translator.
After translating the game into English, ran the game and wanted to check whether everything is translated. And noticed a bug in the dialogue menu.
I use Use RenPy 7.4.11.
In the original game script, the menu is used as follows.

Code: Select all

menu:
    emotion "Text"
    "choice 1":
         action...
    "choice 2":
         action...
But when I change the translation, through the screen and Language().
The menu in the game is shown like this.

Code: Select all

emotion "Text"
menu:
    "choice 1":
         action...
    "choice 2":
         action...
Instead of showing the dialog and the menu at the same time, after changing the language, only the dialog is shown first, and after a click the dialog is hidden and the menu appears. I have no conditions from the selected language to display the menu, so it must be a bug in RenPy itself. But how to fix it, I do not know.

Re: [Bug] Text Menu and Language

Posted: Fri Feb 11, 2022 11:58 pm
by PyTom
I'm tracking this at:

https://github.com/renpy/renpy/issues/3288

Do you have a small game that exhibits the problem? It might be a little bit until I can work on this, and having a small example means I won't have to try to replicate the problem from this example. Thanks.

Re: [Bug] Text Menu and Language

Posted: Sat Feb 12, 2022 5:00 am
by PGN
Thanks for the tip. I created a new game. And was able to understand my mistake. I had not used the menu this way before and I thought the nointeract tag was superfluous. The whole problem was because of it, I took it out - error, gave it back - everything works.
Thanks)
Sorry for your time, next time I will test the errors on the "bare" game first.