Basic Automation w/ kOS | Mike Plays RP-1 #6 | KERBAL SPACE PROGRAM

Поділитися
Вставка
  • Опубліковано 3 лип 2024
  • A basic tutorial on using Kerbal Operating System to automate flights in KSP. Along the way, I recover my first rocket from space.
    Contract Completed:
    ► Reach a Suborbital Trajectory & Return
    🔔 Subscribe -► ua-cam.com/users/MikeAben?sub...
    ❤️ Patreon -► / mikeaben
    ❤️ Join as a UA-cam Member-► / @mikeaben
    Patreon and Member supporters receive early, ad-free, access to videos, and more.
    🚀 Discord -► / discord
    🚀 RP-1 Playlist -► • Mike Play's RP-1
    🚀 kOS - The Basics -► • [EN] kOS - The Basics
    🚀 kOS Documentation -► ksp-kos.github.io/KOS/
    🚀 kOS For Newbies -► • kOS for Newbies
    🚀 My kOS GitHub -► github.com/MikeAben64/kOS-Scr...
    KSP 1.12.3
    Complete List of Mods:
    RP-1 2.8 (use express install on CKAN):
    ► Advanced Jet Engine
    ► AlphaMensae's Modular Launch Pads
    ► AtmosphereAutopilot
    ► B9 Aerospace Procedural Wings
    ► CanaveralPads
    ► Chatterer Extended
    ► Conformal Decals
    ► Contract Configurator
    ► Custom Barn Kit
    ► Custom Pre Launch Checks
    ► Distant Object Enhancements
    ► Editor Extensions Redux
    ► Environmental Visual Enhancements Redux
    ► Ferram Aerospace Research Continued
    ► Firespitter
    ► Hangar Extender
    ► Kerbal Alarm Clock
    ► Kerbal Joint Reinforcement Continued
    ► Kerbal Konstructs
    ► Kerbal Renamer
    ► Kerbalism
    ► Kopernicus Planetary Systems Modifier
    ► KSC Switcher
    ► KSP Community Fixes
    ► KSP Wheel
    ► Lunar Transfer Planner
    ► MechJeb 2
    ► ModularFlightIntegrator
    ► ModuleDepthMask
    ► Parallax
    ► PlanetShine
    ► Procedural Fairings
    ► Procedural Parts
    ► RCS Build Aid
    ► Real Antennas
    ► Real Fuels
    ► Real Plume
    ► Real Solar System
    ► RealChute Parachute Systems
    ► RealHeat
    ► Realism Overhaul
    ► Restock
    ► Restock+
    ► RO Capsules
    ► RO Engines
    ► RO Heatshields
    ► RO Solar
    ► RO Tanks
    ► RSS CanaveralHD
    ► RSS Date Time Formatter
    ► RSS Visual Enhancements
    ► Scatterer
    ► Shabby
    ► Smokescreen
    ► Staged Animation
    ► SXTContinued
    ► Test Flight
    ► TextureReplacer
    ► Textures Unlimited
    ► Toolbar Controller
    ► Transfer Window Planner
    ► Tundra's Space Center
    ► TweakScale Redistributable
    ► Ven's New Parts
    ► Waterfall
    Additional Mods:
    ► Camera Tools Continued
    ► Contracts Window +
    ► kOS: Scriptable Autopilot System
    ► Minimum Ambient Lighting Updated
    ► Navball Docking Alignment Indicator
    ► Smart Parts
    ► Waypoint Manager
    0:00 - Introduction
    0:34 - Contract & Engineer Efficiency
    2:42 - Closer Look at the Tiny Tim Booster
    5:05 - Adding Parachutes
    7:05 - Using the kOS Terminal
    9:51 - Writing a Simple kOS Program
    15:59 - Using WAIT UNTIL
    19:30 - Other Builds
    21:21 - Boot Files
    24:55 - The Final Program
    29:39 - Flying the Mission
  • Ігри

КОМЕНТАРІ • 40

  • @MikeAben
    @MikeAben  6 місяців тому

    Up Next: X1 Rocket Plane - ua-cam.com/video/SIG5ahwINrA/v-deo.htmlsi=AGqb3GJU4HsSbuVU

  • @villager5633
    @villager5633 7 місяців тому +17

    Love the RP-1 vids

    • @MikeAben
      @MikeAben  7 місяців тому +5

      I love making them.

    • @theenceladuschannelcool5777
      @theenceladuschannelcool5777 7 місяців тому +2

      ​@MikeAben that's nice to know. It wouldn't be good if you didn't like them.

  • @mike14991498
    @mike14991498 7 місяців тому +11

    The double staging issue is likely due to Smart parts doing the staging for you, the game doesn't register it properly so the next time you stage it's just empty.

    • @MikeAben
      @MikeAben  7 місяців тому +7

      That makes sense. I do love my Smart Parts. Come to think of it, I think it may also happen when I stage through and action group rather than hitting the spacebar, another thing I often do.

    • @LunarMartin
      @LunarMartin 7 місяців тому +4

      @@MikeAbenhey mike! Yeah you can press space an extra time after using smart parts to stage. Also when using multiple smart parts that use staging. You can make the smart parts also trigger action groups which prevents this issue

    • @johansten7976
      @johansten7976 7 місяців тому +2

      ​@@MikeAben I've run into double staging as well and now that I see this, I realize that I think those moments have always been when I had a staged fairing that I had deployed "prematurely", either by action group or part window! Thanks both Mikes!

    • @josephmatthews7698
      @josephmatthews7698 4 місяці тому

      Good thinking but I don't think that's it. I play pure vanilla KSP and it still happens to me sometimes.
      Where outta nowhere space bar does nothing or makes a sound but doesn't actually go to the next stage.

    • @mike14991498
      @mike14991498 4 місяці тому +1

      @@josephmatthews7698 It's not just Smart parts, it's anything that does the action for you without actually staging. In stock that could be action groups or manually running things - for example you have a stage that will activate an engine, if you activate the engine manually by right-clicking on it and clicking the button, the engine fires but the stage is not triggered. Next time you press space it will trigger the stage, but the engine in that stage is already firing because you activated it manually so the staging does nothing and you have to press space again to go to the next stage.

  • @emmettraymond8058
    @emmettraymond8058 5 місяців тому

    Loved the automation interlude, and liking this series so far!

  • @Upuauta
    @Upuauta 7 місяців тому +2

    I really like this series especially with your detailed commentary! Please more. ;-)

    • @MikeAben
      @MikeAben  7 місяців тому

      More to come!

  • @coffeeAddict74
    @coffeeAddict74 7 місяців тому +1

    Another great episode !
    As usual , there is so much to unpack here. I didn’t realize there was such a thing as KOS, but this certainly transforms the game.
    One of the things I like about these is, though I don’t plan to use this particular RP-1, we’re learning about other tools and these videos at short enough to digest over the course of my morning or afternoon commutes.

  • @Fadamor
    @Fadamor 15 днів тому

    25:45 There apparently is a kOS keyword that can check to make sure the next stage is ready to trigger:
    wait until stage:ready.
    So you could do something like,
    stage.
    wait until stage:ready.
    stage.
    30:48 I learned all I know about kOS (including that code snippet just above) from CheersKevin. His videos are an excellent tutorial for how to code in kOS - taking you through an automated launch, orbit, transfer to the Mun, and "hoverslam" on the surface of the Mun. I'm not sure how much of it can port over to the RO mod, but it will give enough of a head start to be able to make any changes necessary on your own.

    • @MikeAben
      @MikeAben  15 днів тому

      Cool, thanks. I'll have to look into that. Yeah, CheersKevin is great.

  • @nickmyers3065
    @nickmyers3065 4 місяці тому +1

    This game is so much cooler with the KOS mod lol. I just made my own v2 rocket and I didn't make it the same. put a fairing around my nose that covered my camera. I found the altitude trigger command and set it for 40 k:P...
    I WAS SO happy when I actually got a script to automize the whole process.....
    Thank you for your content. and thank you for making me love this game again.
    Also the "lettuce dressing" is much cooler. I added stuff everywhere :P Its soo fun to see the game talk back to you. I am definitely Roleplaying more for immersion :P

  • @charlesballard5251
    @charlesballard5251 7 місяців тому

    FUN!!!! Thanks, Mike!!!

  • @uebern8191
    @uebern8191 7 місяців тому +2

    I always watch your RP-1 videos, install RP-1, follow your videos through and get a little bit further on my own, and then uninstall it because I'm stuck and don't have any tutorials left to watch from you. The next RP-1 you upload, I want to play it again and repeat the cycle. Great vids btw!

    • @uebern8191
      @uebern8191 7 місяців тому +2

      Also, trying to get into coding anyways so kOS is a nice way to get started

    • @MikeAben
      @MikeAben  7 місяців тому +1

      Cool.

    • @MikeAben
      @MikeAben  7 місяців тому +2

      Thanks. For me it's about 1 hour playing to 5 hours editing. Makes it hard to keep a good pace up.

  • @joshrivkind4809
    @joshrivkind4809 5 місяців тому

    pound can be either a measurement of mass or force, so lbf means it is being used as a measurement of force in this case

  • @celtican1622
    @celtican1622 6 місяців тому

    I had no idea Kerbal had a programming mod. I know what programming language I'm using for Advent of Code next year!

  • @MrBobtheruler
    @MrBobtheruler 7 місяців тому +1

    I would to see Mike go to laythe

    • @MikeAben
      @MikeAben  7 місяців тому +2

      No Laythe. Gotta settle for Europa.

  • @user-ps3vf3ij2i
    @user-ps3vf3ij2i 6 місяців тому

    Thankyou for the effort you put into these videos, I picked up RP-1 today and tried to follow along.
    Its interesting that you're managing to launch as frequently as you are without failures. I'm thinking they must have tweaked some of the numbers recently in the latest version of RP-1 to make this more real to life? The only way I seem to get these to light reliably is to do it on the ground at the same time as the solid booster and clamp release.
    I ended up setting up a script that would detect when the thrust of the solid booster dipped below the max thrust of the aerobee and had it hot-stage so that it worked well with any variation of booster or aerobee. But I was getting an ignition failure penalty of 30-50% from the excessive dynamic pressure of the initial kick from the booster. The script is still useful for the decouple timing but I'm definitely not getting as high now.

    • @MikeAben
      @MikeAben  6 місяців тому

      Another commenter mentioned that I should fire the Aerobee with the SRB at launch for exactly the reason you stated, but I'm not seeing those failure rates. I'm not sure why. This series starts with RP-1 version 2.8 and later moves to 3.2. All settings are on the defaults.

    • @MikeAben
      @MikeAben  6 місяців тому

      Another commenter mentioned that I should fire the Aerobee with the SRB at launch for exactly the reason you stated, but I'm not seeing those failure rates. I'm not sure why. This series starts with RP-1 version 2.8 and later moves to 3.2. All settings are on the defaults.

    • @user-ps3vf3ij2i
      @user-ps3vf3ij2i 6 місяців тому

      ​@@MikeAben I've done some pretty extensive testing over the past few hours, it was really bugging me! Even firing them together gave me a 5-10% ignition chance penalty every 2nd or 3rd launch randomly. I have a slow computer, so my theory is that the inconsistency could be my machine failing to keep up with the physics.
      I wanted to see if I could get it as reliable as it could be, and eventually I completely solved it by activating the aerobee with kos earlier than the booster by its spool up time of 0.06s to 0.16s (depending on the variant).
      The short story is that It doesn't ignite until after the spool up time. and the booster can still impart a significant enough force within that time to have a negative effect. After adding that small delay, the "Last Restart" chance under "TestFlightDebug" on the aerobee has reported 100% for the past few dozen launches 👍

  • @ruslanuakbal8668
    @ruslanuakbal8668 7 місяців тому

    Cool, is it necessary to use kOS with RP1 or it works in the vanilla version too?

    • @MikeAben
      @MikeAben  7 місяців тому +1

      kOS works just as well in vanilla. It isn't an RP-1 thing.

  • @ojgfhuebsrnvn2781
    @ojgfhuebsrnvn2781 2 місяці тому

    I just have to ask. What mods are you using that your aerobee looks different (in fact everyone has this version of it but i have just simple cone shaped turbine) ?
    Also. Finally i see how to use koc. Its window annoying me but i never bothered to use it.

    • @MikeAben
      @MikeAben  2 місяці тому +1

      It's just the Express RP-1 install.

    • @ojgfhuebsrnvn2781
      @ojgfhuebsrnvn2781 2 місяці тому

      @@MikeAben Thanks, i completely missed that as by default express is not shown as compatible with 1.12.5. and just installed mods listed as dependent and recommended.

    • @MikeAben
      @MikeAben  2 місяці тому

      @@ojgfhuebsrnvn2781 You want to install it with KSP 1.12.3. That's the version used in this game.

  • @nxthingbutv0id958
    @nxthingbutv0id958 5 місяців тому

    Why use kOS when kRPC does the same but with programming languages people actually use

    • @MikeAben
      @MikeAben  5 місяців тому

      Sorry. Love kOS. You're not going to get me to change.

    • @nxthingbutv0id958
      @nxthingbutv0id958 5 місяців тому

      @@MikeAben ;-;

  • @sdaniels1288
    @sdaniels1288 7 місяців тому

    3:05 lbf is pound-force. A force unit roughly equivalent to 4.45 newtons. It’s the amount of force which is exerted on a mass weighing 1 lb under 1 g.
    For reference: en.wikipedia.org/wiki/Pound_(force)