Jump to content

[1.12.x] Anatid Robotics / MuMech - MechJeb - Autopilot - [2.14.3] [4th March 2023]


sarbian

Recommended Posts

Not necessary to load a different vessel.

I'm not even sure it's Mechjeb though.  Watching what it's doing, it seems to be trying to control the craft in the same way, but the craft does not respond as well on subsequent launches.

Link to comment
Share on other sites

Yo. I recently updated to the last version after some time (previous was about 2020). Now all my crafts have MJ enabled even when I don't add the MJ case. Is it normal or somehow due to corrupted settings after the version jump ? How can I disable it ? I didn't find an option for that in the MJ Settings window.

Link to comment
Share on other sites

Ideally, yes, but it would require to restart the game or a larger code change. And we had far more post asking why MJ was not always on, than post complaining about it being always on since we changed it.

Link to comment
Share on other sites

You'll find many mods that have MM scripts to make things as plug-n-play as possible, MM is usually the #1 step in adding mods. 

Admitedly, I don't recall that ever being explicitly outlined anywhere - and for such a modable game I'd argue MM should be part of the core KSP install, but just browsing mods for a bit will show we are almost all using it if we have a plugin (DLL file).

Link to comment
Share on other sites

@tg626sure, but in my limited experience it's more all-or-nothing situations. Having a dependency is one thing, altering your behavior upon the existence of a mod that's not supposed to change anything by itself, and is not required for you to work, is another.

@Buzz313ththat's a good question, maybe worth lodging as an issue/PR on the github repo.

Link to comment
Share on other sites

On 1/11/2017 at 4:49 AM, sarbian said:

Useful links and companions mods

Yeah, this section in particular is not only littered with dead links (old format forum links) but also implies that MJ won't auto install on all cores and capsules UNLESS another mod (dead link) is installed.

OP needs some editing (and maybe some pruning / hiding sections) average visitor really doesn't need a laundry list of years of change log entries.

Link to comment
Share on other sites

5 hours ago, Buzz313th said:

Does anyone know how I could modify the part config of the Mechjeb box to allow it to be manipulated in EVA construction mode?  

Add this at the bottom of the config file above the last bracket.

    MODULE
    {
        name = ModuleCargoPart
        packedVolume = 70
    }

Link to comment
Share on other sites

4 hours ago, ColdJ said:

Add this at the bottom of the config file above the last bracket.

    MODULE
    {
        name = ModuleCargoPart
        packedVolume = 70
    }

Thank you ColdJ.  Gave that a try and I must be doing something wrong.  Can't pull the MJ ar200 out of the VAB parts pool on the left.  It stays dark like it has yet to be bought.  Playing career btw.   I'm going to guess that needs to be inserted in each MJ feature in the config.  

Link to comment
Share on other sites

13 hours ago, Buzz313th said:

Thank you ColdJ.  Gave that a try and I must be doing something wrong.  Can't pull the MJ ar200 out of the VAB parts pool on the left.  It stays dark like it has yet to be bought.  Playing career btw.   I'm going to guess that needs to be inserted in each MJ feature in the config.  

Should just be that it can't be the first part laid down. If you start with something else first, is it able to be added?

Link to comment
Share on other sites

6 hours ago, ColdJ said:

Should just be that it can't be the first part laid down. If you start with something else first, is it able to be added?

No, anytime I add those lines into the MJ part.cfg, doesn't matter where in the config, the MJ part is blacked out in the VAB.  It breaks MechJeb...   I'm curious if anyone has successfully  altered the part.cfg file to enable eva construction?  If so, maybe they could paste the .cfg here.

Link to comment
Share on other sites

2 minutes ago, Buzz313th said:

No, anytime I add those lines into the MJ part.cfg, doesn't matter where in the config, the MJ part is blacked out in the VAB.  It breaks MechJeb...   I'm curious if anyone has successfully  altered the part.cfg file to enable eva construction?  If so, maybe they could paste the .cfg here.

Try this instead.

    MODULE
    {
        name = ModuleCargoPart    
        stackableQuantity = 1
        packedVolume = -1
    }

If this doesn't work I will get you to copy and paste your config file here and put it into a spoiler so that I can look at it later. I am afraid I have to go to bed right now.

Good Luck.

Link to comment
Share on other sites

