switchServer

by Schmidi

System

XASECO2

Description

A sophisticated server switcher that can use different connection methods
One of the main goals is to keep the HUD clean. It's possible to show/hide the list, of course this is also done automatically by passing CP or finish. Further I introduced a template system to give admins the ability to change the layout as simple as possible (hopefully).

Connecting Servers

There are 4 different ways to connect servers.
Sockets
Servers are connected by private nonblocking UDP-sockets. (Xmlrpc-port-number is just to make config as simple as possible)
PublicSockets
Servers are connected by TCP-sockets. Main routine to connect servers on two different machines. Make sure your setup is secured but ports are reachable.
Files
Data is stored in a file.
Shared Memory
Similar to sockets but available only on linux.

Installation

1. unzip the script to xaseco2 base directory
2. edit xaseco2's plugins.xml and include the following line:
Code:
<plugin>plugin.switchServer.php</plugin>
3. edit switchServer.xml to suite your needs
4. restart xaseco2

Settings

Options are configurable in switchServer.xml, see the forum for details.
Servers
To make the server visible to others, enable/config your preferred method(s).
Fetchers
Add servers you want to show. You may add as many methods in any order you prefer.

Changes in v0.5.1

- fix: problem with unpack in php 5.5.9

Changes in v0.5.0

- fix: truncated TitleId
- fix: problems with php 5.5.9
- no backward compatibility

Changes in v0.4.5

- Fixed TitleId in scoreboard

Changes in v0.4.4

- TitleId no longer hardcoded
- Supports crosslinking of any current and future titles
- No backward compatibility

Changes in v0.4.3

- Updated templates to accommodate change in manialink-system

Link(s)

Forum: https://www.tm-forum.com/viewtopic.php?t=29099
Homepage: https://web.archive.org/web/20160323230804/http://www.doh-nuts.at/phpbb/viewtopic.php?f=59&t=2322

Download(s)

File Version Date Size Downloads
switch_server2(0.5.1).zip 0.5.1 2015-12-01 13.27 KB 810
switch_server2(0.5.0).zip 0.5.0 2015-11-23 13.26 KB 811
switch_server2(0.4.5).zip 0.4.5 2015-10-07 13.53 KB 961
switch_server2(0.4.4).zip 0.4.4 2013-03-02 13.18 KB 1278
switch_server2(0.4.3).zip 0.4.3 2013-02-21 13.01 KB 1244
switch_server2(0.4.2).zip 0.4.2 2011-11-29 13.34 KB 1360