Skip to content

Add compatible docking target port selector - #2304

Open
maddavo wants to merge 3 commits into
MuMech:devfrom
maddavo:feature/docking-port-selector
Open

Add compatible docking target port selector#2304
maddavo wants to merge 3 commits into
MuMech:devfrom
maddavo:feature/docking-port-selector

Conversation

@maddavo

@maddavo maddavo commented Sep 2, 2026

Copy link
Copy Markdown

Summary

  • add left/right controls to Docking Autopilot for cycling through docking ports on the target vessel
  • filter target ports against the vessel's current control-from-here docking port, including node type, multi-type, and gender compatibility
  • exclude already docked ports and disable selection while the docking autopilot is active
  • update both MechJeb's target controller and KSP's global vessel target so Docking Port Alignment Indicator and other docking aids observe the selection
  • show a short status when the target vessel is not yet loaded nearby

Testing

  • Release build of MechJeb2.csproj: 0 warnings, 0 errors
  • compatibility checks passed for matching/mismatched sizes, multi-type overlap, and gendered ports
  • manually tested in KSP 1.12.5 using a stable-compatible MechJeb 2.15.3 build with Docking Port Alignment Indicator 6.13.1; port cycling worked and DPAI followed the selected target port
  • existing MechJebLib test suite: 8,383 passed; 3 unrelated failures remained in untouched code (StaticTests.ToSITest, MainSailTinCanVacuum, and MainSailTinCanAtmo)

Screenshots

Target vessel selected, with five compatible ports available:

Docking Autopilot showing the target-port selector before a port is selected

A compatible target port selected using the new arrow controls:

Docking Autopilot showing Hotel Docking Port selected as port 5 of 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant