Jump to content

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


sarbian

Recommended Posts

2 hours ago, TonesTheGeek said:

Is anyone still having the issue where Rendezvous Autopilot is failing to initiate burns? It's really annoying that it stopped working and I suck at manual controls.

I have been having a lot of the rendezvous autopilot failing to do anything, only to work again properly at other times. It's associated with console/log error spam. I should snag a copy of the actual error next time it happens, but it's something to the effect of "simulation has too many iterations, halted".

Link to comment
Share on other sites

8 hours ago, Tokamak said:

I have been having a lot of the rendezvous autopilot failing to do anything, only to work again properly at other times. It's associated with console/log error spam. I should snag a copy of the actual error next time it happens, but it's something to the effect of "simulation has too many iterations, halted".

Well, I never use rendezvous autopilot myself (seems sort of redundant in that it just does a raise orbit, followed by a bi-impulsive transfer and a match velocities, all of which one can easily tell McJeb to do already). But I have recently noticed that autoland often fails to actually execute its burns. Quicksave and reload consistently fixes it. I haven't bothered to collect the data for a proper bug report (so, no I'm not asking for support). Just observing a probably related symptom.

Link to comment
Share on other sites

11 hours ago, rmaine said:

Well, I never use rendezvous autopilot myself (seems sort of redundant in that it just does a raise orbit, followed by a bi-impulsive transfer and a match velocities, all of which one can easily tell McJeb to do already). But I have recently noticed that autoland often fails to actually execute its burns. Quicksave and reload consistently fixes it. I haven't bothered to collect the data for a proper bug report (so, no I'm not asking for support). Just observing a probably related symptom.

Rendezvous autopilot is great for when you want to go make a cup of tea or something. :P

I've also observed the same thing with the landing autopilot. It might just be random chance, but it hasn't done that since I started using the procedure I describe above. I don't know if that's relevant. 

Link to comment
Share on other sites

20 hours ago, Tokamak said:

I have been having a lot of the rendezvous autopilot failing to do anything, only to work again properly at other times. It's associated with console/log error spam. I should snag a copy of the actual error next time it happens, but it's something to the effect of "simulation has too many iterations, halted".

I had it happen again, and the error spam in the log is a zillion repeats of:


[ERR 19:49:35.599] MechJeb module MechJebModuleRendezvousAutopilot threw an exception in Drive: System.TimeoutException: Brent's rootfinding method: maximum iterations exceeded
  at MuMech.Brent.Solve (MuMech.BrentFun f, System.Double a, System.Double b, System.Double rtol, System.Double& x, System.Double& y, System.Object o, System.Int32 maxiter, System.Int32 sign) [0x001e3] in <4cdbe337c6aa43d0bc3552436a95c969>:0 
  at MuMech.OrbitalManeuverCalculator.DeltaVAndTimeForHohmannTransfer (Orbit o, Orbit target, System.Double UT, System.Double& burnUT) [0x00102] in <4cdbe337c6aa43d0bc3552436a95c969>:0 
  at MuMech.MechJebModuleRendezvousAutopilot.Drive (FlightCtrlState s) [0x00650] in <4cdbe337c6aa43d0bc3552436a95c969>:0 
  at MuMech.MechJebCore.Drive (FlightCtrlState s) [0x00048] in <4cdbe337c6aa43d0bc3552436a95c969>:0 

 

Link to comment
Share on other sites

17 minutes ago, Tokamak said:

I had it happen again, and the error spam in the log is a zillion repeats of:

Are you up to date with MechJeb? What are the relative orbits of the target and active craft?  I've only seen this if one of the vessels is in an eccentric orbit like try to intercept an asteroid passing through Kerbin's SOI.

@TonesTheGeek What version of MechJeb are you using?  There was a problem with some of the releases about a month ago, but I'm not seeing issues with the current release.  Over the weekend I used MechJeb for several rendezvous.

Link to comment
Share on other sites

1 minute ago, Tonka Crash said:

Are you up to date with MechJeb? What are the relative orbits of the target and active craft?  I've only seen this if one of the vessels is in an eccentric orbit like try to intercept an asteroid passing through Kerbin's SOI.

 

See, if I'd been smart, I'd have actually taken down that information before continuing with my game. The next time it happens I'll get exact stats. But the active craft had a AP/PE of around 80k/79k, and the target craft was something like 100k/105k, both around Kerbin, so pretty low eccentricity. I wasn't expecting support on it, so I didn't save logs and whatnot. I guess I ought to have just as a matter of course.

