r/Kos • • Oct 06 '26

Video Revisiting my old kOS landing project, this time with AI

4 Upvotes

Let me preface this post by saying that I know there’s a lot of AI slop out there, so I completely get the skepticism around yet another AI related content. I hope I don't break any rules by posting it here.

Back in 2019, I posted my first-stage landing script on this sub. People asked about the code, shared ideas, and encouraged me to keep working on it. I have created an entire tool around making self-landing scripts easy to write and burned out hard shortly after.

I recently came back to KSP and, out of curiosity, let a coding agent try to land a rocket. I still really enjoy doing little experiments like this, and it was honestly pretty cool watching it run into some of the same problems and make some of the same mistakes I remember making myself years ago.

So I figured, why not make a video out of it?

https://www.youtube.com/watch?v=kdBiZgFTTOY

This is nowhere near some of the seriously impressive kOS work people on this sub have built over the years, and there’s no RTLS here, but I hope some of you will enjoy it. The agent not only wrote the script but designed the rocket from the ground up as well.

Have fun!


r/Kos • • Nov 08 '24

this is a nother error

Post image
0 Upvotes

r/Kos • • Jan 17 '21

Tutorials .. are they up to date?

0 Upvotes

Hi, I havn't used KOS since about 2 years ago... or more.

So i popped into GITHUB and started through the tutorials to refresh.

OMG .. who changed the inputs to the horrible clunky verbose BS thats there now.? It used to just work.. but this COPYPATH and the like is awful.

But that aside.. the actual tutorials still show things like " Run Hello. "

I have a headache trying to read the copypath section of the help too... it doesn't even show that you have to place quotation marks around each input.

Is it just me or has KOS become a gate keepers bloated mess?

Is it just for square heads now?

The tutorials are not even able to be followed in there steps... can someone volunteer to fix it please.

My frustrated rant now over.


r/Kos • • Feb 06 '22

i need Time:seconds to return as a scalar but it doesn't and TimeStamp:SECONDS doesn't work

0 Upvotes

I am trying to make a PID loop but there is an error message about some NaN, here is the relevant code:

SET kP TO 0.01.
SET kI TO 0.0005.
SET kD TO 0.005.

SET lastP TO 0.
SET LastTime TO 0.
SET totalP TO 0.

FUNCTION PID_LOOP {
  PARAMETER targetalt.
  PARAMETER current.

  SET output TO 0.
  SET CurTime TO Time:SECONDS.

  SET P TO targetalt - current.
  SET I TO 0.
  SET D TO 0.

    print "Last Time: " + (LastTime).
    print "Current Time: " + (CurTime).

  IF LastTime > 1 {
    SET I TO totalP + ((P + lastP)/2 * (CurTime - LastTime)).
    SET D TO (P - lastP) / (CurTime - LastTime).
  }

  SET output TO P * kP + I * kI + D * kD.

  CLEARSCREEN.
  PRINT "P: " + P.
  PRINT "I: " + I.
  PRINT "D: " + D.
  PRINT "Output: " + output.

  SET lastP TO P.
  SET LastTime TO CurTime.
  SET totalP TO I.

  RETURN output.
}And here is the error message:

What does this mean and how can I fix it?


r/Kos • • Jun 22 '20

Discussion KOS windows 98

0 Upvotes

Has anyone made a skin for KOS that replaces the GUI's with the windows 98 feel yet? I will actually use it if someone has it.


r/Kos • • Oct 26 '21

The launch was done with kOS

Thumbnail
youtube.com
0 Upvotes

r/Kos • • May 21 '18

Help Came across this script- it lands me too hard. How to slow it down for landing?

0 Upvotes

So I recently stumbled across this script but it lands me way to hard (around 35m/s impact) and my Falcon 9 just blows up. I have looked through these files and could not find how to change the landing speed. If someone could look through and see how to slow down the speed at touchdown, that would be appreciated. https://www.dropbox.com/sh/vg5usi6tjlmlib3/AAAphK1p5-6jKhgw9EH3O225a?dl=0 (Notepad++ is required to open the files)


r/Kos • • 26d ago

Ops on vibe coding?

0 Upvotes

Ik Ik…

But seriously, do you think it’s wrong or right to generate programs for kos with ai? what about other use cases?


r/Kos • • Sep 24 '21

Launch was done with Kos

Thumbnail
youtube.com
3 Upvotes

r/Kos • • Jan 10 '21

STP-2 Webcast intro recreation

Thumbnail
youtu.be
0 Upvotes

r/Kos • • Mar 05 '15

Turn Kos into a full on-board OS!

0 Upvotes

Hey guys, Here's my idea: Create a fully-functional Kos operating system, or at least as close as we can get to a functional one. I'm thinking that we can include the usual Kos stuff, like auto-orbiting, takoff, the usual. However, we should also include other things typical to a computer.

