Repository navigation
Samples
The project comes with a finished example of every mod type in Assets/Samples. They're built from plain shapes so you can take them apart, and every one passes Validate and builds for PC and Quest. Open them next to your own mod when you're not sure how something should be set up.

Assets/Samples/Sample Ship/Sample Destroyer

A destroyer that uses most of what a ship can do:
- slot medium turret has the mod's own weapon, Sample Twin Cannon, as its default
-
slot small turret has a ModProjectileLook for orange capsule bolts on the stock
LCTcannon - slot hangar launches the Sample Fighter Wing
- ModEngineSound with its own engine hum, and orange engine flares (Override Flare Color)
- Signal lights, merged meshes, and stats from Auto Size and Auto Stats, balanced to stock destroyer firepower
Assets/Samples/Sample Ship/Sample Twin Cannon

A medium turret that fires in bursts. Shows the body > turret > barrel > fp1, fp2 layout the game needs to aim and fire. See Custom Weapons.
Assets/Samples/Sample Ship/Sample Fighter Wing

A squadron of 8 fighters with their own laser (Sample Fighter Laser) and a holo model for the holomap. See Custom Fighters.
Assets/Samples/Sample Station/Sample Station

An Admin station with two docks:
- dock public: the standard dock, any ship can use it
- dock own arm: player ships only, with Hide Visual on because the model has its own docking arm
See Custom Stations.
Assets/Samples/Sample Crew

A crew pack with two mannequin crew: Sample Officer sits at Helm and Tactical, Sample Specialist at Coms and every other console. See Custom Bridge Crew.
Samples/sample-campaign (in the project folder, next to Assets)
Missions and campaigns aren't built in Unity, so this one is a plain folder. Copy it into the game's mods folder, start a New Open World game and pick Lantern Run.
-
campaign.jsonchains two missions and renames the pirates to the Gravel Corsairs -
characters.jsonhas two characters with stock portraits -
missions/lantern-run.json: find a missing courier with an area scan, then fight off the raiders that come for him -
missions/salvage-claim.json: recover cargo pods before enemy salvagers grab them, then make a choice that branches the ending
See Custom Missions, Custom Campaigns and Custom Characters.
Tools > BGVR2 > Rebuild Samples deletes Assets/Samples and makes them again from scratch. Don't keep your own work in that folder.
Modding support: https://discord.gg/4aCZ56W