Skip to content

Career Mode: All MechJeb Features Unlocked Immediately #2069

@Isamylov

Description

@Isamylov

MechJeb Version

2.15.1

KSP Version

1.12.x (tested on 1.12.4)

Description

All MechJeb features are immediately unlocked in Career mode, regardless of technology tree progress. The unlockTechs configuration is being completely ignored, making all modules available from the start of a new career game.

Root Cause: The bug possibly was introduced in commit 00891f80 (2023-06-19) "ComputerModule breaking API changes" when the UnlockCheck() method logic was refactored.

Before (v2.14.3 - working correctly):

public virtual void UnlockCheck()
{
    if (!unlockChecked)  // Only execute if not checked yet
    {
        bool unlock = true;
        if (ResearchAndDevelopment.Instance != null)
        {
            // Check technologies...
        }
        unlockChecked = true;  // Only set inside the block
    }
}

Replication Case

  1. Install MechJeb 2.15.1
  2. Start a new Career mode game (Normal difficulty)
  3. Launch any vessel with a command pod (e.g., basic Mk1 Command Pod)
  4. Open MechJeb menu
  5. Expected: Only basic features should be available based on unlockTechs configuration (e.g., only Smart A.S.S. and Custom Window Editor if flightControl tech is unlocked)
  6. Actual: All MechJeb features are immediately available (Ascent Guidance, Landing Guidance, Docking Autopilot, etc.) even though the required technologies are not researched

Note: The technology tree correctly shows that MechJeb-related technologies are locked, but MechJeb itself ignores these restrictions.

Workaround: Downgrade to MechJeb 2.14.3, which works correctly.

KSP.log

N/A - This is a code logic issue, not a runtime error. The game runs normally, but MechJeb's unlock system doesn't work as intended.

References:

  • Commit introducing the bug: 00891f80
  • Last working version: v2.14.3
  • Current broken version: v2.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions