Multilingual game

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,420
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
Completely ignore that zlib - that is just an internal file format name. You need to start at the beginning, not at an error message.


And the beginning is the external text file - all show text sequences of your game need a placeholder (called key), and the external text file lists all those keys and give the text that should replace that placeholder in the game.


That is the reason why that script will not function unless you wrote the file that contains both the placeholder-keys and the real text that should be displayed at that point in the game.


The translation part comes later, because then you just provide different text files for different languages.


But that external text file for the first language - that is what you have to write before anything can function, and you are the one who has to decide how the placeholder keys are named and what they replace ingame.
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
So I have to start with external-text.rb first? right? Then I add a file to the folder Text in the folder Data, called DE.txt (the dame doesn t matter right? but then I don t know what to do next.
 

♥SOURCE♥

Too sexy for your party.
Veteran
Joined
Mar 14, 2012
Messages
693
Reaction score
411
Primarily Uses
Yes, the name doesn't matter. Next, you write some text in it to test it:

[Key] TextTest1Message text testing using External Text :3Then, in an event, you use a Script command with the following in it:

text('TextTest1')Interact with the event. It should display the message. <3
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
Ok I just tried. Then I got an error message. I put it in the event and it looks like this.

I guess I did something wrong. I opened that event. Then I double clicked the rows to get the menu. Then I went to tab 3 and used the thing on the bottom, called like "advanced options: Script". I add the line

text('TextTest1')and then I tried it. And then the error message appeared.

Edit: But it helpes me more like just tell me to read the header if I don t really get any examples. XD
 
Last edited by a moderator:

♥SOURCE♥

Too sexy for your party.
Veteran
Joined
Mar 14, 2012
Messages
693
Reaction score
411
Primarily Uses
But when did you grab it? It was recently updated with a fix to that bug. Are you using 3.3.4?
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
IT WORKS. :D

OK Step one is done :p

So whats the next thing to continue with?
 

♥SOURCE♥

Too sexy for your party.
Veteran
Joined
Mar 14, 2012
Messages
693
Reaction score
411
Primarily Uses
Good! Now try the MultiLang add-on. Read the usage instructions and let me know if you have questions or troubles with anything specific.
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
Hm I tried to use it but I don t know how to use the

`Language Select`I mean it only tells me like to change the language use this. Thats all. T_T

I added a second language into the array now it looks like this.

#++module SES # ExternalText # =========================================================================== # Module containing configuration information for the External Text script. module ExternalText # Array of languages present in the game. Languages = ["English"] Languages = ["Deutsch"] endendHe always tells me like "Unable to find file SceneManager.call(Scene_LanguageSelect)"Also if I change it. It still keep telling me that the file doesn't exsite.

Edit: But it still works. I just added an other event asking if German or English and then it stops working. The other event still gets the messages
 
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,420
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
I added a second language into the array now it looks like this.

# Array of languages present in the game. Languages = ["English"] Languages = ["Deutsch"]
That is not adding a second language into an array - that is creating a second array and overwriting the first with it.The language "English" doesn't exist there anymore, because you used a second line with the same array name Languages =

Code:
Languages = ["English", "Deutsch"]
That are two languages in one array...
 
Last edited by a moderator:

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
Languages = ["English", "Deutsch"]Well you see what I mean. There is not a single example how to add a second language. He/She only writes that you can add multiple languages by adding it to the array. But I didn t know anything about the scripting in RPG Maker VX Ace so I just did what you saw, because I thought that was how to do it.

Hope you can also tell me to finally set the language like you get asked what language you want to use so you can choose. I mean I m using it but it s just the thing with the if Var equal 1 then Dialoge in english etc.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,420
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
To select the language, you make an event, in the event you use a script command, and in the script command you place the following:

SceneManager.call(Scene_LanguageSelect)As soon as that event is triggered, the selection screen will appear.However, inside your language text file (the one you made above) you'll need a key Language Select that gives the text that should appear on the language select screen telling the player what he has to do.

That would result in "Please select your Language" on the englisch text file and "Bitte wähle die Sprache aus" in the german text file (for example)
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
Ok it workes but I need something like I do. Currently I m using a select to set my variable so I can do some stuff.

So is there a way to just set language to English/German and what is this used for?

`Language Select`Edit:

I tried some more stuff to set the language without getting a select screen because I just need to set the language once in the game but I still didn t got any cleverer from that. I now just know some more ways how it doesn t work. XD

Does someone know how to just set the language?
 
Last edited by a moderator:

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
Guys? I m really stuck with the RPG. TwT

Currently I tried a lot of diffrent possible commands. I also checked again what s writen in the scripts to maybe get the command, so I tried some of them without any success.

Wouldn t it be something like

set_language(English)or something similar. Maybe I missed something and I would really love if someone could help me with my struggle.
 I currently just need to define the language. After I this I can start with the next step. :D

So please if someone could help me with this.
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
Ok I finally got it. I asked Enelvon how to do it and now I got it.

What is the next step please. I can't wait to get further threw this. :D
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,420
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
The next step is to make your game in the primary language, using external text keys for every text ingame.

Then, after you're finished with your game, you translate a copy of the external text file into any language you want and add that new text file to the project directory (same place as the oroiginal file)
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
If it s no problem for you I will skip that step. I will work on that later because I m happy with the way I do it now.

Currently I still use the variable language to check if it s english or german then I add 1 event and add all the text forst in german there and then I copy and paste the event and translate it. That works find and I guess it will be very hard to add all the text to the files and also to don't get lost in all that amount of lines inside the files.

So please don't get it the wrong way. I will still use the first example <3SOURCE<3 game me to get more into it and I also understand how it worked.

Ok what would be the next step after add all the text to the external files?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,420
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
Currently I still use the variable language to check if it s english or german then I add 1 event and add all the text forst in german there and then I copy and paste the event and translate it. That works find and I guess it will be very hard to add all the text to the files and also to don't get lost in all that amount of lines inside the files.
????
The entire purpose of the external text files and their multilanguage add-on is to prevent you from copying events and translating ingame - you could have done that without any script, just make a autorun at start to select a language and store the selection in a switch or variable.


But only if you place everything in the external file you can add any number of languages later without having to edit every event in the entire game.


And to prevent getting lost in the thousands of text lines you need to select the keys in a way that you can find the event that uses it in the game.
 

VarmintLP

Veteran
Veteran
Joined
Jun 11, 2015
Messages
43
Reaction score
3
First Language
German&English
Primarily Uses
Well I will only translate it to german and english. And I don't get lost with my system of translation. I m not 100% sure if I wrote it or not but I really just need the External Text scripts for stuff like the menu, the items, the maps or something similar.

So can we please skip the part of I put everything into the external files to translate it in german and english?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

This is relevant so much I can't even!
Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect

Forum statistics

Threads
105,998
Messages
1,018,218
Members
137,777
Latest member
Bripah
Top