Overview
These two folders are read by GameServer:
Data\Lang: every notice, system message and text label that the server shows to players is here, one file per language. To change a piece of text, edit it in Lang, not in the program.Data\Commands: the list of commands typed in the chat box (/commandfor players,.commandfor GMs) and the buttons of the F1 command panel.
Data\Lang
| File / folder | Purpose | Read by | Reload | Commonly edited |
|---|---|---|---|---|
LangBase.xml | The server's language list: each <Lang ID FileName> row links a language number to a file; the DefaultLang attribute is the default language (currently 5 = Vietnamese), FallbackLang is the fallback language (GameServer loads the fallback file first, then the default file overrides it; any text the default file lacks uses the fallback file's text). To add a language, add a row here and create a file with the same name in the Lang folder. | GameServer | Reload language button (reloads LangBase.xml and the language files) | Changing the default language. |
English.xml, Vietnamese.xml, Spanish.xml, Portuguese.xml, Korean.xml, Chinese.xml, Russian.xml | Each file is all the text of one language, divided into groups <Group Type="..." Name="...">, each row <Data ID="..." Text="..."/> (IDs numbered from 1 within the group). The source code looks up text by the pair (group, ID). The groups include: system, events, the F1 command panel (group 48), Reward Center (49), Ranking Board (50), Exchange (51)... and the text of the plugins. GameServer loads only the file of the default language and the fallback language file; the remaining language files are currently not read. | GameServer | Reload language button (no chat command) | Editing the text content (Text); keep Type, ID and the symbols %s, %d, %u unchanged. |
Do not change the
ID number or the group Type, and do not delete rows: the source code finds text by these numbers. Symbols such as %s, %d are the places where the server fills in a name / number; a missing or extra symbol can make GameServer display incorrectly or fail. Each translation must keep the same order and number of symbols as the original text.Data\Commands
| File / folder | Purpose | Read by | Reload | Commonly edited |
|---|---|---|---|---|
Commands.xml | GameServer's command list. ID is the fixed function (not changed), name is the text typed in game (can be changed freely, for example ID="23" name="xoaruong" means you type /xoaruong). Authority: 0 = player, 2 = GM only. Type 0 is a player command (typed with /); Type 1 to 15 are GM commands (typed with .; the GM must first type /auth security_code). Show="1" shows a button in the F1 command panel. The guide at the top of the file explains everything in full. | GameServer | .reload config (resends the list to players who are online) | Renaming commands, turning commands on / off, showing buttons in the F1 panel. |
LuaCommands.xml | Custom commands handled by Lua scripts (Type 16, IDs from 2000). Each row declares the command name and permission; the handling is in a Lua module (for example Data\LuaAPI\Includes\CmdCommands). Currently only the sample command test exists. | GameServer (LuaAPI) | Reload LuaAPI button | Adding new Lua commands (see Lua API). |
F1 command panel: the key that opens the panel is set in
Data\Plugin\Plugin.ini, section [CommandPanel]. The text on the buttons (button name, guide, input box name) comes from Data\Lang\<language>.xml, group 48 "Command Panel", with the same Type and ID as Commands.xml; if it is not in Lang, the title / name / Description of Commands.xml is used.