The Launcher is the program players open before entering the game. The Launcher automatically updates game files and lets players register an account, change their password, log in and save accounts (going straight to the character selection screen), choose a server, and then run main.exe. You design the Launcher interface yourself in EDITOR; all account operations go through START on the game server using a dedicated port.
Deployment process
- Design the Launcher in EDITOR and export it as an
.exefile. - Configure the server list and the location of the update files (Update configuration).
- Place the update files on your website / hosting (using a folder or FTP).
- Enable the Launcher port in START and create a KEY.
- Copy the Launcher into the client folder, next to
main.exe. - Edit
Data\Plugin\Launcher\Launcher.iniif you use quick login.
Designing and exporting the Launcher
In EDITOR open the Launcher section (Launcher Design). Menus: File (New, Open, Save, Save as), Edit, Add, Arrange, View, Publish.
- The Launcher project is saved as a
.tswfile. Each time you save, the previous version is copied to theBackupfolder. - Add menu: Button, Text, Image, Progress (progress bar), Video, Audio, Website (link), Background, Input box, Checkbox, Dropdown.
- Each element has a Properties panel (font size, web link, button action, text offset...). A button can be assigned actions such as select server, register, change password, open login, close panel...
- Input boxes have a Function option to bind them to a data field: Account, Password, Confirm password, New password, Full name, Email, Email activation code, Phone, Secret question / answer, Security code, Verification code, Zalo, Facebook, Discord, WeChat, QQ, Telegram, Registration server; plus client-side options such as windowed mode, resolution, and game language.
How to export: menu Publish > Export Launcher creates an .exe file. Copy this file into the game folder next to main.exe. The file name must match the "Launcher Name" in ServerConfig.bmd, and ServerConfig.bmd must have Launcher = 1 enabled. A Launcher face with no elements cannot be exported.
Update configuration
Publish > Update configuration contains the following tabs:
Update file location
| Method | Fields | Notes |
|---|---|---|
| Hosting folder on the server | Update link; Hosting root folder | EDITOR runs on the same machine as the update site: files are created directly in the root folder (OK - Create update files button) |
| FTP hosting | FTP server, Port, Account, Password, FTP folder, Passive | Use this when the update site is on another machine. The Test connection button checks the connection; the Update - Upload to FTP button uploads the files |
The Update link is the web address where players download files, for example 203.0.113.10:8080/Update or your-domain.com/Update. The Launcher downloads server_N/list.txt and the accompanying files from this address. The source update folder must not be inside (or contain) the hosting folder.
Server list
Each row is one server (Add server button):
| Column | Meaning |
|---|---|
| Folder | Subfolder on the hosting for this server (server_N) |
| Display name | Name shown for players to choose |
| Server IP | Game server IP |
| Port CS | ConnectServer port |
| START port | Launcher port of this server's START (see below) |
| START KEY (Launcher) | Launcher KEY of this server's START |
| Folder containing files to update | Source folder on your machine containing this server's client files |
The tool hashes and compresses files (SHA-256), only creates or uploads new / changed files, and deletes old files that are no longer used. If you have multiple servers, add a Select server button to the Launcher face.
Behavior
- Automatically check and update when the player clicks Play. If turned off: players must click the Update button first, and the Play button always enters the game.
- Check server online status via the START port. If the server cannot be reached, the server select button is dimmed and clicking Play reports that it is under maintenance.
- Minimize the launcher after entering the game. The Launcher does not close by itself because
Main.dllneeds it to keep running for checks. - Launcher language: automatic based on the player's Windows language, or choose one language.
Notifications
Customize the notification messages. Leave empty to use the default text for the client language. Available variables: {server}, {file}, {name}, {code}; use \n for a line break.
When the player clicks Play: select server → check online status → download server_N/list.txt → download only differing files → check ServerConfig.bmd (Launcher = 1, launcher name, number of windows) → run main.exe.
Register, change password, log in via START
The Launcher has no separate API. Registration, password change, forgotten password via email code, and login are all sent to START through a dedicated port and dedicated KEY (different from the EDITOR port). The Register panel has two modes (Register / Change password); each input box has a Show in option: both, Register only, or Change password only. In EDITOR click View to lay out each mode.
- START > Server Administration > Launcher: enable the Launcher port, set the port and create the Launcher KEY. The default port is
44460(the sampleSTART.inifile may say44461; use the exact number shown in your START). - Open this port (Internet) on the firewall and router of the game server.
- In EDITOR: Publish > Update configuration, fill in the START port and START KEY (Launcher) for each server. The IP is taken from
ServerConfig.bmd. - To send codes by email: START > Launcher > configure SMTP (port 465 SSL) and the email scripts; in EDITOR fill in the script ID for each email: Registration code, Welcome, Forgot password code, Password changed (0 = do not send).
Some limits are managed by START (in START.ini, section [LauncherGateway], edited through the START interface):
| Key | Value | Default | Meaning |
|---|---|---|---|
Enabled |
0 / 1 | 0 | Enable the Launcher port |
Port |
1-65535 | 44460 | START Launcher port |
Key |
encrypted | empty | Launcher KEY (encrypted in the file) |
Register |
0 / 1 | 1 | Allow registration |
ChangePassword |
0 / 1 | 1 | Allow password change |
EmailCode |
0 / 1 | 0 | Use a verification code sent by email |
ForgotPassword |
0 / 1 | 0 | Allow forgotten password (OTP code via email) |
RegisterPerIp |
0-1000 | 3 | Maximum accounts registered per IP |
RegisterPerMachine |
0-1000 | 2 | Maximum accounts registered per machine |
CodeMinutes |
1-1440 | 10 | Number of minutes a code sent by email remains valid |
[NEEDS REVIEW: the detailed meanings of the [LauncherGateway] keys are inferred from the key names and defaults in the START code; the product owner should confirm them, and whether a value of 0 for RegisterPerIp / RegisterPerMachine means unlimited or fully blocked]
Launcher.ini: quick login
The file Data\Plugin\Launcher\Launcher.ini (in the game server folder, read by the GameServer; START also reads and writes this file when you edit it in the interface) controls the save account and go straight to character selection feature.
How it works: the player logs in through the Launcher; the Launcher saves the account name and a login code (token), and does not save the password. Next time, they select the saved account and click enter game to go directly from server selection to the character selection screen. Each account has only one token: logging in to the Launcher on another machine invalidates the old token (the old machine must log in again). Changing the password also deletes the token.
Data\Plugin\Plugin.ini section [Plugin] has Launcher = 1, and Launcher.ini has Enable = 1. If any one of the three conditions is missing, the GameServer will not accept token login.Key (section [QuickLogin]) |
Value | Default (sample file) | Meaning |
|---|---|---|---|
Enable |
0 or 1 | 1 | 1: accounts logged in through the Launcher are saved (account + token, password not saved); selecting a saved account and clicking Start goes straight to the character selection screen. 0: the Launcher does not save accounts, and everyone logs in inside the game as usual |
MaxAccounts |
1 to 20 | 5 | Number of accounts saved on each computer. Values outside the range are clamped to 1-20 |
TokenDays |
1 to 365 | 30 | Number of days a saved login remains valid. Values outside the range are clamped to 1-365 |
Example:
[QuickLogin]
Enable=1
MaxAccounts=5
TokenDays=30
MaxAccounts or TokenDays key is missing from the file, START uses its own default values (3 accounts, 30 days).In EDITOR, the Launcher face needs a Login panel (Login Configuration tab): tick Log in directly to the game so that when Enter game is clicked, the Launcher finishes checking for updates and then opens the Login panel; saved accounts appear in the list below, and clicking an account launches main.exe straight to character selection. The Rebuild template from Register panel button quickly builds the Login panel from the Register panel.
Launcher port protection
START has a Launcher Protection section with three levels: Strict, Medium (balanced, recommended, wide enough for internet cafes with many machines sharing one IP) and Relaxed. Lockouts due to wrong passwords are counted per machine, not per IP, so internet cafes are not locked out unfairly. You can enable automatic firewall rule creation and a list of always-allowed IPs ([LauncherGuard] Level 0-2, default 1; Firewall; Whitelist).
Multiple servers
- Each server has its own START port and START KEY (Launcher) in the Update configuration table.
- On the Register panel, the Registration server box lets players choose which server the account is created on. Login and tokens are also tied to the selected server.
- Accounts are not shared between servers.
- A server's online status is determined by connecting to that server's START port.