RUNNING WITH RIFLES http://www.runningwithrifles.com/phpBB3/ |
|
No XP while running dedicated server http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=9&t=2693 |
Page 1 of 1 |
Author: | rebro [ Sun Jan 03, 2016 10:23 pm ] |
Post subject: | No XP while running dedicated server |
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; } ?> |
Author: | JackMayol [ Mon Jan 04, 2016 9:23 am ] |
Post subject: | Re: No XP while running dedicated server |
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' ". |
Author: | rebro [ Mon Jan 04, 2016 10:38 am ] |
Post subject: | Re: No XP while running dedicated server |
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? |
Author: | JackMayol [ Mon Jan 04, 2016 11:26 am ] |
Post subject: | Re: No XP while running dedicated server |
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. |
Author: | rebro [ Mon Jan 04, 2016 2:44 pm ] |
Post subject: | Re: No XP while running dedicated server |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |