Xyphos

Members
  • Content count

    722
  • Joined

  • Last visited

Community Reputation

478 Excellent

About Xyphos

  • Rank
    Sr. Spacecraft Engineer

Recent Profile Visitors

1029 profile views
  1. (double post removed)
  2. okay, good. now we have TWO options to chose from I also forgot to mention that this is my first DLL code Thingy mod; normally I just deal with CFG tweaks, but this couldn't be done from a cfg file.maybe in the future, I'll make more DLL thingies.
  3. Description: Simple modification for Command Modules and Docking Ports to allow your vessel to be controlled from a specific part through the action groups. no more wasting time trying to find the part to right-click on! Download v1.0.0.0 via: GitHub or SpaceDock Source Code: GitHub
  4. Nevermind, I figured it out; it was a problem in the CFG file, I capitalized "Name" when it should have been all-lowercase. also, I over-engineered the code so I simplified it. /* Control From Here - a module plugin for Kerbal Space Program * Author: William "Xyphos" Scott * Date: April 4, 2017 * Licence: PUBLIC DOMAIN * * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ namespace ControlFromHere { public class ControlFromHere : PartModule { [KSPAction("Control From Here")] public void ControlFromHereAction(KSPActionParam param) { vessel.SetReferenceTransform(part, true); } } }
  5. I'm trying to write a simple plugin to add "Control From Here" support for Command Modules and Docking Ports to Action Groups, so I don't have to go around looking for the part to right-click upon, I borrowed a bit of code from "Tweakable Everything" as a reference, but when I run KSP, it doesn't show up in the editor, and I can't figure out why. @PART[*]:HAS[@MODULE[ModuleCommand]] { MODULE { Name = ControlFromHere } } @PART[*]:HAS[@MODULE[ModuleDockingNode]] { MODULE { Name = ControlFromHere } } /* Control From Here - a module plugin for Kerbal Space Program * Author: William "Xyphos" Scott * Date: April 4, 2017 * Licence: PUBLIC DOMAIN * * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ namespace ControlFromHere { public class ControlFromHere : PartModule { // ReSharper disable once InconsistentNaming private const string CFH = "MakeReferenceTransform"; private ModuleCommand _command; private ModuleDockingNode _dock; public override void OnStart(StartState state) { _command = part.Modules.GetModule<ModuleCommand>(); _dock = part.Modules.GetModule<ModuleDockingNode>(); base.OnStart(state); } [KSPAction(guiName = "Control From Here")] public void DoControl(KSPActionParam param) { if (_command != null && _command.Events.Contains(CFH) && _command.Events[CFH].active) { _command.MakeReference(); return; } if (_dock != null && _dock.Events.Contains(CFH) && _dock.Events[CFH].active) _dock.MakeReferenceTransform(); } } }
  6. Thanks. The vessel wasn't built for that, the only working engine left would've burned for sure. Aerobraking is a very risky maneuver and should be avoided if possible. I had enough in the tanks to do a normal insertion.
  7. While I've only attempted 2 Eve landings, and only returned from 1, I have no desire to return to that hellish place. However, if you want to attempt an SSTO, I'd imagine doing it with a large propeller plane to carry you up to an altitude where the atmosphere is thin enough to consider switching to rocket propulsion. With enough lift from the wings, you won't even need a TWR of 1.2, I'd recommend somewhere around 0.5 so you won't over-accelerate and cause heating problems. I haven't done this myself, but I'm interested in seeing what you come up with. Happy Landings!
  8. Citing the fact that altering a part's construction material can change the overall mass for a part, I'm requesting a mod that can alter a part's mass in-editor, through a multiplier, ranging from 0.25 to 4.0 in other words, TweakScale without the scale, just manipulates the part's mass. My primary reason for this, is because I don't want to install FAR just to get a few of my vessels to fly correctly; I'll just move some of the ship's dry mass towards the nose and balance it out, at the penalty of increased overall mass.
  9. Argon would have been a better choice than Xenon, but you'll need to use a mod for Argon engines.
  10. @DrScarlett sorry for the delayed response did you edit "snapOffset" to 90? because that's angle control, not the "captureMinRollDot" which is just an error tolerance specification, it's best to leave "captureMinRollDot" at 0.98 or you'll experience problems when docking. @PART[*]:HAS[@MODULE[ModuleDockingNode]] { @MODULE[ModuleDockingNode] { captureMinRollDot = 0.98 snapRotation = true snapOffset = 5 } }
  11. same here, had to use Hyperedit for that one.
  12. actually, use a smaller, ion-powered chair undocked from a cargo bay as your main ship does a fly-by. but keep it low-mass by using 0.625m parts and a single gigantor solar panel.
  13. Moho - that 4000+ insertion burn is a total *bleepity bleep bleep*. At least Eve has an atmosphere you can aerobrake in, but that's not the case with Moho.
  14. in your game settings, if you set your conic patch mode to 0 (far left button until it stops), and the number of patches to 6, which is strongly recommended for gravity assisted maneuvers, you can actually aim the asteroid during the redirect on a fly-by past Kerbin to alter it's inclination on it's first pass by without capturing it, then later setup another Kerbin rondevous for an equatorial aerobrake and capture, it takes more time, but uses much less delta-V than altering the inclination after capturing, and you can do it all in a single mission. that's the beauty of orbital mechanics, what goes around, comes around, not everything has to happen all at once, for time is just an illusion, I think the hardest part of this game is learning patience, but learning to use gravity-assisted maneuvers can save you TONS of delta-V. in fact, gravity assisting makes it possible for an SSTO spaceplane to reach Laythe and back without refueling mid-flight, but we'll cover that lesson some other day. and before I forget, to setup the second rondevous, burn radial in/out at the solar AP but make sure the PE crosses into Kerbin's orbit, you should be able to see the node flags line up. try to get them as close as possible and fine-tune the trajectory later on when you're less than half-way there.