KSP Mod

Overview & Build

A C# mod targeting .NET 4.7.2 that runs inside Kerbal Space Program. It is the only client of the bot's API, and it brings linking, contracts and craft transfer into the game.

Build & deploy

The build script compiles the plugin, copies it into the GameData folder and deploys it to the local KSP installation.

Terminal
cd "KSP Mod Side"
./build.sh

# Build only, without deploying:
cd "KSP Mod Side/BoundlessMissions"
dotnet build -c Release

The output is BoundlessMissions.dll, placed under GameData/BoundlessMissions/Plugins/.

Core classes

BoundlessMissionsMod.cs

main-menu singleton

Persists across all scenes. Runs the Unlinked -> Linking -> Linked state machine and holds the API client and UI windows.
ApiClient.cs

HTTP

All communication with the bot, using Unity's UnityWebRequest. Stores the session token in PluginData/session.token.
VesselDataCollector.cs

telemetry

Reads situation, body, resources, crew and more from the active vessel for contract verification.
ContractIntegration.cs

contracts

Provides a custom UI in KSP for viewing and managing accepted community missions.

Why UnityWebRequest

Constrained runtime

KSP runs on an older Mono runtime, so the mod uses Unity’s UnityWebRequest with coroutine-based callbacks, the only practical HTTP client available in that environment.