How It Works
The game website runs in one place, and the game server runs somewhere else (or on the same machine). The two communicate as follows:
- Players visit the website with a browser.
- The website sends commands (login, view characters, rankings...) to the START Website API port at an address like
http://game-server-IP:port/api/v1. Each command is signed with the Connection Key (64 hex characters) and carries a timestamp, so the clocks of the two machines must not differ by more than 2 minutes. - START verifies the signature and checks whether the calling IP is in the allowed IP list, and only then reads / writes the game database or calls the GameServer.
- The website database (MySQL or SQL Server) contains website data only. The website has no SQL account with access to the game database.
Choosing an Installation Method
| cPanel Hosting | Windows Server + IIS | |
|---|---|---|
| Website database | MySQL / MariaDB provided by the hosting provider | SQL Server (2012 or later) on your machine |
| Package | TSWMU_Web_cPanel_<code>.zip (folder Web\Hosting in the update package) |
TSWMU_Web_WindowsServer_<code>.zip (folder Web\Server_IIS): contains the TswSetup.exe installer and the packages folder |
| How to install | Upload the package to public_html, extract it, open /install.php and fill in the form |
Run TswSetup.exe as Administrator: the installer enables IIS, installs PHP, creates the site and installs the website |
| Connecting the website to START | Over the Internet: START must open the API port for the hosting's IP | Same machine: use the LAN IP or 127.0.0.1. Separate web machine: over the network, same as hosting |
| Best for | Running the web separately from the game server, with the hosting's domain + SSL | Managing everything yourself on a single Windows Server machine |
The cPanel package and the Windows package use the same website source code. The two methods differ only in the installer and the database type. All features, the admin panel and the way of connecting to START are identical.
General Requirements
- The game server is already running START, the license is activated, and the account has purchased the Website package.
- The game server's SQL Server already has the game database; in START, the Website Management section has finished Setup of START's website database (see the START connection page). [NEEDS CHECKING: the TswSetup installer requires this step when installing on the same machine as the game server; it is not confirmed whether START requires this step when the website is on cPanel hosting]
- An existing game account (register it beforehand with the Launcher or EDITOR). This account becomes the website's main admin (level 50): logging in to the website with that game account gives access to the admin panel, and there is no separate admin password.
- The game server clock and the website host clock match (START accepts a maximum difference of 120 seconds).
- The domain name points to where the website is hosted (SSL / https recommended).
cPanel-Specific Requirements
- PHP 8.1 or later, 8.3 recommended (cPanel > Select PHP Version).
- Enable these extensions:
pdo_mysql,mbstring,gd,fileinfo,SimpleXML,dom,openssl;curlshould also be enabled. The installation page checks this list automatically and will not let you click Install if a required item is missing. - One empty MySQL / MariaDB database and one user with full privileges on that database.
- The hosting must allow the website to make outbound connections to the START IP and API port. Some hosts only open a few common ports; see the troubleshooting section.
Windows Server + IIS-Specific Requirements
- Windows Server, with the installer run as Administrator.
- SQL Server 2012 or later with TCP/IP enabled and login via a SQL account (for example
sa). - The
packagesfolder is located next toTswSetup.exeand contains: PHP 8.3 (NTS x64), the SQL Server driver for PHP (sqlsrv), ODBC Driver for SQL Server, IIS URL Rewrite, Visual C++ Runtime andWebHosting.zip(the website source code). The installer installs everything automatically; no manual installation is needed.
Checklist to Prepare Before Installing
- START API address:
IP-or-domain:portof the game server (for example123.45.67.89:44480). - The Connection Key (64 characters): START > Website Management > Connection > Connection Key > Copy.
- The IP the website will use to call START (the hosting's IP; see the START connection page).
- The name of the game account that will be the main admin.
- Database information: DB name, account, password (cPanel) or SQL Server account (IIS).
- Website name, website address (
https://your-domain.com), and default language (Tiếng Việt, English or 中文).
The installation page can only run once. After installation finishes, the file
private/installed.json is created and the installation page will not open again. To reinstall, you must delete this file (see the troubleshooting page).