It's not his fault @ksjp17, it's mine.
Sorry, @VarmintLP.
So... I think I figured out how to use the script.
The script uses external file for extrating all database data, so you can first finish the game, and then extract the data.
Here, I'll list the tutorial on how to extract the data when game is finished, ok?
1. Insert the script that is provided above.
2. Setup the configuration like this :
USE_DIALOGUE_FILES = falseUSE_DATABASE_FILES = falseUSE_PICTURE_SUPPORT = falseLANGUAGES = [:German, :English]DEFAULT_LANGUAGE = :EnglishENABLE_ENCRYPTION = false3. Enter the game and call the script call to
LanguageFileSystem::extract_all_data4. That will extract all your dialogues, database text etc. to a folder located in the folder with Game.exe, named "Extracted"
5. Copy things from Extracted to the folder with Game.exe, and from Extracted/Data to Data
6. Then copy the file DatabaseText.rvtext to two files named DatabaseTextGerman.rvtext and DatabaseTextEnglish.rvtext and the file Dialogues.rvtext copy to DialoguesEnglish.rvtext and DialoguesGerman.rvtext.
7. Then edit your DatabaseTextEnglish.rvtext and DatabaseTextGerman.rvtext in the manner described in the header, but you don't even need to read the header, since it's obvious how it's formatted.
If you tried to edit, but failed, PM me and I can give you a tutorial on how to do that.
In my opinion, it is nearly impossible NOT to understand the syntax after reading the header carefully.
8. Then set the USE_DATABASE_FILES in the configuration to true.
9. Then, start the game again and do a script call to
LanguageFileSystem::encrypt10. That will allow you to have the texts even when the game is encrypted
11. Then set the ENABLE_ENCRYPTION to true.
12. To change the language, use a script call to
LanguageFileSystem::set_language(language_name)where language_name is the language symbol
🙂English, :German...) or a string ("English", "German"...)
13. You can find the demo and the whole post here :
http://forums.rpgmakerweb.com/index.php?/topic/17964-language-file-system/