4 hours ago, ColdJ said:

Try this instead.

    MODULE
    {
        name = ModuleCargoPart    
        stackableQuantity = 1
        packedVolume = -1
    }

If this doesn't work I will get you to copy and paste your config file here and put it into a spoiler so that I can look at it later. I am afraid I have to go to bed right now.

Good Luck.

Thanks Coldj..

Will give it a try when I get back from work late tonight.

 

Cheers.

Link to comment
Share on other sites

Here is the original part.cfg for the MJ Ar202.

 

I tried all the suggestions, but couldn't get it to work.  

 

Spoiler

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- node definitions ---
    node_attach = 0.0, 0.0, 0.0, 1, 0, 0

    // --- editor parameters ---
    TechRequired = flightControl
    entryCost = 15000
    cost = 750
    category = Control
    subcategory = 0
    title = #MechJeb_MechJeb2_Title // #MechJeb_MechJeb2_Title = MechJeb 2 (AR202 case)
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_MechJeb2_Description // #MechJeb_MechJeb2_Description = A ruggedized version of MechJeb's neural circuits in a radial-mount case.

    // attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
    attachRules = 0,1,0,0,0

    // --- standard part parameters ---
    mass = 0.0001
    thermalMassModifier = 100
    skinThermalMassModifier = 100
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf

    
    tags = command control autopilot


    MODULE
    {
        name = ModuleCommand
        minimumCrew = 0
        
        RESOURCE
        {
            name = ElectricCharge
            rate = 0.005
        }
    }

    MODULE
    {
        name = MechJebCore
        MechJebLocalSettings {
            MechJebModuleCustomWindowEditor { unlockTechs = flightControl }
            MechJebModuleSmartASS { unlockTechs = flightControl }
            MechJebModuleManeuverPlanner { unlockTechs = advFlightControl }
            MechJebModuleNodeEditor { unlockTechs = advFlightControl }
            MechJebModuleTranslatron { unlockTechs = advFlightControl }
            MechJebModuleWarpHelper { unlockTechs = advFlightControl }
            MechJebModuleAttitudeAdjustment { unlockTechs = advFlightControl }
            MechJebModuleThrustWindow { unlockTechs = advFlightControl }
            MechJebModuleRCSBalancerWindow { unlockTechs = advFlightControl }
            MechJebModuleRoverWindow { unlockTechs = fieldScience }
            MechJebModuleAscentGuidance { unlockTechs = unmannedTech }
            MechJebModuleLandingGuidance { unlockTechs = unmannedTech }
            MechJebModuleSpaceplaneGuidance { unlockTechs = unmannedTech }
            MechJebModuleDockingGuidance { unlockTechs = advUnmanned }
            MechJebModuleRendezvousAutopilotWindow { unlockTechs = advUnmanned }
            MechJebModuleRendezvousGuidance { unlockTechs = advUnmanned }
        }
    }

    MODULE
    {
        name = MechJebAR202
    }

    RESOURCE
    {
        name = ElectricCharge
        amount = 5
        maxAmount = 5
    }
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features1
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = advFlightControl
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_ManeuverTranslatron_Title // #MechJeb_Future_ManeuverTranslatron_Title = MechJeb Features- Maneuver & Translatron
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_ManeuverTranslatron_Description // #MechJeb_Future_ManeuverTranslatron_Description = Unlocks the following MechJeb windows: Maneuver Planner, Translatron, Warp Helper, Attitude Adjustment, Thrust Window, RCS Balancer. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.00001
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features2
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = fieldScience
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_RoverAutopilot_Title // #MechJeb_Future_RoverAutopilot_Title = MechJeb Features- Rover Autopilot
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_RoverAutopilot_Description // #MechJeb_Future_RoverAutopilot_Description = Unlocks the following MechJeb windows: Rover Autopilot. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.00001
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features3
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = unmannedTech
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_AscentLandingSpaceplane_Title // #MechJeb_Future_AscentLandingSpaceplane_Title = MechJeb Features- Ascent, Landing, Spaceplane
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_AscentLandingSpaceplane_Description // #MechJeb_Future_AscentLandingSpaceplane_Description = Unlocks the following MechJeb windows: Ascent Autopilot, Landing Autopilot, Spaceplane Guidance. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.00001
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features4
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = advUnmanned
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_RendevousDocking_Title // #MechJeb_Future_RendevousDocking_Title = MechJeb Features- Rendezvous & Docking
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_RendevousDocking_Description // #MechJeb_Future_RendevousDocking_Description = Unlocks the following MechJeb windows: Rendezvous Guidance, Rendezvous Autopilot, Docking Autopilot. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.00001
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

 

