I'll just dump this here for now, we'll have to compile the server guides somewhere later.
The following has been made in Windows point of view.
About running multiple RWR servers with scripts in one machine:
1. have two separate copies of RWR server in the machine with media files included, e.g. C:\RWR1 and C:\RWR2
2. copy any metagame scripts you want to use in separate folders under both C:\RWR1 and C:\RWR2, e.g. RWR1 is a PvP server using maprotator, you'd have C:\RWR1\maprotator folder, and RWR2 will be using invasion with C:\RWR2\invasion
3. to setup separate script control for each server instance, you need to configure RWR2 server to communicate using other pipes than the default ones (\\.\pipe\rwr_server_in, \\.\pipe\rwr_server_out), you'd achieve this with having a file metagame.xml in C:\RWR2; here's a Linux template
http://modulaatio.com/runningwithrifles/metagame.xml, and modify it as follows:
Code:
<metagame>
<interface in="\\.\pipe\rwr_server2_in" out="\\.\pipe\rwr_server2_out"/>
</metagame>
4. next, configure the script to communicate with the correct RWR server, e.g. edit C:\RWR2\invasion\comms.php and modify accordingly
Code:
// windows
$strComputername = php_uname('n');
$fifo_out_path = "\\\\" . $strComputername . "\\pipe\\rwr_server2_in";
$fifo_in_path = "\\\\" . $strComputername . "\\pipe\\rwr_server2_out";
* out and in being mixed above is correct, the script sends out data to RWR server's in pipe, and vice versa
5. to finalize invasion mode in RWR2, we take the weapon specific rank limitations and other things that make invasion resources different from the usual game into use by adding the following in C:\RWR2\settings.xml (consider running the server once to get settings.xml generated in the first place):
Code:
<enabled_overlays target="media/packages/vanilla/maps/map1">
<path>media/overlays/modulaatio.invasion</path>
</enabled_overlays>
<enabled_overlays target="media/packages/vanilla/maps/map2">
<path>media/overlays/modulaatio.invasion</path>
</enabled_overlays>
<enabled_overlays target="media/packages/vanilla/maps/map3">
<path>media/overlays/modulaatio.invasion</path>
</enabled_overlays>
<enabled_overlays target="media/packages/vanilla/maps/map5">
<path>media/overlays/modulaatio.invasion</path>
</enabled_overlays>
<enabled_overlays target="media/packages/vanilla.winter/maps/map4">
<path>media/overlays/modulaatio.invasion</path>
</enabled_overlays>
6. Launch C:\RWR1\rwr_server.exe and run "php C:\RWR1\maprotator\maprotator.php" (e.g. in command prompt, or if .php files are associated with the PHP CLI on your system, just double click on maprotator.php)
7. Launch C:\RWR2\rwr_server.exe and run "php C:\RWR2\invasion\invasion.php"
8. Test the comms by calling "declare_winner 1" in both RWR consoles, and check that the scripts respond