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;
}
?>