Jump to content

[1.4.5] Smart Actuators v1.1.1 (8/1/18)


Recommended Posts

A revival of part of the Stock Bug Fix Plus mod by @Claw, original thread here: http://forum.kerbalspaceprogram.com/index.php?/topic/87737-ksp-v113-stock-bug-fix-modules-release-v113b1-10-jul-16

Overview:

Doesn't it bother you when you're chilling up in space, relaxing in your amazing SSTO but whenever you go to rotate your ship, all the control surfaces start moving around and it wrecks the serenity of the moment? Well it was annoying me so I went and got this mod working. It prevents control surfaces from moving if in the vacuum of space.

What it does?

It checks to see if your ship is experiencing any atmospheric pressure and if it is 0 or close to 0, it will lock control surfaces. The threshold it cuts off at is dynamic (for reference, the line is around 65km on Kerbin and 40km on Duna).

Thanks to the following:

  • @Claw for doing all the hard work
  • @Diazo for their helpful guide to setting up an IDE to work with KSP
  • @linuxgurugamer for inspiring me to stop procrastinating 

To-Do:

  • Get airbrakes to not move when retracted and not in atmo
  • Add a button to the part menu to allow you to toggle off the blocker (on that part)
  • Get engine gimbals to lock when the engine is off

Changelog:

  • 1.1.1
    • update to 1.4.5
    • fix a bug related to gimbal
  • 1.1
    • add in ability to block gimbal movement when no fuel flow
  • 1.0.2
    • update to 1.3
    • catch a game-crashing nullref
  • 1.0.1.1
    • fixed SmartActuation.version
  • 1.0.1
    • added Airbrakes and other parts that use ModuleAeroSurface rather than ModuleControlSurface
    • enabled deployment while in orbit
    • added button to turn off the blocker (per part)
    • added SmartActuation.version
    • added changelog.txt

Download: https://github.com/theRagingIrishman/SmartActuation/releases

Source Code: https://github.com/theRagingIrishman/SmartActuation

88x31.png

Creative Commons 4.0 Attribution-NonCommercial-ShareAlike

CC BY-NC-SA

HOW TO INSTALL :

  1. Extract "SmartActuation" into your "Kerbal Space Program\GameData" file
  2. Enjoy
Edited by TheRagingIrishman
Link to comment
Share on other sites

Can I make a little suggestion? I noticed that in 1.2.2 if I retract a landing gear or a landing leg from the right click menu, it activate the action group retracting all of them. This is terrible in some situation, where you want to just move the mass of your ship on one side.

would it be an easy task?

Edited by Nansuchao
Link to comment
Share on other sites

1 hour ago, smotheredrun said:

So, is this only for "control surfaces" or will it work on "elevon", "control_srf" or "aileron", etc? Just asking because I've some ideas....

Right now it only works on ModuleControlSurface which is all stock control parts other than the airbrake because the airbrake uses ModuleAeroSurface. Adding in the ability to affect ModuleAeroSurface is next on my todo list and I think I'll be able to get it done tonight. To check if a part uses ModuleControlSurface or ModuleAeroSurface right click on it in the menu in the VAB or in the SPH and if it says something similar to GqN5l7H.png then it uses ModuleControlSurface and if it looks like 4dYVIdv.png then it uses ModuleAeroSurface.

1 hour ago, Nansuchao said:

Can I make a little suggestion? I noticed that in 1.2.2 if I retract a landing gear or a landing leg from the right click menu, it activate the action group retracting all of them. This is terrible in some situation, where you want to just move the mass of your ship on one side.

would it be an easy task?

I'm not sure how hard this would be or what exactly it would take but I'll look into it.

Edited by TheRagingIrishman
Link to comment
Share on other sites

9 minutes ago, TheRagingIrishman said:

