It is currently Tue Mar 19, 2024 7:38 am

RUNNING WITH RIFLES Multiplayer

test

Game servers 52 List provided by EpocDotFr | Players online 87


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Jan 03, 2016 10:23 pm 
Offline

Joined: Sun Jan 03, 2016 10:15 pm
Posts: 3
Hi Guys,

I just tried to set up a dedicated server (should not be that tricky with these guides all around). The server starts and I can connect, but if I shoot someone I don't get any XP. I tried serveral option, which I found here, but nothing works.

Could you help me please?

packages/vanilla/scripts/start_invasion.php
Code:
<?php

chdir(dirname(__FILE__));

include_once("gamemodes/invasion/gamemode_invasion.php");
include_once(get_include_with_fallback("server_settings_invasion.php", "server_settings_invasion.example.php"));

// --------------------------------------------

$metagame = new GameModeInvasion();

{
        $s = &$metagame->user_settings;

        $s->fellow_capacity_factor = 1.05;
        $s->fellow_ai_accuracy_factor = 0.94;
        $s->enemy_capacity_factor = 1.0;
        $s->enemy_ai_accuracy_factor = 0.94;
        $s->xp_factor = 0.66;
        $s->rp_factor = 1.0;
        $s->faction_choice = 0;

        $s->completion_variance_enabled = true;
        $s->friendly_fire = 0;
        $s->initial_xp = 0.0;
        $s->initial_rp = 0.0;
        $s->player_ai_compensation_factor = 1.0;
        $s->player_ai_reduction = 0.3;
        $s->base_capture_system = "any"; // could be single for backdoor prevention, not really that useful in invasion

        $s->overlay_paths = array();

        $s->team_kill_penalty_enabled = true;
        $s->team_kills_to_start_penalty = 10;
        $s->team_kill_penalty_time = 1800.0;
        $s->forgive_team_kill_time = 900.0;

        $s->team_kill_penalty_enabled = false;

        if (!test_parameter($argv, "single_player")) {
                // let's enable some campaign<->invasion differences
                // by using an overlay for invasion
                $s->overlay_paths = array("media/overlays/invasion");
                $s->completion_variance_enabled = false;
        }
}

$metagame->init();
$metagame->run();
$metagame->uninit();

_log("ending execution");

?>


media/packages/vanilla/scripts/server_settings_invasion.example.php
Code:
<?php

// invasion server command
function get_start_server_command() {
        // CUSTOMIZE YOUR SERVER SETTINGS HERE
        $command = "";

        $command =
                "<command class='start_server' " .
                "       server_name='rebro' " .
                "       server_port='1238' ".
                "       max_soldier='300' ".
                "       comment='RWR-Server' ".
                "       url='' ".
                "       register_in_serverlist='0' ".
                "       mode='COOP' ".
                "       client_max_start_rank='0.0' ".
                "       client_faction_index='0' ".
                "       progress_multiplier='1' ".
                "       xp_multiplier='1' ".
                "       rp_multiplier='1' ".
                "       max_players='8' ".
                "       persistency='forever'> ".
                "       <client_faction id='0' /> ".
                "</command>";

        return $command;

}

?>


Top
 Profile  
 
PostPosted: Mon Jan 04, 2016 9:23 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:58 am
Posts: 1662
Location: Western Europe
I tried your script settings and it's working as intended for me.
You don't happen to have a server_settings_invasion.php file on top of the server_settings_invasion.example.php file as this would be chosen as a priority over the latter one?

I am not sure why you are using those settings, they're some old compatibility things that shouldn't be used anymore, just leave the out:

Code:
                "       progress_multiplier='1' ".
                "       xp_multiplier='1' ".
                "       rp_multiplier='1' ".


Top
 Profile  
 
PostPosted: Mon Jan 04, 2016 10:38 am 
Offline

Joined: Sun Jan 03, 2016 10:15 pm
Posts: 3
Nope, no other setting files

Code:
ll Steam/steamapps/common/RunningWithRifles/media/packages/vanilla/scripts/server_settings_*
-rwxrwxr-x 1 rwr-server rwr-server 337 Jan  3 21:48 Steam/steamapps/common/RunningWithRifles/media/packages/vanilla/scripts/server_settings_classic.example.php*
-rwxrwxr-x 1 rwr-server rwr-server 371 Jan  3 21:49 Steam/steamapps/common/RunningWithRifles/media/packages/vanilla/scripts/server_settings_deathmatch.example.php*
-rwxrwxr-x 1 rwr-server rwr-server 660 Jan  3 22:54 Steam/steamapps/common/RunningWithRifles/media/packages/vanilla/scripts/server_settings_invasion.example.php*
-rwxrwxr-x 1 rwr-server rwr-server 433 Jan  3 21:49 Steam/steamapps/common/RunningWithRifles/media/packages/vanilla/scripts/server_settings_minimodes.example.php*
-rwxrwxr-x 1 rwr-server rwr-server 532 Jan  3 21:48 Steam/steamapps/common/RunningWithRifles/media/packages/vanilla/scripts/server_settings_team_elimination.example.php*
-rwxrwxr-x 1 rwr-server rwr-server 374 Jan  3 21:48 Steam/steamapps/common/RunningWithRifles/media/packages/vanilla/scripts/server_settings_teddy_hunt.example.php*


I just tried serveral options. But without it doesn't work either.
Which other setting files could affect this behavior?


Top
 Profile  
 
PostPosted: Mon Jan 04, 2016 11:26 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:58 am
Posts: 1662
Location: Western Europe
Hmm I can't think of anything. You didn't change the rewards.xml I suppose?
You could jump into IRC (check the chat tab on the main page) and poke me. You could then give me the IP of the server in query so that I could try to join and test myself.


Top
 Profile  
 
PostPosted: Mon Jan 04, 2016 2:44 pm 
Offline

Joined: Sun Jan 03, 2016 10:15 pm
Posts: 3
Solution:
My guide said I should use a standard php, which was already installed at the server. But I have a german installation and the "." as seperator was parsed into an "," by php. This input to the server console was invalid.

Using the standard launch_php works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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