It is currently Sat Apr 27, 2024 11:17 pm

RUNNING WITH RIFLES Multiplayer

test

Game servers 44 List provided by EpocDotFr | Players online 35


All times are UTC




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Tue Mar 19, 2013 10:24 am 
Offline
User avatar

Joined: Mon Feb 25, 2013 12:24 pm
Posts: 283
pasik wrote:
Ok, I think I know what's happening. 0.84.2 will get stuck at match end unless there's someone, the script, listening and receiving data from it.

It gets stuck also if I declare_winner on it to make it send the match end signal, unless I got the script up.

Edit: Concerns Windows only.


Excellent. So because I am not running the map rotator script with the 84.2 version it hangs as it is waiting for the next input from the script? OK, I need to figure out how to get the scripts working then.

Simples :D

_________________
Image


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 10:28 am 
Offline
User avatar

Joined: Mon Feb 25, 2013 12:24 pm
Posts: 283
OK, I had a look at the php files and I am now officially lost :D

_________________
Image


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 11:00 am 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
{SAS}DocStone wrote:
OK, I had a look at the php files and I am now officially lost :D


Did you try to command "php maprotator.php"?

You'll most likely want to configure your server config here in maprotator.php:

Code:
      $server->name = "MyServer";
      $server->port = 1236;
      $server->comment = "";
      $server->url = "";
      $server->client_max_start_rank = 0.3; // start at 3000 xp, max
      $server->client_faction_index = -1; // any
      $server->persistency = "forever"; // or "match"


You should be good to go then.

If you want to change more stuff, the map specific match settings would be where it says // CUSTOMIZE YOUR MAP SETTINGS HERE :D

The next possible customization step would be to define the order or logic which the maps are played, if it matters, but I doubt it matters in your case.


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 11:30 am 
Offline
User avatar

Joined: Mon Feb 25, 2013 12:24 pm
Posts: 283
Trying to get you in IRC :D

_________________
Image


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 12:26 pm 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
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


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 1:55 pm 
Offline
User avatar

Joined: Mon Feb 25, 2013 12:24 pm
Posts: 283
It works, it works! {SAS}Beerdrinkers now has map rotation, and {SAS}Invasion is now live!

Thanks for having patience Pasik ;)

_________________
Image


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 2:27 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:58 am
Posts: 1662
Location: Western Europe
{SAS}DocStone wrote:
Thanks for having patience Pasik ;)


"Pasik" means "patience" in finnish :D


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 3:57 pm 
Offline

Joined: Fri Dec 09, 2011 5:59 pm
Posts: 64
JackMayol wrote:
{SAS}DocStone wrote:
Thanks for having patience Pasik ;)


"Pasik" means "patience" in finnish :D

Pasik is quite far from kärsivällisyys but np ;D


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 4:25 pm 
Offline
User avatar

Joined: Wed Jan 18, 2012 3:19 am
Posts: 567
Location: The States
^ seems close enough.

ComJak

_________________
ComJak's house... stay out of it


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 4:55 pm 
Offline
User avatar

Joined: Mon Feb 25, 2013 12:24 pm
Posts: 283
Well, despite the day getting off to a bad start thanks to a power cut and a rather ill son meaning jobs today were all cancelled I feel quite pleased with myself :D

  • Standard RWR Server with auto map rotation is up and running
  • Invasion RWR Server is now up and running
  • I remembered enough to fire off a couple of batch files which now one click start each server
  • I have made a lovely big pot of lentil soup :D

So, yay to me, and welcome to the {SAS}Invasion Server!

(I may have had a little help from Pasik, just a little mind you, hehe!)

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group