Right now it only works on ModuleControlSurface which is all stock control parts other than the airbrake because the airbrake uses ModuleAeroSurface. Adding in the ability to affect ModuleAeroSurface is next on my todo list and I think I'll be able to get it done tonight. To check if a part uses ModuleControlSurface or ModuleAeroSurface right click on it in the menu in the VAB or in the SPH and if it says something similar to GqN5l7H.png then it uses ModuleControlSurface and if it looks like 4dYVIdv.png then it uses ModuleAeroSurface.

 

So this has nothing to do with an individual line within the ModuleControlSurface like this one:

              %transformName = obj_ctrlSrf

it just deals with the ModuleControlSurface as a whole?

Link to comment
Share on other sites

3 minutes ago, smotheredrun said:

So this has nothing to do with an individual line within the ModuleControlSurface like this one:

              %transformName = obj_ctrlSrf

it just deals with the ModuleControlSurface as a whole?

Yup. And I just got it to work with ModuleAeroSurface as well. Now to add a toggle!

Link to comment
Share on other sites

New release 1.0.1 is up. Pinging @linuxgurugamer (I added a .version file, does CKAN need to know about this?)

Changelog:
-added Airbrakes and other parts that use ModuleAeroSurface rather than ModuleControlSurface
-enabled deployment while in orbit
-added button to turn off the blocker (per part)
-added SmartActuation.version
-added changelog.txt)

Edited by TheRagingIrishman
Link to comment
Share on other sites

I checked  the .version file for syntax errors before making any changes:

Your .version file has syntax errors:

  • Extra comma following the "Allow Release
  • MIssing comma after brace closing the GITHUB section
  • Missing brace at the end.

I use a website: https://jsonformatter.org/

to validate JSON when I write it by hand.  

For these, I use the site:   http://ksp-avc.cybutek.net/

to store current data and generate the file for me.

The following is fixed:

{
  "NAME":"SmartActuation",
  "URL":"https://raw.githubusercontent.com/theRagingIrishman/SmartActuation/master/SmartActuation.version",
  "DOWNLOAD":"https://github.com/theRagingIrishman/SmartActuation/releases/latest",
  "GITHUB":
  {
    "USERNAME":"theRagingIrishman",
    "REPOSITORY":"SmartActuation",
    "ALLOW_PRE_RELEASE":false
  },
  "VERSION":
  {
    "MAJOR":1,
    "MINOR":0,
    "PATCH":1,
    "BUILD":0
  },
  "KSP_VERSION":
  {
    "MAJOR":1,
    "MINOR":2,
    "PATCH":2
  }
}

 

Edited by linuxgurugamer
Link to comment
Share on other sites

42 minutes ago, linuxgurugamer said:

I checked  the .version file for syntax errors before making any changes:

Your .version file has syntax errors:

  • Extra comma following the "Allow Release
  • MIssing comma after brace closing the GITHUB section
  • Missing brace at the end.

I use a website: https://jsonformatter.org/

to validate JSON when I write it by hand.  

For these, I use the site:   http://ksp-avc.cybutek.net/

to store current data and generate the file for me.

The following is fixed:


{
  "NAME":"SmartActuation",
  "URL":"https://raw.githubusercontent.com/theRagingIrishman/SmartActuation/master/SmartActuation.version",
  "DOWNLOAD":"https://github.com/theRagingIrishman/SmartActuation/releases/latest",
  "GITHUB":
  {
    "USERNAME":"theRagingIrishman",
    "REPOSITORY":"SmartActuation",
    "ALLOW_PRE_RELEASE":false
  },
  "VERSION":
  {
    "MAJOR":1,
    "MINOR":0,
    "PATCH":1,
    "BUILD":0
  },
  "KSP_VERSION":
  {
    "MAJOR":1,
    "MINOR":2,
    "PATCH":2
  }
}

 

Fixed in 1.0.1.1 thanks.

Link to comment
Share on other sites

3 hours ago, linuxgurugamer said:

And now, the first folder in the file is "Desktop"

You can fix by just repackaging and uploading again to Github, don't forget to delete the bad one first

Sorry about that, was rushing to fix the .version before a test I just finished. Fixed now.

Link to comment
Share on other sites

  • 4 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

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