TswSetup (TswSetup.exe) is an installer for Windows Server, intended for TSWMU servers that use SQL Server. The installer does four things, and you choose which ones you need:
- Launcher update site (IIS, default port
2020): the folder holding the update files that the Launcher downloads (EDITOR publishesserver_N/list.txtand thefilesfolder). - FTP (optional): lets EDITOR on another machine push update files to this machine.
- Game website (optional): installs PHP 8.3, creates the IIS site, creates the website database on SQL Server and installs the website (see the Install on Windows Server page).
- Opens the Windows firewall for the ports the game server needs.
/install.php page of the cPanel package.Preparation
- Windows Server, with an account that has Administrator rights.
- The
SETTUP WEBSITEfolder containingTswSetup.exeand thepackagesfolder (keeppackagesnext to the exe). If a file is missing frompackages, the installer reports the name of the missing file. - SQL Server 2012 or later (when installing the website or checking the database).
- Place
SETTUP WEBSITEinside the server folder (same level asSTART.exe) so the installer reads the parent server's configuration automatically. If there is no server folder, choose the separate web machine mode.
To run: right-click TswSetup.exe > Run as administrator. Without the rights, the installer reports "Missing Administrator rights". Three languages are available: Tiếng Việt, 中文, English.
Two modes (chosen on the first page)
| Mode | Use when | Differences |
|---|---|---|
| 1. Game server + web on the same machine | This machine runs the game server, the website and the Launcher update | Reads the server configuration (START.ini, Data\game_common.conf, connectserver.conf, Data\ServerMap.xml); checks the MuOnline and LogMuOnline databases; creates the website database here |
| 2. Separate web machine (2 machines) | Run the installer on the web machine; the game server is on another machine | The MuOnline / LogMuOnline databases are not needed. Enter the game server IP, API port and Key manually. The firewall ports for Launcher, ConnectServer, GameServer and API are not opened (these ports belong to the game server machine) |
The installer detects the mode: if it finds the server folder it selects mode 1, otherwise mode 2.
Steps in the installer
- Welcome: choose the language and mode.
- General settings: server folder, install folder, port table (below).
- FTP: enable when needed.
- Database: SQL Server, game DB, and the option to host the website on this machine.
- Download: optional.
- Review: check all choices again.
- Install: runs; the log is shown in the window.
Step 2. General settings
- Game server folder (containing
START.exe): select it so the installer reads the configuration automatically. Leave it empty for a separate web machine. - Install folder: default
C:\TSWMU. The installer creates the subfoldersUpdate,Website,php83,Download,Server. - Launcher update (IIS): tick to create the Launcher update site on this machine. Untick if the update files are on the main server or on hosting; in that case this machine only installs the website (no
2020site, no FTP). - Ports table: each row has a service name, a port number and an Open firewall checkbox.
| Service | Default port | Scope | Firewall open by default |
|---|---|---|---|
| Website (IIS) | 80 | Internet: players visit the website | Yes |
| Launcher update (IIS) | 2020 | Internet: Launcher downloads update files (http://IP:2020/) |
Yes |
| Launcher port (START) | 44461 (read from START.ini) |
Internet: Launcher registration / login | Yes |
| ConnectServer | 44406 (read from connectserver.conf) |
Internet: the game fetches the server list | Yes |
| GameServer (the subs) | read from Data\ServerMap.xml (e.g. 55521,55522) |
Internet: players enter each sub | Yes |
| Website API (START) | suggested value 5000 (see the note) |
Only for the hosting IP / web machine; START manages the firewall itself | No |
| SQL Server | 1433 | This machine only / LAN. Do not open to the Internet | The installer does not open it |
| START EDITOR port, ServerLink, LoginServer, internal ConnectServer | per configuration | This machine only / LAN. Do not open to the Internet | The installer does not open it |
- The installer automatically opens the Windows firewall for the Internet ports. If the machine is behind a router / modem, you must NAT (Port Forwarding) those ports to the server's LAN IP.
- To change the START, ConnectServer or GameServer ports, change them in
START.ini,connectserver.conf,Data\ServerMap.xml, then run the installer again (the installer only opens the firewall for the ports it can read). - Ports must not conflict. If a port is already used by another program, the installer asks whether to continue (an old IIS site with the same name will be replaced).
44480, while the installer's suggested value is 5000. Enter the port actually set in START. [TO CHECK: the product owner to unify the default port between START (44480) and TswSetup (5000)]Step 3. FTP
Enable only when the update site is on this machine and EDITOR runs on another machine.
- EDITOR runs on this machine: FTP is not needed. In EDITOR > Launcher > Update settings, choose the Hosting folder on the server tab and set the root folder to the
Updatefolder inside the install folder (e.g.C:\TSWMU\Update). - EDITOR on another machine: enable FTP here; in EDITOR choose the FTP hosting tab and enter the IP, port and FTP account.
- Update files on rented hosting: no FTP is needed in the installer; use the FTP of the hosting provider.
| Field | Default | Notes |
|---|---|---|
| FTP account | ftpupdate |
The installer creates / updates this Windows account |
| Password | - | At least 8 characters, containing 3 of 4 groups: uppercase, lowercase, digits, symbols (per the Windows password policy) |
| FTP port | 21 |
Open to the Internet |
| Passive port range | 50000 to 50100 |
Open to the Internet; NAT the whole range on the router |
| External IP (WAN) | detected automatically | The IP that EDITOR uses to connect |
Step 4. Database
- SQL Server: address (default
127.0.0.1), port (1433), account (sa), password; click Test. - MuOnline DB, LogMuOnline DB, Web MU Server DB (default
Web_MuOnline): the names of the server's databases. In mode 1 the installer checks these databases; if the Web MU Server DB is not installed yet, open START > Website Administration and click Install. - In mode 1 click Read START.ini to pre-fill the information and the API Key. Run the installer with the same Windows account that runs START, because the Key in
START.iniis encrypted per Windows account; if it cannot be decrypted, enter the Key manually (64 hex characters). In mode 2 enter the game server IP and the Key manually. - Tick Host the website on this machine (create the Web MU Hosting DB) if you want the website on this machine: enter the Web MU Hosting DB (default
Host_MuOnline, must differ from the other three DBs), the Website name, the Website language and the main admin game account (level 50, an account that already exists in the game DB, with no separate admin password). If not ticked, the installer only prints instructions for rented hosting (web package, API address, Key, IP to allow).
Database names may contain only letters, digits and the _ character, and must start with a letter. SQL Server versions that are too old (below 2012) are rejected.
Step 5. Download
Optional: download the server package (extracted into the Server folder) and the web hosting package from the pre-filled links. If you do not download the web package, the installer uses the bundled packages\WebHosting.zip.
What the installer does when you click Install
- Enables the Windows features needed for IIS (CGI...), sets folder permissions, opens the selected firewall ports.
- Deletes the old IIS site with the same name (if any), creates the Launcher update site (named
TSWMU_Update, root folderUpdate), and disables directory browsing. - If FTP is enabled: creates the FTP account and group, configures Passive mode, authentication, read / write permissions, and restarts the FTP service.
- If hosting the website: installs Visual C++ Runtime, ODBC Driver for SQL Server, URL Rewrite, PHP 8.3 +
sqlsrv(intophp83), extracts the website intoWebsite, creates the app pool and theTSWMU_Website, configures FastCGI for PHP, creates the Web MU Hosting DB, and runs the website installation from the command line. - Writes the results.
After installation
TswSetup-summary.txtnext toTswSetup.exe: summary of the website address, admin address, main admin account and ports.- The Copy and Save TXT buttons (
TswSetup-info.txt) in the results window. TswSetup-install.log: log of each step (OK / ERROR / Skipped).- If the website is not hosted on this machine: the results window prints instructions for rented hosting (web package, API address, Key, and the IP to add in START > Website Administration > Additional Hosting IP).
Common errors
| Message | Solution |
|---|---|
| Missing Administrator rights | Run again with Run as administrator |
Missing file in the packages folder next to TswSetup.exe |
Keep the packages folder alongside; download the installer package again |
| Nothing selected to install | Tick Launcher update (step 2) or Host the website on this machine (step 4) |
START is not running / cannot read START.ini |
Select the correct folder containing START.exe or enter manually |
| START has not enabled the website API | START > Website Administration > Connection: enable the port, Save |
Cannot decrypt the Key in START.ini |
Run the installer with the Windows account that runs START, or enter the Key manually |
| Web MU Server DB not installed | START > Website Administration > Install |
| DB ... not found | Check the game / log database names |
| SQL Server too old | SQL Server 2012 or later is required |
| FTP password too weak | Set a password that meets the policy (see the FTP table) |
| Error installing the website (from the last step) | The message from the website install page appears in the log; see the website troubleshooting page (wrong Key, IP not allowed, clock skew...) |
The installer can be run multiple times; an IIS site with the same name is replaced. If the website is already installed (private\installed.json exists in the Website folder), the website install step reports "Already installed"; to update the website, see the Update the website page.