MZ VisuStella: Using Text Language Switching and Message Keywords in one project

Hello everyone!

I am currently translating my game from German to English and am using the Text Language Switching Option offered by VisuStella's Message Core plugin. In my game, I also use VisuStella's Message Keyword plugin to explain game-specific terms in more detail.

1. The Message Keyword plugin
For those unfamiliar with this “Message Keyword” plugin, here is what it does: By accessing it in the plugin manager, you define keywords and link them to replacement terms and explanations (so-called "tooltip texts"). In text boxes (e.g. for skills), you write the keywords in this format: ((keyword)). Ingame, the replacement term is shown instead of the ((keyword)). Furthermore, as soon as the player hovers over it with the mouse, the explanation appears in the form of a tooltip.

It looks like this:

pluginfenster_keywords.PNG

info is written in the (( )) format in the textbox:
desc_früher.PNG

Ingame, the replacement text is visible and the tooltip appears once you hover over it.
ingame_früher.png


2. The Text Language Switching / Translation feature
So far, so good. Ive always enjoyed working with this plugin.
But now there are complications with the Text Language Switching option of the “Message Core” plugin. Again, thats what im currently using to translate my game.

Before i get further into the problem, again, here is how the Text Language Switching works: With the help of a tab-seperated-value(TSV)-format in the “data” folder, the same in-game text can be listed in different languages, with the different text versions being attached to a “reference key.”

tabelle.PNG


In this example, Skill_Description is the “reference key” and forms the link between CSV and text boxes in the editor.

The format \tl{keyName} can be used to access the “reference key” in order to display the text from the TSV in the previously selected game language.


3. Using tooltip keywords and translation simultaneously.
However, it doesnt appear to be possible to apply the “Message Keyword” plugin (the tooltip stuff) to the translation feature.
desc_jetzt.PNG

This text box should contain the same text as in the third image: a written text with the defined keyword that you can hover over with the mouse. The game should display the text in the currently selected language (English or German) AND show the tooltip if needed.

However, the tooltip option does not seem to be “transferred” in the translation, neither in German nor in English.
ingame_jetzt_d.png

ingame_jetzt_e.png

(No text box appears for these two images, even though I hover the cursor over the keyword. Basically, it's just plain text.)

4. Current state
I hope Ive been able to describe the problem. Essentially, there is a lack of direct compatibility between the “message keyword” plugin and the “Text Language Switching” option in the “Message Core” plugin. Both are from VisuStella and are used in the latest version in my project.

I tried to “establish” the transfer with additional characters in the TSV. But that was more like shooting in the dark.

tsv_versuch2.PNG

1bruh1.PNG

1bruh2.PNG

(The "" version didnt work aswell)
Currently, I dont want to use "Text Language Switching", knowing that tooltips cannot be displayed to explain information, for example, ingame-terms.


Perhaps there is a compatibility issue that I havent found yet. I dont think too many developers have stumbled across this problem so far. In the best case scenario, someone can help me, for which I would be very grateful. In the worst case, this lack of compatibility has at least been addressed.
Hi 🙂 This sounds like a parsing issue!

So... I use the message keywords plugin too.

From what I understand, the javascript parses the text box content and looks for those brackets specifically, and applies all the magic that makes that mouse-over tooltip work, and the text replacement.

But

because your textbox contains \tl{Skill_Description} when it is parsed by Message Keywords, Message Keywords thinks there's nothing to do.

So Text Language Switching must be pushing the translated text after Message Keywords has had a look.

The final render that you see in-game is therefore just the translated text 🙁

That's my assumption, at least 🙂


A work around that comes to mind - and this is messy, and untested - is you split your message into two strings:

\tl{Skill_Desc_First_Part ((keyword)) \tl{Skill_Desc_Second_Part

Someone else might have a better idea 😀
Hello, thanks for the fast reply! And yes, thats an idea. I just tested it out and at it works! Here are some images to show the steps for anyone interested.

tsv.PNG


plugin_keyword.PNG


skill_desc.PNG


Screenshot (705).png

Screenshot (706).png


As you said yourself, its a bit messy, but I am somewhat relieved that there is at least one solution. I wouldnt yet want this thread to be considered solved, because there might be an easier solution. Anyway, thanks for now!
Here's hoping someone on here has a tidier fix for you! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/visustella-using-text-language-switching-and-message-keywords-in-one-project.180404/