KSP KOS First Stage Landing Script

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • My take on first stage landing script written in KOS.
    FALL GitHub page:
    github.com/smo...
    Docs:
    smoketeer.gith...
    Tutorials:
    smoketeer.gith...
    Unedited footage: • RAW FOOTAGE KSP KOS Fi...
    ---[ GENERAL ] -----------------------------------------------------------------------
    Video shows implementation of the script, some bloopers and successful test mission along with some plots describing flight characteristics.
    Implementation section shows main "classes"(or rather associative arrays in form of lexicons, pretending to be classes, hence the quotes). They were later utilized in rocket specific boot script.
    Please excuse some obvious syntax errors. They've been fixed later on during troubleshooting and tuning.
    ---[ WHY ARE YOU USING TRAJECTORIES MOD? ] -----------------
    I've tried calculating impact position within KOS, but numerical methods have proven to be either too slow or not accurate enough. Fortunately smart people implemented this mod and KOS supports it.
    ---[ WHY KOS and not KRPC? ] -----------------
    I was starving for something new. KRPC is an awesome framework, because it lets you use popular languages, but at the same time it was kind of a drawback for me personally. I've programmed in plenty of languages(Python, C++, Java etc.) throughout my life and finally got bored with them.
    ---[ MODS USED ] ---------------------------------------------------------------------
    Vital mods:
    (!) kOS
    (!) kOSforAll
    (!) Trajectories
    QoL:
    AVP-2kTextures
    AstronomersVisualPack
    EnvironmentalVisualEnhancements
    HullcamVDSContinued
    ReStock
    Scatterer-config
    ModuleManager
    TextureReplacer
    MechJeb2
    Scatterer-sunflare
    ProceduralParts
    BasicProceduralTextures
    TweakScale
    SpaceXLegs
    ModularFlightIntegrator
    Scatterer
    ModularLaunchPads
    CameraTools

