Overview
A single physical machine can run multiple independent server sets (for example set 1 and set 2 with different databases and separate accounts). In terms of licensing, one physical machine is one license: the HDD ID and IP belong to the machine, so you can run as many START instances and databases on that machine as you like (see License). All you need to do is avoid port conflicts and code conflicts.
Rules
| Item | Requirement |
|---|---|
| Folder | Each set has its own folder (for example D:\MuServer1, D:\MuServer2) with its own START.exe and START.ini. Each folder can run only 1 START. |
| Database | Each set has its own pair of databases (for example MuOnline / LogMuOnline and MuOnline2 / LogMuOnline2). Edit AccountDB, GameDB and LogDB in the .conf files of set 2 so they point to the correct databases. Accounts are not shared between the 2 sets. |
ServerCode |
Must not be duplicated between sets on the same machine (GameServer creates a mutex based on ServerCode for the whole machine; if a code is duplicated, the second GameServer will not run). A simple approach: set 1 uses codes 0 - 19 (group 1), set 2 uses 20 - 39 (group 2). The sample ServerMap.xml already contains lines 20 - 22 and 37 - 39 for group 2. |
| GameServer port | Each sub-server needs a different ServerPort in ServerMap.xml (sample: group 1 uses 55521 - 55523, 55937 - 55939; group 2 uses 55541 - 55543, 55957 - 55959). |
| Internal LoginServer / ServerLink ports | If each set has its own LoginServer and ServerLink, their GameServer.Port must differ from the other set (two programs cannot listen on the same port). Remember to edit LoginServer.Port and ServerLink.Port in Data\game_common.conf of set 2 to match. |
| ConnectServer | Only one ConnectServer is needed for the whole machine (player port 44406). Run the ConnectServer of set 1; in set 2, point ConnectServer.Port / ConnectServer.Host in Data\game_common.conf to the ConnectServer of set 1 (sample 44422) and disable (untick "Use") the ConnectServer of set 2. The server list is read from ServerMap.xml of set 1, so that file must contain lines for both groups. |
| START ports | Change the ports in START.ini of set 2 so they do not conflict with set 1: [EditorGateway] Port (sample 44450), [LauncherGateway] Port (sample 44461), [Website] Port. |
| Firewall | The firewall rules of each START (Launcher, website API) must not overwrite each other; also open the GameServer ports of group 2. |
[NEEDS REVIEW: the "one shared ConnectServer" model and how to configure the website API / Launcher ports when there are multiple START instances on one machine must be confirmed by the product owner before publishing]
Steps to create the second set
- Create 2 new databases (Install SQL Server, create a database) and run the scripts on the correct databases.
- Copy the whole server folder of set 1 to a new folder. Do not copy
License.sig,.svkeyand.svowned(START of set 2 obtains them itself; see step 7). - Edit the
.conffiles of set 2: database, internal ports, and theServerCodeof each GameServer (20 - 39). - Edit
Data\ServerMap.xml(both set 1 and set 2): add the group 2 lines, new ports andServerIP. - Edit
START.iniof set 2: use START ports different from set 1. - Open the new ports on the firewall.
- Open START of set 2: START automatically obtains the license key for this folder (with the same HDD ID and IP already activated for the machine). [NEEDS REVIEW: whether set 2 requires an action on the website (reissuing the key) or obtains it automatically]
- Start the servers of set 2 except ConnectServer.