My mechjeb is 2.9.2.0, the most recent in CKAN.

Link to comment
Share on other sites

6 minutes ago, Tokamak said:

My mechjeb is 2.9.2.0, the most recent in CKAN.

I'd try switching to the Dev branch the instructions to do this with CKAN are in the OP of this thread.  The "official" release normally only gets updated around the time a KSP release comes out.  Dev versions come much more frequently, but sometimes have bugs.

Link to comment
Share on other sites

Dev Build 988 , Landing Guidance is broken again . When activated with Land at target or Land somewehre nothing happend and the log is flooded with this:

[ERR 19:20:40.362] MechJeb module MechJebModuleAttitudeController threw an exception in Drive: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at MuMech.MechJebModuleAttitudeController.attitudeGetReferenceRotation (MuMech.AttitudeReference reference) [0x00476] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebModuleAttitudeController.Drive (FlightCtrlState s) [0x00008] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebCore.Drive (FlightCtrlState s) [0x00048] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 

[EXC 19:20:40.365] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
	System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
	System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
	MuMech.MechJebModuleAttitudeController.attitudeGetReferenceRotation (MuMech.AttitudeReference reference) (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.MechJebModuleAttitudeController.attitudeReferenceToWorld (Vector3d vector, MuMech.AttitudeReference reference) (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.MechJebModuleAttitudeController.attitudeTo (Vector3d direction, MuMech.AttitudeReference reference, System.Object controller) (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.Landing.DeorbitBurn.OnFixedUpdate () (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.AutopilotModule.OnFixedUpdate () (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:LogException(Exception)
	MuMech.AutopilotModule:OnFixedUpdate()
	MuMech.MechJebModuleLandingAutopilot:OnFixedUpdate()
	MuMech.MechJebCore:FixedUpdate()
[ERR 19:20:40.367] MechJeb module MechJebModuleAttitudeController threw an exception in OnFixedUpdate: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at MuMech.MechJebModuleAttitudeController.attitudeGetReferenceRotation (MuMech.AttitudeReference reference) [0x00476] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebModuleAttitudeController.attitudeAngleFromTarget () [0x00019] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebModuleAttitudeController.OnFixedUpdate () [0x00000] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebCore.FixedUpdate () [0x00139] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 

[ERR 19:20:40.375] MechJeb module MechJebModuleAttitudeController threw an exception in Drive: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at MuMech.MechJebModuleAttitudeController.attitudeGetReferenceRotation (MuMech.AttitudeReference reference) [0x00476] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebModuleAttitudeController.Drive (FlightCtrlState s) [0x00008] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebCore.Drive (FlightCtrlState s) [0x00048] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 

[EXC 19:20:40.377] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
	System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
	System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
	MuMech.MechJebModuleAttitudeController.attitudeGetReferenceRotation (MuMech.AttitudeReference reference) (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.MechJebModuleAttitudeController.attitudeReferenceToWorld (Vector3d vector, MuMech.AttitudeReference reference) (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.MechJebModuleAttitudeController.attitudeTo (Vector3d direction, MuMech.AttitudeReference reference, System.Object controller) (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.Landing.DeorbitBurn.OnFixedUpdate () (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	MuMech.AutopilotModule.OnFixedUpdate () (at <c547f17d8cda4e9691d8b34f01a2d3fa>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:LogException(Exception)
	MuMech.AutopilotModule:OnFixedUpdate()
	MuMech.MechJebModuleLandingAutopilot:OnFixedUpdate()
	MuMech.MechJebCore:FixedUpdate()
[ERR 19:20:40.378] MechJeb module MechJebModuleAttitudeController threw an exception in OnFixedUpdate: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at MuMech.MechJebModuleAttitudeController.attitudeGetReferenceRotation (MuMech.AttitudeReference reference) [0x00476] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebModuleAttitudeController.attitudeAngleFromTarget () [0x00019] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebModuleAttitudeController.OnFixedUpdate () [0x00000] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebCore.FixedUpdate () [0x00139] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 

[ERR 19:20:40.402] MechJeb module MechJebModuleAttitudeController threw an exception in Drive: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at MuMech.MechJebModuleAttitudeController.attitudeGetReferenceRotation (MuMech.AttitudeReference reference) [0x00476] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebModuleAttitudeController.Drive (FlightCtrlState s) [0x00008] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 
  at MuMech.MechJebCore.Drive (FlightCtrlState s) [0x00048] in <c547f17d8cda4e9691d8b34f01a2d3fa>:0 

How to programming works:

You have a bug in the code.

You fix the bug in the code.

Now you have two bugs in the code. &)

Link to comment
Share on other sites

1 hour ago, phcgamer said:

Does the most recent version of this still work in 1.10?

 

40 minutes ago, timberlake132 said:

I don't believe so. I opened up KSP on Steam just a few moments ago and got a popup saying that MechJeb2 is incompatible with KSP 1.10.

You'll need to try it and see.  The popup message is an internal check from MechJeb that recognizes that you are running MJ on a version newer than it was compiled on.  This doesn't necessarily mean it doesn't work, but be wary of glitches.  I'd test it, but I'm at work and it will be several hours until I can try it out.

Edited by Tonka Crash
Link to comment
Share on other sites

3 hours ago, miguelsgamingch said:

This is weird and annoying and i want it to be fixed.

And I want some vacations but we can't all have what we want.

Edited by sarbian
Link to comment
Share on other sites

Please do not badger the modders to update their mods, especially right after a new release of the game. The modders for KSP are volunteers who offer their time, expertise, and digital resources to provide the community content for free.

It's also against Community Guideline 2.2p: Demanding or pressuring for release dates or updates from Take-Two or content creators. 

Please don't pester him for a mod update. :) 

Link to comment
Share on other sites

On 6/28/2020 at 9:08 PM, TonesTheGeek said:

Is anyone still having the issue where Rendezvous Autopilot is failing to initiate burns? It's really annoying that it stopped working and I suck at manual controls.

I've had that issue as well, and it seems to be working now, BUT I've had a similar issue with auto-landing, and I've found a (at least for now) work around. If I switch control to a different vessel, then come back, auto-landing seems to work just as it has in the past.

 

Link to comment
Share on other sites

9 hours ago, miguelsgamingch said:

For Some Reason Everytime In the loading screen of ksp It Says that MechJeb 2 maybe outdated but it isn't and still works fine.

This is weird and annoying and i want it to be fixed.

If you are still seeing this message, it was fixed in the DEV branch about 8 hours before you posted . See the post above yours.

Link to comment
Share on other sites

Here's a stupid question, but I can't seem to find the answer online or in the wiki.  When do I need the actual MechJeb parts/attachments?  As I progress through career mode, I've unlocked various Mechjeb abilities up to ascent guidance (haven't quite got to rendezvous/docking yet) and those options become available to me in the Mechjeb menu even without a Mechjeb part on whatever I'm flying.  Piloted or probe-core, it doesn't matter.  I've got no Mechjeb part on it, but I can still use Mechjeb to do actions... so what does the part/controller do exactly?  Will they let me fly something without either a probe core or a command module?

Link to comment
Share on other sites

22 hours ago, Kampfsanni said:

Dev Build 988 seems to be  working  with  1.10 so far. 

Landing Guidance, well see my post above.

Sorry if this is a silly question, but where can I find these dev builds?

Link to comment
Share on other sites

1 hour ago, Cucco-Master said:

You used to require the MechJeb parts to use MechJeb, but this was changed (at least installing through CKAN gives you that patch by default) and so nowadays any command module has MechJeb functionality without any extra parts.

Yes. The parts still exist, but that's just so that old craft that used the parts don't get invalidated. No need to put them on a new craft.

Link to comment
Share on other sites

Self serving feature request.  Shuttles are infamous for having issues related to MechJeb pilotage, especially when chasing nodes down near the end of a burn.

Allow manual throttle control even during an automated burn so that we can tame the beast before an overshoot.

... or maybe its there and I just dont know how to use it (aside from manually doing all the node work).

Link to comment
Share on other sites

2 hours ago, laserfj said:

Sorry if this is a silly question, but where can I find these dev builds?

Welcome to the forums.  There are no silly questions (just really sarcastic answers. Sometimes :D:wink:).  We've all been new at this one time or another.

If you use CKAN, go to Settings > CKAN Settings > Metadata Repositories box at the top.  Click on New and select MechJeb2-dev.  Click OK.  This will, of course, prompt you to install the latest dev version every time you use CKAN so be warned - they are dev versions for a reason.

If you don't, there's a link on the OP just below the version release list (or replicated for you here).

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...