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.

FolderProgramConfiguration fileLog folder
1.ConnectServerConnectServer.execonnectserver.confConnectServer_Log
2.LoginServerLoginServer.exeloginserver.confLoginServer_Log
3.ServerLinkServerLink.exeserverlink.confServerLink_Log
4.1.GameServer_NON-PVP, 4.2.GameServer_PVP, 4.2.GameServer_VIP, 5.GameServer_Siege, 6.GameServer_Event, 7.GameServer_ArkaWarGameServer.exe (one sub-server per folder)GameServer.conf (and the shared Data\game_common.conf)GameServer_Log
Every .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 / folderPurposeProgram that reads itReloadUsually edited
connectserver.confWindow 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.ConnectServerRestart 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_LogActivity log, one file per run.Written by the program itselfNot applicableDo not edit.
LICENSE_AUTH.logThe program's license check log.Written by the program itselfNot applicableDo 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 / folderPurposeProgram that reads itReloadUsually edited
loginserver.confWindow title, account database (AccountDB), the port and network card GameServers connect to (GameServer.Port, GameServer.ListenIP), the data re-read interval (DataReloadSeconds), shutdown time.LoginServerRestart LoginServerRarely edited; account settings are in Data\Common.ini section [Account].
LoginServer_LogLogs (currently Database_[date_time].log files).Written by the program itselfNot applicableDo 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.

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 / folderPurposeProgram that reads itReloadUsually edited
serverlink.confWindow 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).ServerLinkRestart ServerLinkParty.LeaderOfflineDays, ShutdownSaveSeconds.
ServerLink_LogLogs (Database_[date_time].log files).Written by the program itselfNot applicableDo 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.

FolderSub-serverServerCode
4.1.GameServer_NON-PVPNon-PvP0
4.2.GameServer_PVPPvP1
4.2.GameServer_VIPGold / VIP2
5.GameServer_SiegeCastle Siege19
6.GameServer_EventEvent18
7.GameServer_ArkaWarArka War17

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 / folderPurposeProgram that reads itReloadUsually edited
GameServer.confThe 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 GameServerServerName, ServerCode, ServerType, DataPath.
Data\game_common.confShared database and addresses of ServerLink / LoginServer / ConnectServer. See Files in the root of Data.Every GameServerRestart GameServerDatabase information; ports for connecting to ServerLink / LoginServer / ConnectServer.
GameServer_LogActivity 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 itselfNot applicableDelete old logs when you need to free disk space.
LICENSE_AUTH.logLicense check log.Written by GameServer itselfNot applicableDo not edit.
If the GameServer folder contains additional debug log files or folders (packet logging, test result logging), those are debug logs and can be deleted.

START.exe, START.ini, License.sig

File / folderPurposeProgram that reads itReloadUsually edited
START.exeThe server and license management tool: start / stop each program, view each program's screen, website administration, the Skill tool.Run directlyNot applicableDo not edit.
START.iniSTART'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).STARTEdit in START and click SaveProgram list, ports for EDITOR / Launcher / website.
License.sigThe signed license file, downloaded by START after activation. GameServers read this file in the parent folder (next to START.exe).START, ConnectServer, LoginServer, ServerLink, GameServerNot applicableDo 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.STARTNot applicableDo 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.

See also START and License.

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 / folderPurposeProgram that reads itReloadUsually edited
EDITOR.exe, EDITOR.iniThe 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.EDITORWritten by EDITOR itself when you change settings in EDITORUsually edited in EDITOR, not by hand.
License.sigEDITOR's license.EDITORNot applicableDo not edit.
BmdWorking folder for the client's .bmd files; old versions are copied to Bmd\Backup when overwritten.EDITORNot applicableDo not edit by hand.
LangFolder for decoding / encoding Lang.mpr (the client's .txt text files).EDITORNot applicableEdit client text in EDITOR.
Interface, UiDesignInterface\GFx: GFx interface files for EDITOR to open. UiDesign: EDITOR's interface designs and the export folder (UiDesign\Export).EDITORNot applicableDo not edit by hand.
Images, CharactersItem images and Cash Shop images (Images); character class images (Characters).EDITORNot applicableNo.
CashShopEDITOR's working copy of the Cash Shop (CashShopCategory.xml, CashShopPackage.xml, CashShopProduct.xml...). The copy the server reads is Data\CashShop.EDITORNot applicableEdit in EDITOR.
LauncherLauncher projects (launcher-project*.tsw), theme files and the update cache (UpdateCache).EDITORNot applicableEdit in EDITOR.
CustomAn empty folder (only the subfolder Interface\Gfx); EDITOR currently does not read this folder.No program reads itNot applicableNo.
DataA 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 applicableNo.
BackupBackups: old GFx interface files when you overwrite them (Backup\GFx) and old EDITOR.exe versions.Written by EDITOR, never read backNot applicableOld copies can be deleted to free disk space.
logEDITOR's error log (log.txt).Written by EDITOR itselfNot applicableDo 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 / folderPurposeProgram that reads itReloadUsually edited
TswSetup.exeThe 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 applicableDo 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.TswSetupNot applicableDo not edit.
HUONG_DAN_CAI_DAT.txtInstallation guide and a table of which ports are open to the Internet and which are internal only.Read onlyNot 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.