Hypoxic125/Sandbox – User
Creating A Multiplayer Campaign
A multiplayer campaign is a series of interconnected missions that follow a sequential order, creating a storyline that groups of players can enjoy together.
Key things that a multiplayer campaign will include:
- Interconnected sequential missions
- Centralized location of common mission files to save on storage space
- Utilizes MPCampaignDisplay
- Missions can be selected in the hosted server mission selection menu
Creating the Missions
If new to creating missions, it is advised that you ignore concerns about disk space and make each mission independent of the campaign mod. When you get more comfortable with how the file structure works, and have more confidence in your code, you can then move on to centralizing common files. Debugging missions within the mod structure is much more annoying, especially if your code is more prone to bugs/errors.
Be sure you structure your missions with multiplayer locality in mind from the start. It is much more time-consuming to convert a single-player mission into a multiplayer mission.
File Structure
Now that you have your missions created, we can move on to the mod's file structure.
myModName |--addons |--myCampaignName |--data |--functions |--campaign | |--missions | | |--myMission01.worldName | | |--myMission02.worldName | | |--myMission03.worldName | |--description.ext |--$PBOPREFIX$ |--config.cpp
Red highlights indicate required files/folders
Green highlights indicate optional organization files/folders for shared campaign files
Campaign Description.ext
The campaign description file will dictate how the missions are structured within the campaign menus. Unlike a single-player campaign, we are going to be ignoring the mission flow aspect of the campaign description file so that the multiplayer campaign menu functions correctly.