Skip to content

KRPC.Bridge 2.0.0

Choose a tag to compare

@romsti romsti released this 25 Oct 08:01
· 1 commit to main since this release

KRPC.Bridge 2.0.0

This release needs kRPC 0.7.0. It is built against kRPC 0.7.0 and does not load on kRPC 0.6.x.
If you are still on kRPC 0.6, stay on 1.0.0.

KRPC.Bridge adds kRPC services for mods that have no scriptable interface (FMRS, OCISLY, MechJeb 2,
Trajectories) and services of its own for flight control, telemetry and booster catch towers.
It ships two downloads:

File What it is
KRPC.Bridge-2.0.0.zip The mod. Required.
TowerCatch-1.0.0.zip The booster catch tower's ModuleManager patch and craft. Optional, first public version.

What is new since 1.0.0

  • Twelve services, 307 members (1.0.0 had FMRS, OCISLY and MechJeb):
    • conn.control and conn.telemetry: the half of the bridge that writes (per-engine throttle and
      gimbal leases, atomic control frames, the AttitudeV1 attitude controller, every option off until
      a client switches it on) and the half that only observes (engine and gimbal samples, dynamics
      frames at the physics rate, aerodynamic wrench, contact by leg).
    • conn.stock (delta-v and stage table, staging from the frame loop, landing legs, part module
      fields and events in one call), conn.ident, conn.discovery.
    • conn.trajectories: the Trajectories mod's impact prediction, landing target and descent profile.
    • conn.tower and conn.tower_site: booster catch towers, from the Space Center and in flight.
  • MechJeb: any module by name, the landing predictor and the maneuver planner (1.0.0 reached the
    ascent autopilot only).
  • FMRS: a table of dropped stages (dropped_stages_v1) and a readiness probe.
  • conn.bridge.manifest_v1 says which build is loaded and the commit it came from; every zip
    carries a manifest.json with the sha256 of each file.
  • The catch tower's parts left the bridge: they are the separate, optional TowerCatch package.
  • Full API reference: docs/API.md or the
    documentation site.

See CHANGELOG.md for the detail.

Requirements

  • Kerbal Space Program 1.12.x (checked on 1.12.5)
  • kRPC 0.7.0, and its Python client: pip install "krpc>=0.7,<0.8"
  • Optional, each one only for its own service: FMRS Continued, MechJeb 2, Trajectories,
    OfCourseIStillLoveYou with HullCamera VDS Continued. A mod you do not have makes its service
    report available = False; nothing else is affected.
  • For TowerCatch only: ModuleManager, Modular Launch Pads, HullCamera VDS Continued, and the two
    paid expansions Breaking Ground and Making History (no mod manager can install those).

Installation

  1. Delete your old GameData/KRPC.Bridge folder if you have one. The set of DLLs is not the same
    as in 1.0.0, and an old and a new assembly that declare the same service make kRPC refuse the
    duplicate, which takes the whole kRPC server down.

  2. Unzip KRPC.Bridge-2.0.0.zip into your KSP folder, so that GameData/KRPC.Bridge/ appears in
    GameData/. Keep each .xml next to its .dll: kRPC reads it to build the Python docstrings.

  3. Optional: unzip TowerCatch-1.0.0.zip the same way (GameData/TowerCatch/). Never keep a second
    copy of TowerCatch.cfg: if an older build left GameData/KRPC.Bridge/Patches and
    GameData/KRPC.Bridge/Crafts, delete those two folders.

  4. Start KSP, start the kRPC server, and check with python python/check_bridge.py (in the source
    repository) or:

    import krpc
    conn = krpc.connect()
    print(conn.bridge.ping())   # "pong"

Files

File Size sha256
KRPC.Bridge-2.0.0.zip 558 kB 15a3ac45815a4ceb145865030fbb0bc5bdeabd1078ad17e1408cb38c159fd7e0
TowerCatch-1.0.0.zip 13 kB acb7660f201cac536ab2b0f5de32c6c1ac73a98940649f1036faa4d26223d84a

Both zips were built from commit 296af108706498913f50c66e54260079b9fde925 (tag v2.0.0); the manifest.json inside each gives the sha256 of every file it ships.