Overview
Each server program lives in its own folder, with a leading number in the name so that START knows the start / stop order. Every program folder contains: the .exe file, the .conf configuration file (next to the .exe), a log folder, and the license check log LICENSE_AUTH.log.
| Folder | Program | Configuration file | Log folder |
|---|---|---|---|
1.ConnectServer | ConnectServer.exe | connectserver.conf | ConnectServer_Log |
2.LoginServer | LoginServer.exe | loginserver.conf | LoginServer_Log |
3.ServerLink | ServerLink.exe | serverlink.conf | ServerLink_Log |
4.1.GameServer_NON-PVP, 4.2.GameServer_PVP, 4.2.GameServer_VIP, 5.GameServer_Siege, 6.GameServer_Event, 7.GameServer_ArkaWar | GameServer.exe (one sub-server per folder) | GameServer.conf (and the shared Data\game_common.conf) | GameServer_Log |
.conf file has full comments inside the file itself. General rules: a line starting with ; is a note and must be on its own line; a misspelled key name is ignored and the default is used; keys are not case-sensitive. .conf files contain database passwords, so do not send them to anyone else.1.ConnectServer
The first entry point for players: the client connects, receives the server list (read from Data\ServerMap.xml), and after choosing a sub-server receives the IP and port of that GameServer. GameServers also connect to it to report their status (running, number of players online).
| File / folder | Purpose | Program that reads it | Reload | Usually edited |
|---|---|---|---|---|
connectserver.conf | Window title, account database (AccountDB), the port and network card players connect to (Client.Port, Client.ListenIP), opening / locking the gate (Client.Open), connection limits, the port on which GameServers report status (GameServer.Port), the interval for re-reading ServerMap.xml (ServerListReloadSeconds), the update download address (UpdateUrl), shutdown time. | ConnectServer | Restart ConnectServer (ServerMap.xml alone is re-read automatically) | Client.Port (must match the port in the client), Client.Open (lock the gate during maintenance), Client.MaxPerIP / Client.MaxTotal (do not set to 0, because 0 blocks everyone). |
ConnectServer_Log | Activity log, one file per run. | Written by the program itself | Not applicable | Do not edit. |
LICENSE_AUTH.log | The program's license check log. | Written by the program itself | Not applicable | Do not edit. |
GameServer.Port in connectserver.conf must match ConnectServer.Port in Data\game_common.conf. With a wrong port the GameServer still runs but does not appear in the server selection list.2.LoginServer
Keeps the login state of every account: GameServers connect to it to verify account / password, to prevent one account from being in two places at once, and to handle server switching between sub-servers. Players do not connect directly to LoginServer.
| File / folder | Purpose | Program that reads it | Reload | Usually edited |
|---|---|---|---|---|
loginserver.conf | Window title, account database (AccountDB), the port and network card GameServers connect to (GameServer.Port, GameServer.ListenIP), the data re-read interval (DataReloadSeconds), shutdown time. | LoginServer | Restart LoginServer | Rarely edited; account settings are in Data\Common.ini section [Account]. |
LoginServer_Log | Logs (currently Database_[date_time].log files). | Written by the program itself | Not applicable | Do not edit. |
Account settings (lock after repeated wrong passwords, server switch time...) are not in loginserver.conf but in Data\Common.ini section [Account]. LoginServer re-reads Data\World\WorldServer.xml and the [Account] section automatically according to DataReloadSeconds.
3.ServerLink
The bridge between GameServers: guild, Gens, alliance, guild search, mail / chat between servers, Castle Siege, and cross-channel party. It writes those changes to the character database. Players do not connect directly to ServerLink.
| File / folder | Purpose | Program that reads it | Reload | Usually edited |
|---|---|---|---|---|
serverlink.conf | Window title, character database (GameDB, same as the GameServer's GameDB), the port and network card GameServers connect to, the number of days a party leader may stay out of the game before the party is disbanded (Party.LeaderOfflineDays), the wait time for writing data on shutdown (ShutdownSaveSeconds). | ServerLink | Restart ServerLink | Party.LeaderOfflineDays, ShutdownSaveSeconds. |
ServerLink_Log | Logs (Database_[date_time].log files). | Written by the program itself | Not applicable | Do not edit. |
GameServer folders (4.1 to 7)
Each folder is one sub-server. The sub-servers differ only in GameServer.conf (name, ServerCode, type). All of them share the Data folder unless you set a separate DataPath.
| Folder | Sub-server | ServerCode |
|---|---|---|
4.1.GameServer_NON-PVP | Non-PvP | 0 |
4.2.GameServer_PVP | PvP | 1 |
4.2.GameServer_VIP | Gold / VIP | 2 |
5.GameServer_Siege | Castle Siege | 19 |
6.GameServer_Event | Event | 18 |
7.GameServer_ArkaWar | Arka War | 17 |
The codes above come from the Data\ServerMap.xml of the current package. The real code of each sub-server is the ServerCode value in GameServer.conf, which must match one line in ServerMap.xml.
| File / folder | Purpose | Program that reads it | Reload | Usually edited |
|---|---|---|---|---|
GameServer.conf | The sub-server's own configuration: ServerName, ServerCode, DataPath (a separate Data folder; empty = use the shared ..\Data), ServerType (sub-server type: normal, Castle Siege, Event, Arka War), Client.ListenIP, save and shutdown times (ShutdownSaveSeconds, ShutdownTimeoutSeconds), Panel (show the management window), Logskill. | GameServer (read after game_common.conf; if a key is duplicated this file wins) | Restart GameServer | ServerName, ServerCode, ServerType, DataPath. |
Data\game_common.conf | Shared database and addresses of ServerLink / LoginServer / ConnectServer. See Files in the root of Data. | Every GameServer | Restart GameServer | Database information; ports for connecting to ServerLink / LoginServer / ConnectServer. |
GameServer_Log | Activity logs by type, one subfolder per type: AntiHack, AutoLogin, CashShop, ChaosMix, Chat, DamagePvP, Event, Gens, Guild, Items, Jewel, Monster, Party, PersonalShop, Player, Quest, QuestMU, Skill, SkillTest, System, Trade. | Written by GameServer itself | Not applicable | Delete old logs when you need to free disk space. |
LICENSE_AUTH.log | License check log. | Written by GameServer itself | Not applicable | Do not edit. |
START.exe, START.ini, License.sig
| File / folder | Purpose | Program that reads it | Reload | Usually edited |
|---|---|---|---|---|
START.exe | The server and license management tool: start / stop each program, view each program's screen, website administration, the Skill tool. | Run directly | Not applicable | Do not edit. |
START.ini | START's settings, written by START itself when you click Save. Sections: [General], [Servers], [Server1] to [Server9] (program list), [EditorGateway] (port for EDITOR), [LauncherGateway], [LauncherSmtp], [LauncherGuard], [LauncherMail] (Launcher: registration, login, sending email codes), [Website], [WebGuard] (website API). | START | Edit in START and click Save | Program list, ports for EDITOR / Launcher / website. |
License.sig | The signed license file, downloaded by START after activation. GameServers read this file in the parent folder (next to START.exe). | START, ConnectServer, LoginServer, ServerLink, GameServer | Not applicable | Do not edit, do not copy to another machine. |
.svkey, .svowned (hidden files) | The license connection key and the list of purchased features; created by START itself, encrypted per machine and Windows account. | START | Not applicable | Do not delete while the server is running. |
START.ini contains values encrypted per the Windows account that runs START. Do not share this file and always run START under the same Windows account.EDITOR
The tool for editing server data and generating client files. It has its own License.sig in its folder. EDITOR sits in its own folder next to START.exe; it looks for the server's Data folder in the parent folder. If EDITOR\Data already contains a copy of Data (with a VIPSystem.xml file), EDITOR uses that copy; otherwise it uses the server's Data.
| File / folder | Purpose | Program that reads it | Reload | Usually edited |
|---|---|---|---|---|
EDITOR.exe, EDITOR.ini | The program and its settings file (section [General]: language, data path, database connection or START connection; section [Launcher]; section [Auth]: website account login). Contains connection information, do not share. | EDITOR | Written by EDITOR itself when you change settings in EDITOR | Usually edited in EDITOR, not by hand. |
License.sig | EDITOR's license. | EDITOR | Not applicable | Do not edit. |
Bmd | Working folder for the client's .bmd files; old versions are copied to Bmd\Backup when overwritten. | EDITOR | Not applicable | Do not edit by hand. |
Lang | Folder for decoding / encoding Lang.mpr (the client's .txt text files). | EDITOR | Not applicable | Edit client text in EDITOR. |
Interface, UiDesign | Interface\GFx: GFx interface files for EDITOR to open. UiDesign: EDITOR's interface designs and the export folder (UiDesign\Export). | EDITOR | Not applicable | Do not edit by hand. |
Images, Characters | Item images and Cash Shop images (Images); character class images (Characters). | EDITOR | Not applicable | No. |
CashShop | EDITOR's working copy of the Cash Shop (CashShopCategory.xml, CashShopPackage.xml, CashShopProduct.xml...). The copy the server reads is Data\CashShop. | EDITOR | Not applicable | Edit in EDITOR. |
Launcher | Launcher projects (launcher-project*.tsw), theme files and the update cache (UpdateCache). | EDITOR | Not applicable | Edit in EDITOR. |
Custom | An empty folder (only the subfolder Interface\Gfx); EDITOR currently does not read this folder. | No program reads it | Not applicable | No. |
Data | A copy of Data used only by EDITOR (if it contains VIPSystem.xml, EDITOR uses this copy). The current package only has Plugin\WebAPI\config.ini inside, so EDITOR uses the server's Data. | EDITOR (when a complete Data copy exists) | Not applicable | No. |
Backup | Backups: old GFx interface files when you overwrite them (Backup\GFx) and old EDITOR.exe versions. | Written by EDITOR, never read back | Not applicable | Old copies can be deleted to free disk space. |
log | EDITOR's error log (log.txt). | Written by EDITOR itself | Not applicable | Do not edit. |
SkillTools
Contains Ui.txt (two numbers, Zoom and Split: the zoom level and the pane split position of the Skill tool in START). START also writes the file LogSave.txt into this folder when you use the skill save function.
Data Web
A folder containing data files intended for your website. No program in the package (START, EDITOR, GameServer, TswSetup) reads this folder. For how to install the website, see the Website installation section.
SETTUP WEBSITE
| File / folder | Purpose | Program that reads it | Reload | Usually edited |
|---|---|---|---|---|
TswSetup.exe | The installer for the website, Launcher update (IIS) and FTP. Run it with "Run as administrator". It automatically reads the configuration of the parent server folder (START.ini, Data\game_common.conf, Data\ServerMap.xml). | Run directly (Run as administrator) | Not applicable | Do not edit. |
packages\ | The required installer packages: PHP, ODBC, URL Rewrite, Visual C++ Redistributable, WebHosting.zip (the website package). Keep this folder next to TswSetup.exe. | TswSetup | Not applicable | Do not edit. |
HUONG_DAN_CAI_DAT.txt | Installation guide and a table of which ports are open to the Internet and which are internal only. | Read only | Not applicable | - |
A website running on rented hosting (cPanel) does not use this installer but uses a separate website package; see the website installation section.
Log
Shared logs written by START: WebGate_<date>.log (the website API gateway log) and the Website folder divided by type: Account, Admin, Auction, Bank, Config, Gate, Guard, Items, Pay, Protocol, Security. For reference only; no need to edit.