One website can serve one game server (the default after installation) or multiple game servers. Each server has its own START and its own game database; all of them share one website and one website database.

Automatic mode

The installer always connects one START (the initial server). There is no "single / multi" option during installation. The website switches to multi-server mode when the Admin panel has 2 or more servers enabled and each has a START API address and Key filled in. Delete or disable servers until only 1 remains and the website returns to single-server mode.

Adding a second server and beyond

  1. Install the website as usual with the first server.
  2. On the second game server: open that server's START > Website Administration > Connection, create a separate Key for this server and save. Set the API port and allowed IP the same way as on the first server.
  3. On the website: log in to /admin with the main administrator account and open System > System Settings > Game Servers.
  4. Click Add server and fill in the fields (table below).
  5. Click Connect on the server row to test: the result shows START connection successful (n ms) or an error code.
  6. Click Save.
Field Meaning
Server name Name shown on the website and in news titles (required)
Season For example Season 22, shown on the home page
EXP rate For example 100x
Item drop rate For example 30%
Points per level For example 5/6/7
Server opening date Opening date, shown on the website
ConnectServer address (IP / domain name) and CS Port The website tries to connect here to show Online / Offline (rechecked every 60 seconds). If the CS Port is left empty, it is 44405
Use this website's database (automatically count accounts / characters) / Accounts / Characters Uncheck if this server uses a different database; then enter the number of accounts and characters yourself (leave empty = not shown)
START API address For example http://server-IP:44480 (/api/v1 is added automatically if missing)
START Key The 64-character Key of that server's START. Leave empty = keep the saved Key. The Key is not stored in the database but in APP/Config/api.php
The web hosting must be able to reach the IP + CS port to show the Online status. Some hosts block unusual ports, in which case the server always shows Offline even while running.
The first server (the one set up at installation) uses the address and Key recorded during installation (url and secret in api.php), so there is no need to enter them again.

Multiple servers on the same physical machine

When running several server sets (each with its own START) on the same machine, the Website API port is shared:

  • Only one START is ticked Enable API port for Website and holds the port. The other STARTs run alongside it, each still with its own Key, and the START holding the port forwards commands to them by signature (whichever Key matches, the command is forwarded to that START and uses its database).
  • When another START enables the port while it is already held, START reports Port ... has been taken over by another START. Only 1 START per machine can enable the port.
  • In the website Admin, all servers use the same START API address (http://IP:port) and differ only in Key.
Game accounts are not shared between servers: each server has its own accounts in its own database. [NEEDS CHECKING: how to set up the second START (whether to tick "Enable API port" or only set the Key) and testing with two real STARTs running at the same time]

How the website behaves with multiple servers

  • Login, registration and forgot password have a server selection field. Whichever server a player logs in to, all account / character commands (and the management page) run on that server.
  • The menu bar has a field to choose the server being viewed. Rankings and all game data pages are separated by the selected server.
  • News and events have an additional Server field. If you choose a server, the post only appears on that server, and the title automatically gets the prefix [Server name]. Leave it empty for a post shared by all servers.
  • Maintenance status and the API cache are also separated by server.
  • The management page shows the name of the server being managed in the corner of the sidebar.
  • When pushing settings from the website to START (START Sync), the website pushes to every declared START.

Server column in the website database

The two tables web_notices and web_portal_items get an additional server_id column. The website adds this column automatically once when you enable multi-server mode. If the website's database account does not have ALTER permission, run the SQL file 20261201_web_server_id.sql manually from the Web\MySQL (MySQL) or Web\SQLServer (SQL Server) folder of the update package; it can be run repeatedly without errors. New installation packages already include this column.