Build and attach the bridge mod
dos2_bridge_installBuilds the bridge mod .pak into the game's Mods folder and optionally attaches it to a campaign's add-ons. Required for the live game tools to work.
Instructions
Builds this server's bridge mod into the game's Mods folder (DOS2GMBridge_....pak, overwriting the previous build) and, when campaign is given, adds it to that campaign's add-ons in meta.lsf. The bridge is what the dos2_live_* tools talk to; it needs Script Extender in the game.
The previous file is backed up first; undo with dos2_restore. Attaching: Fails with an error while the game process is running unless allow_running=true.
In multiplayer every player needs the same .pak and Script Extender, as with any add-on; after a rebuild, send
them the new file. Returns the .pak path, the packed files and the campaign's add-on list. Check the result
with dos2_live_status; remove with dos2_bridge_detach.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dos2_bridge_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign | No | Campaign to attach the bridge to as an add-on (name, folder, UUID or a part). Omit to only build the .pak. | |
| allow_running | No | Keep false. Set true only after the user has confirmed that the running game sits in the main menu: a write into a campaign that is loaded in the game gets lost or damages it. |