Setting up campaign maps for use in multiplayer servers
by Dolf Kooz


This will allow you to use the campaign terrain maps in multiplayer maps, without copying
the ted.vol file to the multiplayer directory. The server MUST have the repath.cs file in
the starsiege directory for this to work. Note that players will be able to join the server
as long as their campaign files are intact and in their original installed location (i.e.,
Starsiege/campaign) -- they don't have to rearrange their own .ted.vol files to see the maps.


Instructions:

1) Add the following file to your Starsiege\ folder. It must be named repath.cs.
----------------repath.cs------------------------
$basePath = ".;keymaps;faces;scripts;vehicles;logos;movies;sounds;campaign\\human;campaign\\Cybrid (Advanced);";
if ($CDROM_drive != "")
{
   $basePath = $basePath @ ";"
            @ $CDROM_drive @ "data\\movies;"
            @ $CDROM_drive @ "data\\faces;"
            @ $CDROM_drive @ "data\\logos;"
            @ $CDROM_drive @ "data\\sounds";
}
$consoleWorld::defaultSearchPath = $basePath;
------------------cut here------------------------------

2) copy the xxx.MIS file from the campaign folder to the Starsiege\multiplayer folder.

Example: Copy HE3.MIS from Starsiege\Campaign\Human to \Starsiege\Multiplayer


3) Rename the xxx.MIS file. If you don't rename it, changes will overwrite the original copy in the campaign folder.

Example: Rename HE3.MIS to My_Map.MIS


4) Open the map in the mission editor. Under MissionGroup >> Volumes >> TedVolume, add the modified path to the name.

Example:




5) Click on Apply, then save the map and press ALT-F4 to exit the editor.


6) Create a .cs file to go with the .MIS file.

Example: Cut and paste the following into a text editor, and save it as My_Map.CS in the Starsiege\Multiplayer folder:
$missionName = "DM_My_Map";

exec("multiplayerStdLib.cs");
exec("DMstdLib.cs");

function setDefaultMissionOptions()
{
	$server::TeamPlay = false;
	$server::AllowDeathmatch = true;
	$server::AllowTeamPlay = false;	
	
	$server::AllowTeamRed = true;
	$server::AllowTeamBlue = false;
	$server::AllowTeamYellow = false;
	$server::AllowTeamPurple = false;
}

6) When you create a server (dedicated or non-dedicated) with this map, players should now be able to join and play.



thanks to
Mike the Goad
johnrich
for the idea and inspiration






1