This project is a Master-Server replacement done through PHP and an UScript beacon. The Official MasterServer (and Ubi.com service) has been discontinued in May 2012, and I wanted to make a simple alternative.
- Make sure the following ports are open:
- 7777 TCP
- 7099 UDP
-
Place your XIIIWebMasterServer.u package in your [XIII INSTALL FOLDER]/System/PC folder.
-
Then, in your XIII.ini file, look at this part:
[Engine.GameEngine]
Search for this:
ServerActors=IpDrv.UdpBeacon
ServerActors=IpDrv.UdpServerQuery
ServerActors=IpDrv.RegisterServerToUbiCom
Replace it with this:
ServerActors=XIIIWebMasterServer.XIIIUdpQuery
ServerActors=XIIIWebMasterServer.TCPToMasterServer MasterIp=[ip/url] MasterPage=[webpage]
Example:
ServerActors=XIIIWebMasterServer.TCPToMasterServer MasterIp=192.168.1.100 MasterPage=xiii/xserveradd.php
-
Now, host a LAN Server. It may take a bit more time than usual, but it's normal: it tells to the Web MasterServer than we exist. Every 6 minutes, it sends a heartbeat.
-
To make sure, go to the Masterserver webpage, and see if your server appears.
You don't need a custom client, or console to do this. All you actually need is to open the console (F2 key), and type this:
Start Ip:Port (if other than 7777)
Example:
start 11.22.33.44:7777
-
Make sure your server has PHP, SQL, and the PDO class for MySQL. If you use something else, you can modify it in include/database.php.
-
Install the SQL database.
-
In Include/config.php, modify the settings, so that your webpage can connect to the database.
-
Test if your game can declare an instance of the game.