Skip to content

Conversation

@adventure-gpt
Copy link

@adventure-gpt adventure-gpt commented Jan 20, 2026

relates to issue: #169

  • Update JSIMechJeb.cs field bindings to use PascalCase for MJ 2.15.1:

    • MechJebCore: target->Target, node->Node, attitude->Attitude, vesselState->VesselState
    • AbsoluteVector: latitude->Latitude, longitude->Longitude
    • ComputerModule: enabled->Enabled, users->Users
    • EditableDouble/EditableDoubleMult: val->Val property
    • ReentrySimulation.Result: outcome->Outcome, endPosition->EndPosition, endUT->EndUT
  • Add MechJebModuleAscentSettings support (replaces AscentAutopilot/AscentGuidance):

    • DesiredOrbitAltitude, DesiredInclination fields
    • AscentAutopilot property access for autopilot control
  • Fix FuelFlowSimulation type lookup:

    • Try MechJebLib assembly first (MJ 2.15.1 moved it there)
    • Fall back to nested type in MechJeb2 assembly
  • Fix stage stats handling for List:

    • Use Count property and get_Item method instead of array access
  • Fix ButtonAscentGuidance/ButtonAscentGuidanceState:

    • Try MechJebModuleAscentBaseAutopilot first
    • Fall back to AscentSettings.AscentAutopilot property
    • Use MechJebModuleAscentMenu instead of AscentGuidance
    • Handle Users property with PascalCase fallback
  • Fix MechJebRPM.cs:

    • Update module check from MechJebModuleAscentAutopilot to MechJebModuleAscentSettings
    • Fix Force Roll menu index (5->6) for Home button adjustment

- Update JSIMechJeb.cs field bindings to use PascalCase for MJ 2.15.1:
  - MechJebCore: target->Target, node->Node, attitude->Attitude, vesselState->VesselState
  - AbsoluteVector: latitude->Latitude, longitude->Longitude
  - ComputerModule: enabled->Enabled, users->Users
  - EditableDouble/EditableDoubleMult: val->Val property
  - ReentrySimulation.Result: outcome->Outcome, endPosition->EndPosition, endUT->EndUT

- Add MechJebModuleAscentSettings support (replaces AscentAutopilot/AscentGuidance):
  - DesiredOrbitAltitude, DesiredInclination fields
  - AscentAutopilot property access for autopilot control

- Fix FuelFlowSimulation type lookup:
  - Try MechJebLib assembly first (MJ 2.15.1 moved it there)
  - Fall back to nested type in MechJeb2 assembly

- Fix stage stats handling for List<FuelStats>:
  - Use Count property and get_Item method instead of array access

- Fix ButtonAscentGuidance/ButtonAscentGuidanceState:
  - Try MechJebModuleAscentBaseAutopilot first
  - Fall back to AscentSettings.AscentAutopilot property
  - Use MechJebModuleAscentMenu instead of AscentGuidance
  - Handle Users property with PascalCase fallback

- Fix MechJebRPM.cs:
  - Update module check from MechJebModuleAscentAutopilot to MechJebModuleAscentSettings
  - Fix Force Roll menu index (5->6) for Home button adjustment
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