Hey, guise, can you clear some stuff up?
I managed to mod some easy stuff: essentially made most weapons available at the armory, allowed them on respawn (and vests) and gave vest1 to AI soldiers, so there's tons of wounded soldiers, which is really fun.
I tried adding the relevant files to an overlay folder called "mono"; added the overlay file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<overlay user_selectable="1">
<overlay campaign_entry_script="start_campaign.php">
</overlay>
Then added the script and did what I thought would be enough:
Code:
<?php
chdir(dirname(__FILE__));
// start scripts located elsewhere than vanilla/scripts should include
// vanilla/scripts in include path with a relative path
set_include_path("../../../packages/vanilla/scripts");
// all vanilla includes are defined in relation to vanilla/scripts OR the local folder
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->overlay_paths = array("media/overlays/mono");
}
$metagame->init();
// execution blocks here at run until comms from server is lost
$metagame->run();
$metagame->uninit();
_log("ending execution");
?>
What I did was to change the overlay path to my folder.
Clearly it was not enough, as there is no effect at all when I start a custom campaign. What else should I do? What other xml or scripts (or else) is lacking for my custom campaign to be modded so I don't have to switch between two RWR folders when I want to play online?
Am I lacking tons of other campaign/gamemode scripts or something? Or in some file I should specify all paths/files to be overwritten by my mod? (If so, how can one best achieve this?)
Thank you very much.