Repository navigation
Custom Campaigns
A campaign replaces the Open World storyline with your own chain of missions. Players pick it on the New Open World screen. The rest of Open World stays the same: stations still offer side missions, and when the campaign ends the galaxy stays open as a sandbox.
A campaign is a campaign.json in a mission mod, next to the missions folder. One campaign per mod. The AssetCreator includes a two-mission sample campaign, Lantern Run, in Samples/sample-campaign to start from. See Samples.
{
"title": "Lantern Run",
"desc": "Shown on the new game screen.",
"giver": "dispatcher",
"fledLines": ["The job isn't done. Get back out there when you're ready."],
"startFlags": ["guild_contract"],
"missions": [
{ "id": "lantern-run" },
{ "id": "salvage-claim", "next": { "success": "end", "failed": "end" } }
]
}| Field | What it does |
|---|---|
title, desc
|
shown on the new game screen |
giver |
default giver for missions that don't name one |
fledLines |
default popup lines when the player leaves a mission sector mid-mission |
startFlags |
flags set at new game |
missions |
the storyline, see below |
The campaign starts with the first entry. Each entry's next says what comes after:
- no
next: the next entry in the list -
"next": { "success": "mission-b", "failed": "mission-c" }: branch on the outcome -
"end"(or empty) ends the campaign - leave
failedout and a failure goes the same way as a success
Set "offer": { "atStations": false } on campaign missions. Campaign missions are only started by the campaign, never offered at stations, and can't be aborted.
Every mission's popups follow the stock rules for the four ways a mission ends: success, objective failed, player killed (the mission restarts) and player fled (the giver asks them to go back, and the mission restarts when they return).
factions changes the stock factions for this campaign only:
"factions": {
"pirate": { "name": "Gravel Corsairs", "prefix": "GCV", "color": "red", "mapColor": "orange" }
}| Field | What it does |
|---|---|
name |
faction name in this campaign |
prefix |
ship name prefix, up to 5 letters |
color |
ship colour: white, black, yellow, red, grey, green, blue |
mapColor |
sector colour: red, orange, yellow, blue, green, black, darkRed, teal, bluegreen, purple, grey, white |
ships |
the only ships this faction's fleets, mission enemies, shipyards and station Build Ship (blueprint) menus use (class ids like bgvr-cor, class names, or mod ship ids). Empty = stock |
civil |
civilian traffic and mining ships for this faction |
equipment |
the only equipment this faction's stations sell |
equipmentSwap |
{ "Fighter Bay": "My Fighter Bay" }: this faction's ships fit the right-hand item instead of the left-hand one |
flag |
the faction's flag, built from the stock flag parts: "background-colour:pattern-colour:icon-colour" as index numbers. The stock Imperium flag is "0-16:16-15:84-18"
|
flagImage |
a PNG in your mod (ex flags/corsairs.png, square, transparent background) shown instead of the layered flag. Wins over flag
|
remove |
true takes a story faction out of this campaign: no territory, traffic or relations |
The player entry can rename the player's faction too (name, prefix, color, mapColor, flag and flagImage only).
Flags show on the holomap's ship details panel next to the ship name. They're read from campaign.json when shown, so a changed flag also shows in existing saves. A story faction without one keeps its stock flag.
Once any faction has a ships list, factions without one use all the campaign's listed ships combined, never stock ships. Leave every list out to keep stock ships.
You can also add factions. Give the entry a new key and "new": true:
| Field | What it does |
|---|---|
new |
true |
kind |
main (has a capital and territory) or rebel (takes sectors from its parent) |
parent |
for rebels: the faction they split from |
relations |
{ "imperium": -60 }, -100 to 100, unlisted = 0 |
Plus the same name, prefix, colour, flag and ship fields as above. A new faction with no flag or flagImage gets a plain flag. Added factions only exist inside your campaign, and they only join the map when a new game starts. Older saves of the campaign won't have them, and mission ships of that faction spawn as Marauders there. The stock story and other campaigns never see them, and Conquest never uses mods.
Stock faction keys: imperium, khepri, barcid, rebellion, setesh, pirate.
Without map, the stock galaxy is generated. With it, your campaign builds its own at new game:
"map": {
"radius": 20, "systems": 180,
"sectorScale": 0.75,
"factions": ["imperium", "pirate"],
"territory": { "imperium": 70 },
"relations": { "player": { "pirate": -60 } },
"start": { "faction": "imperium", "maxLevel": 10, "ship": "bgvr-assfrig", "credits": 50000, "fuel": 100 },
"sectors": [ { "id": "guild-hall", "name": "Lantern Hall", "faction": "neutral", "level": 5, "near": "imperium" } ]
}| Field | What it does |
|---|---|
radius, systems
|
galaxy size. 0 = the size picked on the new game screen |
sectorScale |
size of each sector's battle space, 0.25 to 2 (1 = stock) |
factions |
factions that get territory. The rest get none and are neutral to everyone |
territory |
main faction to % of sectors |
rebels |
rebel faction to { "sectors": 10, "spread": "scattered" } (or lowest) |
relations |
faction to faction to -100..100 |
start |
sector (a named sector) or faction + farFrom + maxLevel; ship, fleet (extra ships), stations, credits, fuel (Jump Fuel; a first mission outside the start sector needs some) |
sectors |
named sectors: id, name, faction, level (1-25), near / far (a faction's capital), stations. Missions find them with "location": { "type": "sector", "sector": "<id>" }
|
stationTables |
faction (or all) to stock station type to station looks, to swap in mod stations |
reveal |
factions or named sector ids that start known on the galaxy map (name and owner shown, not visited), ex ["rebellion", "rebel-haven"]
|
names |
your own name lists, see below |
map.names points at plain text files in your mod, one name per line (# starts a comment):
"names": {
"sectors": "names/sectors.txt",
"ships": { "pirate": "names/corsair-ships.txt", "imperium": "names/navy-ships.txt" },
"characters": {
"pirate": { "male": "names/corsair-male.txt", "female": "names/corsair-female.txt", "last": "names/corsair-last.txt" },
"all": { "male": "names/male.txt", "female": "names/female.txt", "last": "names/last.txt" }
}
}| Field | What it names |
|---|---|
sectors |
sectors on the galaxy map (named sectors from sectors keep their own names) |
ships |
faction to a file of ship names |
characters |
faction (or all) to male, female and last name files, for generated captains and characters |
A faction without its own entry uses all, then the stock lists. Sector names are picked when the galaxy is built at new game; ship and character names are picked whenever a new ship or captain is made. names sits inside the map block. The reveal list and the file names are checked on load, and a missing file or unknown faction shows on your mod in Options > Mods. Faction names themselves are set in factions (step 3), and your story characters are named in characters.json.
| Field | What it does |
|---|---|
requiresMods |
mod ids the campaign needs (ship packs etc.). The new game screen warns when one is missing |
events |
events that run in every mission of the campaign, on top of each mission's own. A ref that a mission doesn't spawn simply never fires there |
hideShips |
ships no fleet, raid, shipyard or Build Ship menu uses in this campaign |
sideMissionRewards |
number that multiplies the credits of stock side missions offered at stations, e.g. 1.5. Leave it out (or 1) for stock rewards. Story and mod missions keep their own rewards |
hideEquipment |
equipment no shop, AI or loot uses. Ships fitted with one get the nearest allowed item |
hideInStores |
equipment station stores never sell, random extras included, e.g. ["Plasma Lance"]. Unlike hideEquipment, AI ships still carry it and it can still drop as loot. It also filters a faction's own equipment list |
music |
music mod ids that play in this campaign, see below |
crew |
bridge crew models from crew packs: { "mods": ["my-crew"], "helm": "pilot", "tactical": "gunner", "coms": "officer", "misc": ["tech"] }, see Custom Bridge Crew
|
combat |
{ "timeout": 10, "warpWhileFighting": false }: how long ships stay "in combat" (stock 60 s) and whether the warp button works during a fight |
A music mod is its own small mod with "type": "music" in mod.json, a music.json and audio files. It only plays in campaigns that list it in music.
{ "mode": "replace", "ambient": ["calm.ogg"], "tension": ["staging.ogg"], "battle": ["fight.ogg"] }-
ambientplays when nothing hostile is around,tensionwhen a hostile ship is on sensors,battleduring a fight. Notensionlist = ambient plays. -
replacedrops the stock tracks for any list you fill,addmixes yours in. - Use OGG. WAV works but costs a lot of memory on Quest.
A campaign can carry the crew, music or ship packs it needs, so players get one download. Put each pack, exactly as built, in an include/<id>/ folder inside the campaign:
my-campaign/
mod.json, campaign.json, missions/ ...
include/my-crew/ (mod.json + windows/ android/ bundles)
include/my-music/ (mod.json + music.json + tracks)
- The game loads each included pack as a normal mod after all the others. Options > Mods lists it under the campaign.
-
campaign.jsonrefers to included packs by their id, the same as separate mods. Removing the campaign removes them too. - Only campaign mods (mod.json
typemissions) can include packs, and an included pack can't include more. - If a pack with the same id is also installed on its own, that separate copy is used.
- Upload the campaign once with the Mission tag. The included packs don't need their own mod.io entries.
- Copy the mod folder into
C:\Users\[yourname]\AppData\LocalLow\SpaceOwl Games\BattleGroupVR2\mods\. - Start the game and check Options > Mods. Mistakes in
campaign.json(unknown mission, anextthat points nowhere, a mission that can't be reached, a bad faction or colour) are listed on your mod there, and the campaign is hidden until they're fixed. - Start a New Open World game and pick your campaign.
If one of the campaign's missions fails its check, the whole campaign won't load, so fix mission errors first.
Campaigns are single player for now. A save made with a campaign can't be loaded until its mod works again:
- Needs mod: the mod isn't installed. The save's details list it as "(missing)".
- Mod has errors: the mod is installed but broken. The save list shows the first error, and the details list the mod as "(has errors)".
See Troubleshooting on the Custom Missions page.
Zip the mod folder and upload it to mod.io with both Windows and Oculus ticked. If your campaign uses ship, crew or music mods, either pack them inside the campaign or publish them as their own mods and list them in requiresMods. See Publishing To mod.io.