КОМЕНТАРІ • 78

  • @danotake2623
    @danotake2623 4 роки тому +243

    No one will really realize how amazing this is without playing the game.

  • @ahmeduygun7320
    @ahmeduygun7320 5 років тому +195

    what you did here is technically impressive but I liked your video editing even more

  • @filofradi5125
    @filofradi5125 3 роки тому +28

    2:20 How did you do those gorgeous graphics?!!

    • @Quentin-le8qy
      @Quentin-le8qy 3 роки тому +2

      The clouds are from EVE and Scatterer, the rocket parts are from kerbal reusability expansion and Procedural parts and the launchpad is from modular launchpad :)

    • @RollercoasterJosh
      @RollercoasterJosh 3 роки тому +3

      @@Quentin-le8qy Think they mean the stats ect.

    • @Alessandro_Klettenberg
      @Alessandro_Klettenberg 3 роки тому +5

      @@RollercoasterJosh Kerbal Telemetry for the stats. ;)

    • @filofradi5125
      @filofradi5125 3 роки тому +1

      @@RollercoasterJosh Yes, I meant this.

  • @mastershooter64
    @mastershooter64 4 роки тому +22

    Dude this was awesome!! I would love to see you recreate the curiosity mission fully autonomous, from launch to landing and driving around on mars (just like they did) it'd be even more awesome!!!

  • @pooounderscoreman
    @pooounderscoreman 5 років тому +15

    So accurate! I'd love to see a starshipesque version.

    • @smoke2060
      @smoke2060  5 років тому +11

      Currently I'm working on New Glenn style rocket mission. After that I will consider making a BFR style mission.

    • @pooounderscoreman
      @pooounderscoreman 5 років тому

      @@smoke2060 that sounds great. Quite unique to do New Glenn stuff these days IMO.

  • @downey2294
    @downey2294 3 роки тому +1

    very interesting on how you use functions as a class.
    i will give this a try.

  • @paulsayman3069
    @paulsayman3069 4 роки тому +2

    I've just watched this and I feel motivated! Man now i can compare my code to you for correcting my errors! You earned a new sub!

  • @thinkingai6017
    @thinkingai6017 5 років тому +17

    Amazing.

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

    the accuracy 👌👌

  • @donb1397
    @donb1397 4 роки тому +1

    This is the good stuff. Thank you for sharing your excellent skill.

  • @matvey2031
    @matvey2031 5 років тому +10

    Deserves more views

  • @Anubis23michael
    @Anubis23michael 4 роки тому +1

    This is incredible! good job!

  • @BluBrinsmp4
    @BluBrinsmp4 3 роки тому +1

    who did you study with? And who do you work in reality

  • @connorjohnson6738
    @connorjohnson6738 3 роки тому +4

    This is amazing!
    Wished I had seen this sooner!
    Hope you do good man.

  • @kerbonerd8943
    @kerbonerd8943 5 років тому +5

    Impressive! KerboNerd approves!

  • @Youshisu
    @Youshisu 9 місяців тому

    Hello guy from future, why time on graph goes backaward? :D

  • @jackzeng7096
    @jackzeng7096 4 роки тому +3

    Thank you so much!
    Now I can compare and see what I did wrong with my code and make it work for all rockets

  • @kineticstishi
    @kineticstishi 4 роки тому +1

    I can't believe I have to learn a programming language just for a game.... but I'm up to the challenge

  • @olihead7888
    @olihead7888 4 роки тому +1

    Hi there, great video I was wondering if you could teach me how to use this and the commands to run it inside of KOS as I am rather confused and I have also been on your website.
    Many thanks
    Oli

  • @tahvohck
    @tahvohck 3 роки тому

    What editor are you using here? Looks like something with github integration? It's not VSCode somehow, is it?
    Edit: That hoverslam, goddamn. And thanks for introducing me to Trajectories, I've been meaning to write a lander script for a while and calculating impact points was just... NOT something I wanted to do. Though it looks like now I can just grab FALL. :D

  • @Pathologist_S.Aureus
    @Pathologist_S.Aureus Рік тому

    how do you view the launch data?

  • @mirage3rd
    @mirage3rd 3 роки тому

    Ok. That’s GOOD!

  • @juliocamacho8354
    @juliocamacho8354 2 роки тому

    I hope you land a job at Space X!

  • @ChristianReiner-tx4tl
    @ChristianReiner-tx4tl 10 місяців тому

    How to hoverslamodel

  • @viacheslavshtaferun4291
    @viacheslavshtaferun4291 3 роки тому

    please add entry burn

  • @cagricibuk
    @cagricibuk 2 роки тому

    good work keep it up

  • @yess8477
    @yess8477 10 місяців тому

    that was amazing

  • @ashara2003
    @ashara2003 5 років тому +2

    Best KSP video ever seen.

  • @ni7suj
    @ni7suj 3 роки тому

    Wow

  • @dgamezonu2693
    @dgamezonu2693 3 роки тому

    Did you find the switch and set SCE to AUX? Great video.

  • @rybaxs
    @rybaxs 3 роки тому

    crazy genius.. Elon Musk will hire you for sure.

  • @antonybronco4463
    @antonybronco4463 4 роки тому

    i have tried the tutorial codes from FALL page, but starting from code number 2 (and eventually, even the first tutorial's code) the small hopper (once arrived at the max altitude), instead of pointing retrograde, always flipped kind of horizontall-ish (also pointing down) and *tried* to adjust the trajectory.
    Eventually, once close to the ground, it turned on the engine and flipped back up, and then back down, and finally crash into the ground
    I still haven't managed to figure out what the actual cause of this problem is (wether it is related to physics, code or a non properly updated mod), but I'd be really glad if someone could help me.
    Also notice I suck at coding, so 30% of the code is basically foreign language to me.

  • @Metal73Mike
    @Metal73Mike 4 роки тому +1

    The debug part killed me XD XD

  • @MathsPlans
    @MathsPlans 3 роки тому +1

    genius

  • @marksh1613
    @marksh1613 3 роки тому +1

    Awesome vid, What music did you use? Also how did you add the graths?

    • @Airknightangel
      @Airknightangel 3 роки тому +1

      Well im guessing he did something like logging flight data from kos > plotted the graphs with matlab plots > embedded them into custom made html (for real time update) > stitched everything together on montage. (I might be wrong, but I think its close enough)

  • @warlordg-productions7934
    @warlordg-productions7934 3 роки тому

    So my question is. how do I implement your code? Is it saved as .ks files? and how do I activate it ingame?

  • @radudamian6908
    @radudamian6908 4 роки тому

    What mod did you use for that flight profile?

  • @lotusedelmann4030
    @lotusedelmann4030 5 років тому +1

    You are good

  • @_KillerD_
    @_KillerD_ 4 роки тому +1

    }
    if (about to crash) > NO

  • @boofysmoofy
    @boofysmoofy 4 роки тому

    what text editor/ide are you using here?

  • @pcy113
    @pcy113 3 роки тому

    WoW good job !!

  • @yefrosynii
    @yefrosynii 4 роки тому

    Unbelievable!

  • @Airknightangel
    @Airknightangel 3 роки тому

    This is amazing!

  • @aremok7489
    @aremok7489 5 років тому

    Very nice! Good job!

  • @thechargedone169
    @thechargedone169 4 роки тому

    Amazing job

  • @SentinelAerospaceOfficial
    @SentinelAerospaceOfficial 3 роки тому

    Imma stick with simplerockets 2

  • @Saribin744
    @Saribin744 5 років тому

    Its beautiful

  • @radsy5821
    @radsy5821 5 років тому

    Amazing. Checking out FALL now. What did you use for the inflight graphs?

    • @smoke2060
      @smoke2060  5 років тому +2

      Thank you! Graphs are made with Pyplot.

    • @kayboku7281
      @kayboku7281 4 роки тому

      @@smoke2060 i was about to ask the same question! cheers! nice video!

  • @aaravp2248
    @aaravp2248 4 роки тому

    Can please someone tell me where can I get that graphs which are showing in video, that altitude, trajectory and all that

  • @ЙцукенПетрович

    Do kos scripts run in the background? E.g. can I program a self returning booster, stage it off and continue flying with the top stages, while the booster guides itself back to the space station?

    • @smoke2060
      @smoke2060  Рік тому

      Unfortunately it's not possible, or at least it wasn't when I've still used it(couple of years ago).

    • @ЙцукенПетрович
      @ЙцукенПетрович Рік тому

      @@smoke2060 Unfortunate indeed. Fine, I'll try to learn some C# and Unity until I find time to mess with KSP2. Judging by what the devs have said, off screen simulation and automation should be supported.

  • @Wilge_Zomer
    @Wilge_Zomer 5 років тому

    Does this happen all at the Same time or do you do them seperatly?

    • @smoke2060
      @smoke2060  5 років тому +2

      If you're asking bout cameras then yes, each camera was a different shot, so it basically took 3-4 launches to record the whole thing. The mission itself is being executed with no interruption. Unedited footage is available here: bit.ly/30AWnEv.

  • @spacy1387
    @spacy1387 3 роки тому

    Elon Musk wants to hire you

  • @hans_____
    @hans_____ 5 років тому

    Waow.

  • @tkstudiox
    @tkstudiox 3 роки тому

    Space x must hire you

  • @yassm
    @yassm 4 роки тому

    How did you creat the graphs?

    • @arikatz9219
      @arikatz9219 3 роки тому +1

      mechjeb allows you to export .csv files of pretty much all telemetry

    • @yassm
      @yassm Рік тому

      ​@@arikatz9219Thank you, 2 years later

  • @crackgrid1395
    @crackgrid1395 4 роки тому

    What did you use to Code the Script?

  • @canaDavid1
    @canaDavid1 5 років тому

    What mod to scale the fuel tank like that?

    • @smoke2060
      @smoke2060  5 років тому

      David Eikeland Fuel tanks come from Procedural Parts mod

    • @canaDavid1
      @canaDavid1 5 років тому

      @@smoke2060 thank you!

    • @canaDavid1
      @canaDavid1 5 років тому

      @@smoke2060 btw it was 0:58 i was thinking about

  • @KrafiCZOfficial
    @KrafiCZOfficial 4 роки тому

    Music?