sarbian Posted August 23, 2013 Share Posted August 23, 2013 (edited) This is a alternate version of Mechjeb 2. R4m0n seems to be away from KSP right now and I can do some minor patch and use patch from others.I don't really want to call it a fork since I don't want to take over the dev. So lets say it a test bed for patch while the official dev are on leave. I'll be here until around september 10. Then I have a 1 month trip and won't do anything KSP related until I come back.For now I'll post a "improved" version on MJ2 with patch by me and others. I'll welcome bug report, other patch and suggestion.Licence:Mechjeb 2 is under a GLP3 Licence. Source code available here : https://github.com/sarbian/MechJeb2/tree/Multi-PatchMost of this comes from the work of R4m0n, Anatid, The-Duck and other contributors to the project.Install : Full zip installl here : http://www.sarbian.com/sarbian/MechJeb2-Multipatch.zip Unzip it in your gamedata folderRight now my github repo is a bit messy, I'll clean it later with proper merge of other patch so their name show up in the commit log.The current version use this branch : https://github.com/sarbian/MechJeb2/commits/Multi-PatchReporting a Bug : If you find a bug please give information. What were you doing, a ship screenshot, or even better a savefile. I use a lot of mod so I may be able to use most of your modded save file. Check the log for error ( KSP_Data/output_log.txt or ALT F2 in game ) and use http://pastebin.com/ to copy/paste it. The more info we get the easier it is to understand and fix bugs. Submit bug / improvement / suggestion to the github issue pageOther patch : Feel free to offer more patch ! Suggestion are welcome but some are a lot harder to code than other...Release :October 10 (2.0.13283.1844) Removed the previous patch that disabled module on Undocking. I ll think of a better implementationBloodyRain2k : fixed the problem where the stage calculation assumed all engines of the current stage to be onBloodyRain2k : patch to the node plannerSeptember 9 bis (2.0.13252.2353)Disable Module ( most of them I hope ) on Undocking ShipSeptember 9 (2.0.13252.1108)Menu windows will stay on screen even if you drag the button down ( for those with lower res)Tf is now saved per shipAugust 31 ter (2.0.13243.1528)Tavert #163 g0 in fuel flow simulation should be 9.82Move MJ2 Button with a right click drag and dropAugust 31 bis (2.0.13243.1312)Ship flying away when docking from opposite side of the stationBetter RCS usage, I hopeSpeed Limit can't be negativeDefault docking speed is set to 0.5m/s now. Check yours and don't let it at 0 ( unlimited speed )August 31 (2.0.13243.0010) ( more info )deactivate ASAS when MJ take controlAscent AP : Turn start altitude can't be set to 0kmRemove special case for ascent AP that may turn some ship too soon.Add some feedback for this special caseMade BloodyRain2k Auto ascend params use clearer with a radio button to activate itImproved Docking AP - More agressive and does dock Fix Exception spam on "Suicide burn countdown" & "Time to impact"taniwha-qf #162 : MechJeb doesn't see in-flight docked fuel August 25 ( 2.0.13237.1442 )Version Number will change automatically for each build( 2.0.<year><dayofyear>.<hour><minute> ).I reverted Meumeu landing precision patch. Ship with "high" TWR where hoovering over the landing spot, and I need some time to understand his change. Meumeu if you read this ...Fix for reaction wheel. MJ thought the ship still has RW when there was no electricity left. It lead to bad attitude control ( Thanks Raf04 ).Fix SmartASAS not switching to AUTO while an other module use the attitude control.Removed SAS automatic switching.August 23 SpiritOffice : Fix for Circularize function, if you want to change your hyperbolic orbit to circular orbit at some altitude. ( https://github.com/MuMech/MechJeb2/pull/168 )August 5 - patch added to the offcial version : Sarbian : Let user force Roll for SASS and docking Sarbian : Control Surface Torque ( https://github.com/MuMech/MechJeb2/pull/161 ) Sarbian : Fix some case where OnLoad wasn't called Sarbian : Remove CommandModule from AR202. no need to check if the AR202 is in control and try to turn sideway Raf04 : new Patch to attitude improvement ( https://github.com/MuMech/MechJeb2/pull/152 )make the response of the PID soft to reduce the stress of the vesselavoid oscillations of the shipfast angular displacement without overshotprecise response, reduces the effect of inaccuracies of the attitude referenceincludes selectable automatic control for RCS and SASBloodyRain2k : Auto ascend params ( https://github.com/MuMech/MechJeb2/pull/149 ) This will try to automatically use ascend parameters base on the body target orbit 80km on Kerbin will make it turn at 7km (1/10th of atmosphere) and aim for 70km to reach 80km AP On the mun the same would make it turn short after takeoff due to no atmosphere and aim for 30km to reach 80km APBloodyRain2k : changing the way MJ searches for Modules in other assemblies ( https://github.com/MuMech/MechJeb2/pull/177 )Meumeu : improved targeted landing precision ( https://github.com/MuMech/MechJeb2/pull/165 ) This improves the final descent when a target is set Edited October 10, 2013 by sarbian Link to comment Share on other sites More sharing options...
Zeroignite Posted August 23, 2013 Share Posted August 23, 2013 Awesome, nice to see your patch dll getting it's own thread! This makes things much easier. +rep. Link to comment Share on other sites More sharing options...
pina_coladas Posted August 23, 2013 Share Posted August 23, 2013 Nice to see attitude control improvements, I'll have to try this later. Did you make the PID controller similar to the new stock PID? I've been wondering if there's a way for mechjeb to hook into the new stock PID controller... Link to comment Share on other sites More sharing options...
sojourner Posted August 23, 2013 Share Posted August 23, 2013 Hey Sarbian, good work!I haven't had a chance to try the aug.23 .dll yet, but I have a minor issue with the aug. 5th one, and this may be a problem in earlier versions, but I haven't been using them. Anyway, with some functions mechjeb will automatically turn Smart A.S.S. off while it performs a maneuver, while with others it will leave it on and "fight" with itself to re-orient the ship. It's a minor issue, but something I run into a lot going between the different modules like docking, rendezvous, and maneuver planner. for example I will turn on smart ass upon attaining orbit, open up maneuver planner and "execute now" on a hohmann transfer. I then watch as the ship swings around to the point on the nav ball but not make it all the way. Which is when I look up and find smart ass still active. I turn it off and the maneuver planner then proceeds as normal.The only other issue I have seen with the aug. 5 dll is the rare occasion using the landing module. It sometimes decides to just hover (until you run out of fuel) over the landing site instead of making the final descent.Thanks for helping to keep Mechjeb alive! Link to comment Share on other sites More sharing options...
BostLabs Posted August 23, 2013 Share Posted August 23, 2013 Cool! I am subbing to this post. I use the 2.0 version of MJ a lot so I'm glad I found this thread. Link to comment Share on other sites More sharing options...
XbasmanX Posted August 23, 2013 Share Posted August 23, 2013 Glad to see this up and running...keep up the good work!!! Link to comment Share on other sites More sharing options...
Ratzap Posted August 23, 2013 Share Posted August 23, 2013 Nice one, glad someone is looking after robojeb Link to comment Share on other sites More sharing options...
synik4l Posted August 23, 2013 Share Posted August 23, 2013 Heck ya. Thanks Sarb Link to comment Share on other sites More sharing options...
King Arthur Posted August 23, 2013 Share Posted August 23, 2013 I noticed two minor visual bugs, would be great to see them fixed. The reduced oscillations and force roll are awesome, thanks! Link to comment Share on other sites More sharing options...
dishycourier Posted August 24, 2013 Share Posted August 24, 2013 A small request- the old MJ used to state in the Smart ASS window the error in degrees while on auto. Are you able to put that back? Link to comment Share on other sites More sharing options...
King Arthur Posted August 24, 2013 Share Posted August 24, 2013 (edited) A small request- the old MJ used to state in the Smart ASS window the error in degrees while on auto. Are you able to put that back?You can have this show up via a custom window. Edited August 24, 2013 by King Arthur Link to comment Share on other sites More sharing options...
Simplicity Posted August 24, 2013 Share Posted August 24, 2013 Many thanks for putting this thread up Sarbian, I will do my best to report anything I find properly with as much info as I can Link to comment Share on other sites More sharing options...
Unikraken Posted August 24, 2013 Share Posted August 24, 2013 So I'm not a smart man... There are a lot of download links in the first post and it's late, so I'm a little confused about what to get. What do I need to get to get the latest patched mechjeb code? Link to comment Share on other sites More sharing options...
viperwolf Posted August 24, 2013 Share Posted August 24, 2013 So I'm not a smart man... There are a lot of download links in the first post and it's late, so I'm a little confused about what to get. What do I need to get to get the latest patched mechjeb code?I feel very dumb bc i dont understand what we are suppose to download and install? thank you for what your doing though. Link to comment Share on other sites More sharing options...
Yedin Posted August 24, 2013 Share Posted August 24, 2013 Thanks, Sarbian! Link to comment Share on other sites More sharing options...
Climberfx Posted August 24, 2013 Share Posted August 24, 2013 Have in this version the auto rendezvous able?Because the other time i put this it remove some newer things from Mj.Anyway, thanks! Link to comment Share on other sites More sharing options...
Torminator Posted August 24, 2013 Share Posted August 24, 2013 To anyone confused: Download Mechjeb2 normally (first link) and the patched .dll (second link)Replace the part.cfg for the AR202 case with the code at the 3rd link. Just copy and paste. OP: Bless you- Mechjeb no longer needs 500 Monopropellant to rotate 180 degrees. Link to comment Share on other sites More sharing options...
Chebalu Posted August 24, 2013 Share Posted August 24, 2013 I patched the .dll, but after that my ships went crazy. I must changed to the "original"! Link to comment Share on other sites More sharing options...
sojourner Posted August 24, 2013 Share Posted August 24, 2013 Have in this version the auto rendezvous able?Because the other time i put this it remove some newer things from Mj.Anyway, thanks! Auto rendezvous has been in every version since at least 2.08. If it's missing for you you have a corrupt cfg file in gamedata/mechjeb2/plugins/plugindataNot sure which one but I think it's the mechjeb_settings_global_.cfg. Delete the file and when you run KSP it will be recreated and all of your mechjeb settings should be restored in game. Link to comment Share on other sites More sharing options...
johnsonwax Posted August 24, 2013 Share Posted August 24, 2013 So far so good with the patch. I just did about a dozen docking maneuvers 8 of which were with the forced angle docks from THSS and the force roll worked very well. A few times it didn't quite want to line up, as if one of the docks was maybe .2m off from it's proper location but other times it worked perfectly, so who knows. It wasn't so far off that I couldn't force over MJ. Seems to be easier on monoprop as well. And I noticed that MJ doesn't back away from docking ports as much as before. That's nice - it speeds things up, but it requires a little bit different planning than before. You have to be much more proactive about making sure nothing is anywhere near between your ship and the dock. Link to comment Share on other sites More sharing options...
GraviTykillz Posted August 24, 2013 Share Posted August 24, 2013 Thanks, Sarbian!yes..thank you so very much for this. Link to comment Share on other sites More sharing options...
Morlock Posted August 24, 2013 Share Posted August 24, 2013 Sárbian Thanks for your effort and work ! Link to comment Share on other sites More sharing options...
Mihara Posted August 24, 2013 Share Posted August 24, 2013 There is one specific problem that your patched version seems to have that the original 2.0.9 dev build did not:When you have anything on SmartASS selected, node autopilot might get stuck on it and unable to turn towards the node. This also applies to translatron and possibly other things. Original 2.0.9 would switch SmartASS to automatic in this case, your version often does not.There's probably some problem either in "Force Roll" or "Use SAS if available" implementation. Speaking of which, shouldn't the "Use SAS if available" option be in Utilities? Link to comment Share on other sites More sharing options...
Elliptical Orbit Posted August 24, 2013 Share Posted August 24, 2013 Is there a way to get back the ability to have your vessel keep a pro grade orientation rather than swapping ends for a retro grade one while on the coast up to AP during ascent? Or have the ability to toggle what you would like to happen after engine shutdown? Link to comment Share on other sites More sharing options...
shaun3000 Posted August 24, 2013 Share Posted August 24, 2013 BloodyRain2k : Auto ascend params ( https://github.com/MuMech/MechJeb2/pull/149 ) This will try to automatically use ascend parameters base on the body target orbit 80km on Kerbin will make it turn at 7km (1/10th of atmosphere) and aim for 70km to reach 80km AP On the mun the same would make it turn short after takeoff due to no atmosphere and aim for 30km to reach 80km APHow do you do this? I can't seem to find a way to enable it. As it is, now, my ascent path can only be manually adjusted. Link to comment Share on other sites More sharing options...
Recommended Posts