Jump to content

Tompete Kerman

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by Tompete Kerman

  1. I was working on one, gonna pick it up again sometime soon and try to get more community help on it. I was looking into using some code ideas from Deep Freeze to delete/transfer the crew member, but I ran into sort of a The Prestige problem where all I was really able to do was imperfectly clone crew members to two ships
  2. So I've made a fairly simple Bell-style small helicopter replica, and while I can get it up in the air by manually setting the torque limit to 10, the tail rotor limit to the same, and using throttle to control the blade deploy pitch, I'm somewhat at a loss on how to make the main and tail rotors synchronize or rotate/pitch at the proper relative speed/angle to keep it level and straight mid flight. Does anyone have a succinct tutorial on this subject? Example craft to show? EDIT: Good news, got the main rotor all but figured out, bad news: still cant get the tail rotor to correct rotation. Can anyone help with that?
  3. I'm wondering if anyone has any experience or ideas on how one would go about adding air/ether to the interplanetary zones of the Kerbol system? Would it be best handled by altering the "atmosphere" of Kerbol? I know this wont effect the celestial mechanics of the planets, I merely want to modify my game in order to try some spelljammer-type shenanigans. EDIT: I had a thought, about placing an empty pseudoplanet inside Kerbol using Kopernicus, and giving IT an atmosphere that extends out beyond the furthest planets. Anyone with experience in that mod know if that's a viable option?
  4. I'm trying to get my new Saitek/Logitech 3-throttle device to work properly, but when I'm trying to use it to control thrust or brake limits, I'm having an issue where the throttle will accurately display 0-25, jump to 50, then jump to 75 and proceed normally through to 100. I've tried poking around in the Logitech Driver software that comes with the Quadrant, and I've tried messing with the settings in KSP, all to no avail. I've also double checked in the USB Controller Configuration thing in Windows, and all throttles smoothly display 0-100. Has anyone encountered similar, or have any advice?
  5. I suppose that would make sense, I'll have to finagle with it a bit when I'm back at my workstation. In the meantime, any more insight from anyone is greatly encouraged.
  6. That would explain a lot of my confusion and frustration. As for the variables you mentioned, I can logically suss out what GetObtVelocity() would get me, but velocityD isn't as well described. Can you help pre-enlighten me as to what it is before I experiment with it?
  7. Turns out the solution was to actually run everything in FixedUpdate in stead of overriding onFixedUpdate, and to drop any reference to rigidbody, like so: p.AddForce(-gee * p.mass)
  8. So, I'm trying to develop a sci-fi inspired "Inertial Brake" mod, that will ideally find the current vessels prograde vector, and it's speed, and then "magically" apply a PID-controlled counterforce/resistance to the craft to slow it to a set speed. My issue is figuring out exactly which of the vaguely defined variables in the vessel API is what I'm looking for. So far the most likely candidates are srf_Velocity, srfRelRotation, and srfSpeed. If anyone has any insight/experience with these, or has an idea on how to find these variables, I'd greatly appreciate the guidance.
  9. I'm trying to canabalize flywlyx's GN Drive Mod to re-create an Anti-Grav mod I made a few years ago, but I think there's been a Unity update since then that's messed with what works. The issue I'm having it with it is related to this code: foreach (Part p in this.vessel.parts) { if ((p.physicalSignificance == Part.PhysicalSignificance.FULL) && (p.rigidbody != null)) { p.rigidbody.AddForce(-gee * p.rigidbody.mass); } } It's telling me that there is no lowercase "rigidbody" in Parts, but trying uppercase Rigidbody, RigidBodyPart, or rb all don't have the desired effect. I even tried downloading the original GN drive mod to see if that's broken, but that works fine. Can anyone sleuth out what I'm doing wrong? I'm running Visual Studio 2017, Framework set to 3.5, and the class I'm building has inherited from PartModule.
  10. So if I'm trying to get the gravitational acceleration pulling me downwards, I'd need to get the vector3 of that and isolate the proper axis?
  11. I'm attempting to find a way to read the surface gravity of the body I'm orbiting. The API reference says that the GeeASL of Kerbin should be 9.81, but when I read it at the launchpad or in orbit around Kerbin, it reads as "1.00034160493135" Should I just multiply the result by ~9.8, or is there a more accurate method of getting the number I need?
  12. Good news: Managed to figure out how to into EVA Bad news: Turns out my sending range is the ~2km load range. So I guess now what I need is a way to load a target area, then send my kerbal there, ala Hyperedit?
  13. I'm making a transporter mod, and I've hit a hiccup in trying to spawn a vessel from nothingness. Now, I've looked a bit into how things like VesselMover and ExtraplanetaryLaunchpads do this, but both of those rely on building from a saved craft in the VAB/SPH. What I'm trying to do is spawn a single-part vessel (currently I'm trying to use the mk1LanderPod as a placeholder) at a given location, so that I can then EVA the kerbal and delete the vessel. The thing is, I've no real clue how to go about this, I'm guessing I need to make a ShipConstruct for my destination-ship, a ConfigNode to use as it's spawning-root, use ".add(Part p)" to add the lander pod to the empty construct, then send the craft to where I want it to be. Problem is, I've no clue how to point .addPart(Part p) towards a part that's not actively on my vessel already. Does anyone out there have the expertise to help me break the laws of conservation of mass and energy?
  14. I actually contacted AndyMt, and consulted with him about how his GravityTurn mod is able to access Mechjeb in order to circularize, and while I think that's managed to get me the mechjebcore I need, I cant seem to access it's variables. Neither GetField or GetValue seem to be working for me.
  15. I'm working on a transporter room mod, and while I can beam someone from the world into my modified Mk1 Lander Can testing pod, their portrait won't register until I switch off the vessel and back. I've tried setting the Kerbal in question's state to Alive, turning their SetVisibleInPortrait to true, using the SpawnPortrait, StartReset, Awake, and Update functions of KerbalPortraitGallery, all to no avail. I have a listener KSPField for whoever's occupying the pod, and it'll register the Kerbal as in the pod, so I know that the Kerbal has made it into the part.protoModuleCrew[0] slot, for what it's worth. I know that *something* must be happening when the vessel switches back and forth that causes the KerbalPortraitGallery to repopulate, but for the life of me I can't seem to figure out what it is, or how to activate/call it after a teleportation. Does anyone with a better knowledge of how the KerbalPortraitGallery operates, or what all occurs on switching to a vessel, be willing to explain to me where I need to do what and how to make this "do"?
  16. So, I'm trying to find out how I can have my mod check to see if a MechJeb box is installed on the vessel that my mod is running on, and then access it's MechJebCore so I can utilize the surface coordinates of the landing sub-module. The issue is that after two days of trying, first by just winging it, second by studying GravityTurn's MechJebWrapper, I've came up with nothing. Is there anyone on here who can give me a rundown on how to check and access one module from another, separate one? I've already tried making a few foreach loops to parse my parts for the module, but that doesn't seem to be returning anything.
  17. Hey ebrybody, I was wondering if anyone could help enlighten me as to how to go about being able to select/set a location on a body you're orbiting, akin to how MechJeb handles it's landing autopilot. I guess the crux of the issue I'm having is that I don't understand how to translate the cursors position on the screen into a position on a planet in the game? Maybe if I explain what I've got planned, it might spur someone to comment. My goal is to make a Star-Trek-esque Transporter system, for close-range inter-craft crew/resource transfers without docking, but also to be able to beam people down and up from a planets surface to a ship waiting overhead in orbit. I've got a few ideas on how to potentially handle a lot of the tricks involved in that, except for setting a target on the planets surface. I could, in theory, just make a part that's a "Transporter Beacon" or make a 1.25m "Transporter Pod" but I kind of like the idea and challenge of making it so that I can put Kerbals down anywhere and pick them up anywhere. I'm considering making two variants of the system, as well. One would work as long as the kerbal and the craft have line of sight and are within a certain distance, yet would be larger, heavier, and potentially take more time to transfer, while the other would be a smaller "directional" model that would use a system akin to ScanSat in order to project a cone down to it's orbiting body, and would only be able to beam up/down from within that cone. That could be useful to build a small "orbital collector" satellite that passes over automated mining platforms and beams up the ore so that a vessel can come by and pick it up without having to descend into orbit. But anyways, enough about what I plan to do with it, if anyone can point me in the right direction on how to get to the bottom of this, I'd be extremely grateful.
  18. I'm wondering if anyone can give me a brief rundown on how mods like MechJeb's landing autopilot are able to let the player select and mark a spot on a planet's surface from orbit? I've done a bit of poking around in the MJ source .cs files, but didn't manage to find anything. (Apologies if this is in the wrong spot, I thought I was in the Plugin forum)
  19. - (Don't Drink and Code, Kids)
  20. Thank you as well, Warez. It seems at this point that I've all but replaced the stock engine configs with a Frankensteinian amalgamation of three different config mods, the learning curve to master all three of them might be somewhat steep, but it'll be worth it to get to blast Tank! by the Seatbelts while doing an aileron roll just before leaving atmo.
  21. Thank you. To let you in on what I'm doing a bit, I'm trying to make a semi-realistic recreation of the engine that Spike Spiegel's personal fighter craft, the Swordfish 2, uses. It's described as a "Rolls-Royce Axial Fusion Aerospike Turbine" engine, so what I'm basically designing it to be is a dual-mode engine with an air-breathing mode that functions similarly to an Indirect Air Cycle Thermonuclear Jet Engine (which will consume no fuel ala the Mk2 Rontgen), and a "closed cycle" mode that engages a hypothetical Solid Core Nuclear Aerospike Rocket that will only need to consume LiquidFuel.
  22. I'm trying to make a multi-mode engine, and what I'd like it to be able to do is switch between the thrust animation that comes with the part I'm fiddling with, and the thrust animation from the Aerospike rocket. The issue I'm running into is that it seems that the animation in question is forever locked within the parts .mu file, and importing it into Blender hasn't let me extract it. Is there any way for me to access this animation in "in post" so to speak, or am I going to need to essentially model/animate/texture my own engine from scratch in order to get the kinda thrust patterns I'd like?
  23. I'm working on writing a plugin, but I can't for the life of me figure out how I'd be able to check if any of the action groups are active. If it helps, I'm trying to write a for loop in FixedUpdate that will, ideally, run some stuff when my craft is at 50m off the terrain, and when the brake action group is on. I'd imagine it'd be something in KSPActionGroups.Brakes, but to paraphrase the priest from Firefly, "I ain't found excrements".
×
×
  • Create New...