Amunets Server Transfer

How-to

Requirements

Amunets Server Transfer is a rather complex mod - at least setup wise.

To run a cluster you need at least:

Admins having no web-server or PHP knowledge can signup for free.

NOTE: This free service comes with no warranties. Use at your own risk!

Setup guide (general)

Setting up the AST Placeable ...

The AST placeable is used as a travel point between servers. It can be spawned in via the admin menu.

Once played, it has be configured via the radial menu option 'AST Config'.
A dialogue will open that might look like this:

AST PlaceableAST Infotext
  • Remote Server - the server you want to travel to. (identified by handle)
  • Sub Target - an otional identifier, if you have multiple links to the same server.
  • Local Text - A text that is visible when a player hovers over the placeable.

NOTE: Server handles are case sensitive.

Setup guide (for self hosting)

Basic overview

The cluster works by having the game-servers trigger HTTP requests to the PHP script, and the PHP script communicating via RCON.
AST Diagram
 

Web-server side

You need a few files on your webserver. Grab a copy in the files section and put them in a directory on your webserver.
All modifications you need to do are in cluster.ini and config.php.

Setting up cluster.ini ...
[server-exiles]
open="127.0.0.1:7777"
host="127.0.0.1"
port="25575"
pass="rconpassword1"

[server-siptah]
open="127.0.0.1:7779?password=gamepassword"
host="127.0.0.1"
port="25576"
pass="rconpassword2"

Each server has its own section:

  • the section itself is the server handle to be used - 'server-exiles' in this example.
  • the open-value defines how the clients will connect to the game-server, and consists of 3 parts:
    • host - '127.0.0.1' in example.
    • gameport - '7777' in example.
    • password (if any) - 'gamepassword' in 2nd example
  • the host, port and pass values define how the cluster will RCON-connect to your game-server.

NOTE: ini-file values should be quoted.

Setting up config.php ...

NOTE: still on my TODO list :)

 

Ingame side

You need to setup your game-server ingame too.
You need to be logged in with admin rights to do so.

Setting up transfer config ...

Each server needs to know how to contact the cluster script, and which handle itself was assigned.
To do so, open the console (Insert by default) and enter:

DataCmd TransferConfig "http://webserver/path/cluster.php" handle

If the command was successful, you will get a 'settings saved.' message.

NOTE: The URL should be quoted.

Setting up chat transfer ...

AST supports a shared global chat. For privacy reasons it is disabled by default and has to be enabled explicitly.
To do so, open the console (Insert by default) and enter:

DataCmd TransferChat true

If the command was successful, you will get a 'settings saved.' message.

Checking configuration ...

You can always check the current configuration.
To do so, open the console (Insert by default) and enter:

DataCmd TransferCheck

You should get a result like this:

AST TransferCheck
 

Testing and Troubleshooting

Testing cluster.php ...

If everything is setup correctly, you should be able to open the test-page in your browser by opening

http://webserver/path/cluster.php?cmd=test

You should get a result like this:

AST Testpage

Common issues are:

  • RCON: Authentication failed
    wrong password in cluster.ini.
  • RCON: Connection refused
    wrong host or port in cluster.ini OR you have a firewall issue somewhere.
  • RCON: Permission denied
    PHP is (for security reasons) not allowed to open socket connections.
  • RCON: Couldn't find the command: listplayers. Try "help"
    your gameserver is booting right now.
  • Ingame: Activating the AST placeable shows some particles then nothing.
    Make sure the test-website is all good AND you entered the correct handle.