RUNNING WITH RIFLES
http://www.runningwithrifles.com/phpBB3/

Beta 0.98.5 servers
http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=4&t=1878
Page 1 of 1

Author:  pasik [ Tue Oct 21, 2014 8:30 pm ]
Post subject:  Beta 0.98.5 servers

The server build is also included in the game release these days. Using SteamCMD you can pull in updates easily without having to deal with copying the media files manually, see the instructions how to set it up.

----------------------------------------------------------------------------
You can of course also handle updates manually, see stuff below.

Link for the Linux build: http://modulaatio.com/runningwithrifles ... 386.tar.gz
Link for the Windows build: http://modulaatio.com/runningwithrifles ... 0.98.5.zip

You need to copy media from the actual game build to your server folder, unless you use SteamCMD.

These days, the primary server scripts folder media/packages/vanilla/scripts comes with example settings that are used unless you provide your own settings. The files are
* admin_settings.example.php
* server_settings_*.example.php
* optionally, comms_settings.example.php if you're e.g. running multiple RWR servers in the same system

The recommended way to make the server use your own settings is to copy an example file and rename it as the original file just without the ".example" infix. E.g. server_settings_invasion.example.php would become server_settings_invasion.php. Then edit the file to fit your needs.

Launch the RWR server with
Code:
./launch_server

and launch the optional script in another process to get things going, look below. You can also be the script yourself by commanding things in the server console. "help" command in the server console will get you started.

Classic gamemode script can be started with
Code:
./launch_php media/packages/vanilla/scripts/start_classic.php debug_output


Invasion can be run with
Code:
./launch_php media/packages/vanilla/scripts/start_invasion.php debug_output


Team elimination runs with
Code:
./launch_php media/packages/vanilla/scripts/start_team_elimination.php debug_output


Code:
./launch_php media/packages/vanilla/scripts/start_deathmatch.php debug_output


Code:
./launch_php media/packages/vanilla/scripts/start_minimodes.php debug_output


Team teddy hunt can be run with the following. Note that the package is not vanilla here, and the server settings are taken from media/packages/teddy_hunt/scripts/server_settings_team_teddy_hunt.php.
Code:
./launch_php media/packages/teddy_hunt/scripts/start_team_teddy_hunt.php debug_output


Debug_output isn't exactly needed, but helps with checking that things work by seeing printing in console.

Windows build comes with handy bat files to run the scripts above.

On a headless Linux, the way I'm personally having the server and the script in different processes is by using screen and having the server run in one window and the script in another.

This stuff isn't strictly needed, but might be useful for some scenario.
Template for location info: http://modulaatio.com/runningwithrifles/geoinfo.xml
Template for server console command aliases: http://modulaatio.com/runningwithrifles/commands.xml
Template for custom metagame interface settings for Linux: http://modulaatio.com/runningwithrifles/metagame.xml

Don't forget to copy the media folder from the actual game RWR beta 0.98.5 to the server folder!

If you're just setting up your server, check out this guide about the available match and server settings gathered up by {SAS}DocStone!

Author:  cascad [ Wed Oct 22, 2014 10:08 am ]
Post subject:  Re: Beta 0.98.5 servers

After update i have some problem =(
Code:
C:\rwr_server>tools\php\php.exe media\packages\vanilla\scripts\start_invasion.ph
p debug_output
10:05:56 command line parameters:
10:05:56 media\packages\vanilla\scripts\start_invasion.php
10:05:56 debug_output
10:05:56 ----------------
10:05:56 opening out fifo
10:05:56 PHP ERROR: fopen(): Filename cannot be empty
10:05:56 file C:\rwr_server\media\packages\vanilla\scripts\internal\comms.php, l
ine 72
10:05:56 failed to open  -- start rwr server first?

C:\rwr_server>pause
Press any key to continue . . .


Plz help

Author:  pasik [ Wed Oct 22, 2014 10:21 am ]
Post subject:  Re: Beta 0.98.5 servers

Your comms_settings.php is probably based on the old file that was there previously, so you need to add this

Code:
global $fifo_out_path;
global $fifo_in_path;


before this

Code:
$fifo_out_path = "";
$fifo_in_path = "";


as shown in comms_settings.example.php.

Or, if you don't need specific comms settings (you'd only need it for having several RWR servers on one machine), you can just delete comms_settings.php to use comms_settings.example.php automatically instead.

Author:  cascad [ Wed Oct 22, 2014 10:28 am ]
Post subject:  Re: Beta 0.98.5 servers

pasik wrote:
Or, if you don't need specific comms settings (you'd only need it for having several RWR servers on one machine), you can just delete comms_settings.php to use comms_settings.example.php automatically instead.


This helps me. Ty a lot.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/