Skip to main content

Edit Game Configuration

MahiruAbout 1 min

Edit Game Configuration

Under the game folder, there is a file named config.txt, you can fill in the relevant information of your game in this file (you can edit it directly using a graphical editor).

ParameterDescription
Game_nameGame name
Game_keyGame identification code, 6-10 characters in length, do not repeat with other games
Title_imgTitle picture, put it in the background folder
Title_bgmTitle background music, put it in the bgm folder
Game_LogoGame Logo, multiple can be displayed, separated by |
Enable_AppreciationWhether to enable the Appreciation feature, including CG and background music appreciation.
Default_LanguageDefault language, can be set to 'zh_CN', 'zh_TW', 'en', 'ja', 'fr', 'de'
Show_panicWhether to enable the panic button feature, set to true or false
Legacy_Expression_Blend_ModeWhether to enable legacy expression blend mode for Live2D, set to true or false
Max_lineMaximum number of displayed lines in the text box
Line_heightLine height of the text box (unit: em)

The following is a sample configuration file:

Game_name:WebGAL;
Game_key:0f33fdGr;
Title_img:Title.png;
Title_bgm:夏影.mp3;
Game_Logo:WebGalEnter.png|bg.png;
Enable_Appreciation:true;

Switching Languages

Default_Language only sets the default interface language when the player launches the game for the first time. Players can still switch languages later in Menu -> Options -> System -> Language, and the selected language will be saved locally and reused on the next launch.

If you also prepare multiple script languages, read the current interface language in your script and jump to the corresponding scene file. You can use the internal variable $userData.optionData.language:

setVar:lang=($userData.optionData.language);
changeScene:start_zh.txt -when=lang==0;
changeScene:start_en.txt -when=lang==1;
changeScene:start_ja.txt -when=lang==2;

The numeric values map to languages as follows:

ValueLanguage
0Simplified Chinese
1English
2Japanese
3French
4German
5Traditional Chinese

Tips

Changing the language from the menu only changes the engine UI language. If you want the game script itself to switch too, branch to different scene files in your script as shown above.