kOS Tutorial 01 - Launching a Rocket

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • This video is an introduction to programing for the kOS mod for Kerbal Space Program and details how to make an intermediate level launch program. The next video will feature a landing program using a simple "suicide burn". Please let me know if this video was helpful to you by leaving a comment!
    Download the exmple code here: gist.github.co...
    kOS Release and Download Thread: forum.kerbalspa...
    Official kOS documentation: ksp-kos.github....
    Official kOS Quick Start Tutorial: ksp-kos.github....
    The music used in this video was created by Kevin MacLeod under a CCbyA license and can be downloaded from the following links:
    -- "Slow Burn": freemusicarchiv...
    -- "Pilot Error": incompetech.com...

Комментарии • 73

  • @falafeldurum2095
    @falafeldurum2095 5 лет назад +1

    DUDE
    nice music amazing tutorial AMAZING *SCRIPT* amazing VIDEO
    you saved my KSP career! Thankfully I didn't get fired!

  • @MyNameIsJeff-W
    @MyNameIsJeff-W 9 лет назад +67

    Gamers use mechjeb...scientists use kOS.

    • @sprsae9003
      @sprsae9003 8 лет назад +13

      Jeff W and lazy people use hyperedit

    • @justin60222
      @justin60222 7 лет назад +4

      and idiots fly manual and pray

    • @lelcetz7628
      @lelcetz7628 7 лет назад +5

      i fly manual because i know how to use the navball unlike you plebians with negative iq

    • @Todestelzer
      @Todestelzer 7 лет назад +4

      fly manual isnt hard to do. But using KOS to programm a whole mission isnt easy at all and very interesting.

    • @viacheslavshtaferun4291
      @viacheslavshtaferun4291 4 года назад +1

      @@lelcetz7628 If u want to use kos, u need to know how to dly manual.

  • @TheAntiCyber
    @TheAntiCyber 10 лет назад +13

    So, I tried kOS once. It was horrific. The wiki made no sense and didnt explain anything. As I was saying the chat, I wanted to pick up kOS after the project as I see this mod an amazing project that can create many opportunities, and these tutorials are just what i was looking for. You made it simple, yet interesting. I have learned and comprehended more than I would spending an hour on the wiki. Thank you so much as I learned so much from this and can`t wait to start tinkering with the program. As for the video quality, 10/10. Its very obvious that you put effort in this. I can`t wait for the next episode, and you have earned a sub! Suggestion - How to get into specific orbits, such as inclination, as well as Hoffman (think i spelt it right) Transferring. Thank you once again!

  • @niteshmurti
    @niteshmurti 7 лет назад +1

    i downloaded kos mod yesterday and i'm trying to figure things out. i have seen a bunch of youtubers and downloaded their scripts but your script is by far the easiest to understand. your script is even more easy to understand than the official tutorial. i have very little programming experience. thanks for making this video! merry christmas!

    • @thomashalm8585
      @thomashalm8585 Год назад +1

      The tougher the script, the more you feel like a KSP God. Hope i brought back some good memories. Its been five years... bro. And we still playing like crazy.

  • @nicholaseugenebaker9253
    @nicholaseugenebaker9253 4 года назад

    dude! Five years ago you started something great. You should make more kos videos my man. KSP is going stronger than ever and i think they would be great.

  • @statters
    @statters 9 лет назад

    Whilst I agree the pacing was a little fast, you do have a clear speaking voice which I found easy to follow. I will give KOS a try, it looks really interesting. Thanks for the tutorials.

  • @spacex-fan8920
    @spacex-fan8920 5 лет назад +1

    you saved my career at SpaceK

  • @m1sz
    @m1sz 10 лет назад +16

    I was not expecting you to be that fast making the tutorial, and neither expected it to be so deep!, I think I learned a lot, but also, had to pause it several times in order to catch with what was written and what you were saying. I'd say, go a little bit slower, and try to explain even the simplest things. In the end, the first episodes must be really simple =). Anyway, after tinker a little bit with kOS myself, I think I got everything you explained. Little bit of problems with the TVAL variable, and how actually the program works about the loops. (Like for example, why it repeats some loops all the times, how can you type the "ship should be in orbit" bit, and appears before the standard data you put all the time, and in the end, a basic understanding of how the kOS reads the data and uses it!. I think I already asked for a lot, surely you will cover more things in future episodes. Thanks again, this tool is going to make KSP a LOT more interesting =)

    • @SethPersigehl
      @SethPersigehl  10 лет назад +3

      m1sz I'm glad it was useful for you and thank you for the feedback! I'll try to go a little more slowly for my next video :)

    • @littlesayonara3216
      @littlesayonara3216 7 лет назад

      Seth Persigehl just asking i can't do code at all but want to make a space x thing work I have the code but I don't know what folder to put it in and how to start it thx

  • @GuilhermeFurst
    @GuilhermeFurst 9 лет назад +6

    You gain extra points for being on linux ;)
    Though, the main loop constantly checking where in the sequence it is terribly inefficient as well.

  • @PHenri-dj3pu
    @PHenri-dj3pu 10 лет назад

    Very nice tutorial, thank you ! I will try to adapt this with Ferram because it doesn't accept normal gravity turns.

  • @playerguy2
    @playerguy2 9 лет назад

    a lot of trouble shooting, you're right!! but the "error at x line, y collum." helps a ton. and with notepad++, I just went to the line and fixed it. the biggest problem when trouble shooting (for me) is missing or extra curly braces (both when working in kerboscript and java) but your guide was awesome and helpfull. you've earned a sub, like and more watch time. :D
    -edit: my code seems to shut down the engines before runmode 3 and before time to stage and lets the craft fall down. I tried your code, same problem. everything else seems to work fine-.. fixed it, darn antenas. (remote tech was installed with kOS and volume 0 is the ksc.)

  • @dunbar9finger
    @dunbar9finger 10 лет назад

    If you'd like to have us add links to your tutorials to the kOS docs let us know and we'll try to put those links in future releases of the docs.

  • @mrmadd001
    @mrmadd001 4 года назад

    So I know this is a super old video now, but it's still working almost perfectly. My issue starts when my craft reaches the desired AP, the system recognises the apoapsis has hit targetApoapsis, sets the runmode to 4, but doesn't actually switch to the scripts runmode 4 state, so no throttle down, no warp, and no circularisation, it just burns out till the AP hits Sol SOI. any ideas?

  • @FutureAIDev2015
    @FutureAIDev2015 5 лет назад

    Why do you use a state machine here, instead of just a sequence? Someone on StackExchange said that you’d really only need a state machine if you needed to jump to non-consecutive steps.

  • @kartoffelkuchenpotatocake6168
    @kartoffelkuchenpotatocake6168 10 лет назад

    Very cool, you've got a new subscriber! :) Very informative and interesting video.

  • @seanmignosa2392
    @seanmignosa2392 7 лет назад

    Awesome tutorial! Thank you very much!

  • @ctbram0627
    @ctbram0627 8 лет назад

    topic suggestions: PID loops - P loop, PI Loop, and PID loop examples.

  • @ashmd_
    @ashmd_ 3 года назад

    6:17 this is why we have launch escape towers

  • @Rabidrob98
    @Rabidrob98 10 лет назад

    Very interesting and useful, thanks!

  • @mcleanb981
    @mcleanb981 7 лет назад +4

    Seriously wish they would use something C based or something, I know how to do the math I just dont know the syntax D:

  • @dataexpunged3914
    @dataexpunged3914 4 года назад

    Is there a way to get the script working while not controlling the rocket

  • @TheGlock30owner
    @TheGlock30owner 10 лет назад

    Suggestion: evenly spacing multiple satellites in the same orbit altitude.

  • @EXPHunterForce
    @EXPHunterForce 10 лет назад +1

    Wow... you work fast! Thanks for the tut! Subbed!
    Edit: Amazing video. You might want to talk a bit slower. Especially since the videos are geared for beginners. Also, is there a way to make functions in kOS? That way you can call a specific one later instead of rewriting it again.

    • @SethPersigehl
      @SethPersigehl  10 лет назад +1

      EXPHunterForce Thank you! I'm trying to strike a balance between speed and lenght of video and figured a user could either read the closed captioning or playback the video more slowly using playback settings. Regarding functions, there is kind of a way to call functions in that you can call up other programs that (mostly) share variables globally. I'll be sure to cover that in one of my upcoming videos.

    • @EXPHunterForce
      @EXPHunterForce 10 лет назад

      You're right about having people read or go back if they need to review but at the speed you were going you about have to go back if you dont quite get something or zone out. Just slightly slower would be perfect imo.

  • @subscribetopewdiepie2928
    @subscribetopewdiepie2928 7 лет назад

    somehow i dont have a script file at the ships file do i need to make one? mod doesnt work i have the parts i cant do open terimnal or on the side of the screen i dont see any window of it help me someone

  • @logisticallogic8673
    @logisticallogic8673 9 лет назад

    Seth Persigehl Could you please make a link to the craft? It would be better to have both the craft and the program.

  • @luvivitor9919
    @luvivitor9919 9 лет назад +2

    hey nice tutorial
    but when I try to run this program it apears that it has a syntax error on line 6 but it is all spelled correct I thnk that this is a bug from the new KOS version but pls give it a look

    • @srseergi5271
      @srseergi5271 6 лет назад

      check the dots. they should be at the end of every action

  • @shiva_chirr
    @shiva_chirr 9 лет назад

    im right now trying to figure out the code for kso it is prety straight forward has alot of lua in it anyway im using you code to help me get things into orbit but the stageing nolonger fires anymore with the code

  • @el_p3nguin078
    @el_p3nguin078 6 лет назад +1

    Ok so basically my code doesnt throttle up at launch even when switching tval to throttle or stuff like that

  • @eamonkerney6291
    @eamonkerney6291 7 лет назад

    can i have 2 lines of code running at once so for example if i want to have 1 line telling me the altitude constantly can i still have the launch going?

  • @DoveWrestler
    @DoveWrestler 9 лет назад +3

    Is there a list of all .... inputs?.. you can ask kOS about KSP? for example, I had given up on using SHIP:PERIAPSIS for a while, before accidentally discovering SHIP:ORBIT:PERIAPSIS. Try as I might, I can't seem to find a list. I have ship:velocity:surface:mag from the tutorial, but I can't seem to get orbital speed to work. Is reading other people's code the only way? I watched this video to learn what altitude from surface was (ALT:RADAR).

  • @eamonkerney6291
    @eamonkerney6291 7 лет назад

    my Kos doesnt have the terminal on the side of the screen im in 1.3

  • @jinxshaddix
    @jinxshaddix 9 лет назад

    Hey, awesome tutorial. Thanks. Only issue i have is that my craft overuses the Gimbals on my engine. Any idea why?
    EDIT: After a few hours i believe its "normal" for the 'lock steering' to use any means necessary to keep the heading provided. And my craft is a bit wobbly so it must use the gimbals. =) aw well. lets modify into hard control then.

  • @Freeminecraft000
    @Freeminecraft000 9 лет назад +2

    when i type run First. it says that the file wasn't found, is there any fix?

    • @ArthurAllshire
      @ArthurAllshire 9 лет назад +2

      +Freeminecraft000 You are on the wrong volume- you need to type SWITCH TO 0. first and it will work. (Volume 0 is the ships folder, you can type LIST FILES. to list the current files)

  • @guard13007
    @guard13007 10 лет назад

    Suggestion: Plane guidance.

    • @SethPersigehl
      @SethPersigehl  10 лет назад +1

      ***** I intend to cover that, but that's one of the more advanced topics sot it might be a little while :)

    • @guard13007
      @guard13007 10 лет назад

      Awesome, can't wait to see it / whatever you come out with next. ^^

  • @rhutoric5527
    @rhutoric5527 9 лет назад

    I dont have a script section in my ksp files, so i have no idea how to launch/save these files

    • @FutureAIDev2015
      @FutureAIDev2015 8 лет назад +1

      Create a folder called "Script" under "Ships" in "KSP".

  • @davinator225
    @davinator225 7 лет назад

    thanks

  • @viacheslavshtaferun4291
    @viacheslavshtaferun4291 4 года назад

    Emmm.After first stage separation, second stage enginw dont started and kos continued to separate my stages.. Ahhhhhhhh, kos please stop to stage me 102 times every 3 secs, just lock throttle to 0, wait 3, stage ONE TIME and lock throttle to 1

  • @aaronholloway1991
    @aaronholloway1991 7 лет назад +1

    Mine doesn't work whatever code I put no matter how simple it is it says error line 1 error column 0 eof found apparently it doesn't understand the script when I put something like the hello script

    • @NordboDK
      @NordboDK 7 лет назад

      Aaron Holloway remember a period at the end.

  • @ericksantos12
    @ericksantos12 7 лет назад +1

    :/ the mod doesnt work anymore :/

  • @DanialADHOfficial
    @DanialADHOfficial 8 лет назад

    how to open

  • @infinity_eror
    @infinity_eror 4 года назад

    You script not work because you set throttle to 0 before launch.

  • @ofiokchakko2009
    @ofiokchakko2009 5 лет назад

    FIVE YEARS LATER

  • @threesixtydegreeorbits2047
    @threesixtydegreeorbits2047 9 лет назад

    >Gravityturn

  • @RamLaska
    @RamLaska 7 лет назад

    73

  • @yaboijulian1880
    @yaboijulian1880 6 лет назад

    Wtf I don't get any of this shit! I can't even run a hello world command

  • @TheEternalHermit
    @TheEternalHermit 9 лет назад

    god couldn't the kOS devs just use C style syntax, you aren't going to be able to make it like English, don't even try.

    • @jinxshaddix
      @jinxshaddix 9 лет назад

      The Eternal Hermit Atleast use LUA or something "useful" =)

  • @LundBrandon
    @LundBrandon 8 лет назад

    it would be better if it used c++ or java

    • @WhovianMinecrafter
      @WhovianMinecrafter 8 лет назад

      I think it would be best for it to use Python. As far as I know it is the best language for new programmers while still being a known language for programmers to already be capable to do cool things with.

  • @aaronholloway1991
    @aaronholloway1991 7 лет назад

    Also please reply I really need help

  • @MaCo6616
    @MaCo6616 7 лет назад

    you talking to fast