Link to comment
Share on other sites

On 2/14/2023 at 3:35 PM, Buzz313th said:

I tried all the suggestions, but couldn't get it to work.  

Hi. Haven't got time to test right now but it is probably because this config actually creates 5 different parts. So you need to put the module in between each instance of

    bulkheadProfiles = srf

And the end bracket of that part. So added 5 times. Once for each part the config creates.

Each part begins with.

PART{

 

Link to comment
Share on other sites

1 hour ago, ColdJ said:

Hi. Haven't got time to test right now but it is probably because this config actually creates 5 different parts. So you need to put the module in between each instance of

    bulkheadProfiles = srf

And the end bracket of that part. So added 5 times. Once for each part the config creates.

Each part begins with.

PART{

 

Thank you Coldj.  Will give it a try.

 

Cheers

Link to comment
Share on other sites

On 2/15/2023 at 4:24 AM, ColdJ said:

Hi. Haven't got time to test right now but it is probably because this config actually creates 5 different parts. So you need to put the module in between each instance of

    bulkheadProfiles = srf

And the end bracket of that part. So added 5 times. Once for each part the config creates.

Each part begins with.

PART{

 

Thank you Coldj.  It worked, although I needed to delete all my previously used Mechjebs in my save before I could build with it in the VAB...   

 

Here is the cfg file that worked for me.

 

Spoiler

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- node definitions ---
    node_attach = 0.0, 0.0, 0.0, 1, 0, 0

    // --- editor parameters ---
    TechRequired = flightControl
    entryCost = 15000
    cost = 750
    category = Control
    subcategory = 0
    title = #MechJeb_MechJeb2_Title // #MechJeb_MechJeb2_Title = MechJeb 2 (AR202 case)
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_MechJeb2_Description // #MechJeb_MechJeb2_Description = A ruggedized version of MechJeb's neural circuits in a radial-mount case.

    // attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
    attachRules = 0,1,0,0,0

    // --- standard part parameters ---
    mass = 0.05
    thermalMassModifier = 100
    skinThermalMassModifier = 100
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
    tags = command control autopilot

    MODULE
    {
    name = ModuleCargoPart
    packedVolume = 100
    }


    MODULE
    {
        name = ModuleCommand
        minimumCrew = 0
        
        RESOURCE
        {
            name = ElectricCharge
            rate = 0.005
        }
    }

    MODULE
    {
        name = MechJebCore
        MechJebLocalSettings {
            MechJebModuleCustomWindowEditor { unlockTechs = flightControl }
            MechJebModuleSmartASS { unlockTechs = flightControl }
            MechJebModuleManeuverPlanner { unlockTechs = advFlightControl }
            MechJebModuleNodeEditor { unlockTechs = advFlightControl }
            MechJebModuleTranslatron { unlockTechs = advFlightControl }
            MechJebModuleWarpHelper { unlockTechs = advFlightControl }
            MechJebModuleAttitudeAdjustment { unlockTechs = advFlightControl }
            MechJebModuleThrustWindow { unlockTechs = advFlightControl }
            MechJebModuleRCSBalancerWindow { unlockTechs = advFlightControl }
            MechJebModuleRoverWindow { unlockTechs = fieldScience }
            MechJebModuleAscentGuidance { unlockTechs = unmannedTech }
            MechJebModuleLandingGuidance { unlockTechs = unmannedTech }
            MechJebModuleSpaceplaneGuidance { unlockTechs = unmannedTech }
            MechJebModuleDockingGuidance { unlockTechs = advUnmanned }
            MechJebModuleRendezvousAutopilotWindow { unlockTechs = advUnmanned }
            MechJebModuleRendezvousGuidance { unlockTechs = advUnmanned }
        }
    }

    MODULE
    {
        name = MechJebAR202
    }

    RESOURCE
    {
        name = ElectricCharge
        amount = 5
        maxAmount = 5
    }
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features1
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = advFlightControl
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_ManeuverTranslatron_Title // #MechJeb_Future_ManeuverTranslatron_Title = MechJeb Features- Maneuver & Translatron
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_ManeuverTranslatron_Description // #MechJeb_Future_ManeuverTranslatron_Description = Unlocks the following MechJeb windows: Maneuver Planner, Translatron, Warp Helper, Attitude Adjustment, Thrust Window, RCS Balancer. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.05
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features2
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = fieldScience
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_RoverAutopilot_Title // #MechJeb_Future_RoverAutopilot_Title = MechJeb Features- Rover Autopilot
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_RoverAutopilot_Description // #MechJeb_Future_RoverAutopilot_Description = Unlocks the following MechJeb windows: Rover Autopilot. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.05
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features3
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = unmannedTech
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_AscentLandingSpaceplane_Title // #MechJeb_Future_AscentLandingSpaceplane_Title = MechJeb Features- Ascent, Landing, Spaceplane
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_AscentLandingSpaceplane_Description // #MechJeb_Future_AscentLandingSpaceplane_Description = Unlocks the following MechJeb windows: Ascent Autopilot, Landing Autopilot, Spaceplane Guidance. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.05
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

PART {
    // --- general parameters ---
    name = mumech_MJ2_AR202_features4
    module = Part
    author = r4m0n/The_Duck (code) || keptin (part)

    // --- asset parameters ---
    mesh = model.mu
    rescaleFactor = 0.75

    // --- editor parameters ---
    TechRequired = advUnmanned
    entryCost = 15000
    cost = 750
    category = none
    subcategory = 0
    title = #MechJeb_Future_RendevousDocking_Title // #MechJeb_Future_RendevousDocking_Title = MechJeb Features- Rendezvous & Docking
    manufacturer = #MechJeb_AnatidRobotics // #MechJeb_AnatidRobotics = Anatid Robotics
    description = #MechJeb_Future_RendevousDocking_Description // #MechJeb_Future_RendevousDocking_Description = Unlocks the following MechJeb windows: Rendezvous Guidance, Rendezvous Autopilot, Docking Autopilot. Once unlocked, all existing MechJeb modules will be automatically upgraded to latest firmware.

    // --- standard part parameters ---
    mass = 0.05
    dragModelType = default
    maximum_drag = 0.0
    minimum_drag = 0.0
    angularDrag = 0
    crashTolerance = 6
    maxTemp = 2900

    CrewCapacity = 0

    vesselType = Probe
    bulkheadProfiles = srf
}

 

Link to comment
Share on other sites

5 hours ago, Buzz313th said:

Here is the cfg file that worked for me.

Bit confused. That config only adds it to the first part in the config and not the rest. Also it shouldn't have disrupted previous builds by just adding that module.

But if it has worked for you then, that will do.

Link to comment
Share on other sites

It works if you put it in all 5 parts and if you only place it in the core part.   I decided to only put it in the core part, not the tech updates, but changed the mass in all parts to keep it clean.  The modules in the other 4 parts are just for the tech tree in career. 

Link to comment
Share on other sites

I've just figured out an issue that seems to be related to MJ. If you have autostage turned on using the Utilities tool, if you dock with a station, docking seems to trigger staging, causing various decouplers to fire.  Example, I have a small fuel depot in orbit of Minmus. It's basically a probe core, a reaction wheel, some fuel tanks, some monoprop tanks, some batteries, solar panels and 3 jr docking ports. I have a second identical craft that docked to it just fine. The I sent a lander, and it docked fine. Then I sent a crew ship. That also docked fine. Transferred the crew to the lander, landed, got some science, lifted off, rendezvous with the fuel depot. Get the ports aligned, and move in for docking...keeping things very slow...like 0.1 m/s. As soon as the port makes contact, two decouplers fired. One attaching the lowest tank on the second fuel ship, and the really bad one was the decoupler between the crew ship command module heat shield and everything below that! 

I reloaded from S.A.V.E to before the decoupler incident, and repeated the sequence, but added a quicksave only a few meters from docking. Docked and it fired. Loaded from the quicksave, and disabled autostaging in MechJeb, dock, and no decouplers fired.  

So, somewhere in the auto stage code, docking causes an auto stage event.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...