Please contribute any ideas for what we should add to it and any scripts for it.


r/Kos • • May 19 '17

Help copy paste maybe?

0 Upvotes

how do i do it (no its not ctrl+v)


r/Kos • • May 25 '21

Help Anyone worked out the SpaceX Starship attitude control system?

0 Upvotes

Only if someone actually knows the attitude control system used by the SpaceX engineers. Obviously the engineers know, but I do not know how to get that info from them - do they publish it?

Why are the forward flaps smaller than the aft flaps?

Where are cold gas thrusters located and at what angle? I saw a video from the NASA people of the cold gas thrusters being tested, but it is hard to tell - my guess is they are used for yaw control.

I am currently working out a KSP approach to the SpaceX attitude control. It can be done in a lot of ways, and I would prefer to limit myself to what the Starship actually uses. It would be too easy to just load up the center of the vessel with reaction wheels but that is not a good Starship simulation.

The SpaceX videos clearly show thrust vectoring and flap control. It is not possible to see the cold gas thrusters working because the gas jets are invisible.


r/Kos • • May 13 '20

Too lazy to read docs for my question, can kOS control a non-active vessel outside the physics range?

0 Upvotes

I want to know if it's possible to make the L2 point 'stable' (from a gameplay perspective not like actually stable like L4/L5) by making micro-corrections with RCS when I'm say on the surface of the Mun doing other stuff and the orbitting ship is at the L1 or L2 point. Not sure if kOS lets you do throttle/RCS control of a non-active vessel and the docs aren't immediately clear on it or I haven't dug deep enough yet.

I'm guessing this is a hard no with KSPs engine.


r/Kos • • Jul 21 '20

Kos doesn't seems to gimbal my engines at all

1 Upvotes

I've locked steering to retrograde but my engines doesnt move at all. Is there something I need to do? (Sas can move the gimbal)


r/Kos • • Apr 28 '18

How do I preform orbital rendezvous?

1 Upvotes

So I’m trying to write a program where After I launch a few rockets into LKO, I rendezvous them and assemble an interplanetary cargo bus to take stuff to other planets/muns at the same time. However I’m having trouble trying to get orbital rendezvous to work, considering the fact that it would ideally target the other ships without me doing it manually. Any tips?


r/Kos • • 25d ago

Discussion AI generated Eve mission by Q Labs

0 Upvotes

OK I am impressed. I kinda see some issues with the video though. Have a look and see what you think.

https://youtu.be/aDD77h7a01U


r/Kos • • Sep 30 '18

[help] Que thy h*ck does this code not work?

0 Upvotes

It was working then I added something and it stopped... https://pastebin.com/k4JLKqyV The rocket wont pitch and the boosters wont even seperate.


r/Kos • • Jan 04 '18

Help Kos question. Lifes of kerbals are at stake!

1 Upvotes

Nevermind why, but I need to get such a vector, which always points at a certain spot on the orbit. I'll try to explain. For example, you are on a stable orbit. And, once, you decide "oh, such a beautiful place, I need a vector poiting there wherever I am". May b there are some built-in functions in Kos, or may be I can find that vector using maths somehow... So, I hope you got it ;) Need some help.


r/Kos • • Sep 27 '20

How can I translate my knowledge in programming in C# to kos?

1 Upvotes

So I've been programming for about 2 months and I'm pretty alright in afew languages and I want to start creating scripts for the ships I make in KSP but I don't know where to start and if it's even worth it.If there's a way that I can directly access the API of Kos without having to use KerboScript that would be perfect for alot of reasons.


r/Kos • • May 12 '19

Learning kOS be gentle sempai...

0 Upvotes

I am new to learning kOS and have a couple of frustrations. I have attempted two tutorials and gave up after not being able to insert a line break as soon as the code began to exceed one line so needless to say I did not make it far.

I have little coding experience, obviously pressing enter just inputs the command, how do I go down to the next line?

Also I started another tutorial and downloaded a coding program to use outside of KSP to write code.. when I save or delete new .ks files from here it causes no change in game.

I deleted hello.ks and I still see it in game. I created penis.ks and I don't see it. I don't understand this is hard for me to wrap my head around :(


r/Kos • • Nov 08 '24

this is a video of the problem

1 Upvotes

r/Kos • • Jun 05 '21

Launch is fully done with kOS

Thumbnail
youtube.com
6 Upvotes

r/Kos • • Jan 08 '21

What structure is your target's direction in?

0 Upvotes

Like retrograde or prograde, but your target's direction or heading on the navball.


r/Kos • • Nov 29 '25

Help File placements

0 Upvotes

So I have made these scripts(Copilot did) which I then put into the "ships\script" folder and they didn't show up. It started talking about "0:" and "1:" and all the documentation I find is not very helpful. Where do I put my script files in please?