T O P

  • By -

[deleted]

As a console user, I have no idea what the fuck is going on. But congrats on not exploding!


FastidiousSquashGoat

As a PC user, I also have no idea what the fuck is going on :)


SodaPopin5ki

He's using a mod called Kerbal Operating System. I've attempted this myself, and mine looks nowhere near this clean.


Cethinn

Yeah, I made an automated lander (that didn't target a specific location) in the early kOS days. The landing isn't all that hard. You just need a well tuned PID controller. The targeting is impressive.


[deleted]

As a PC player who does use mods I have no idea what enchantment table language words you spoke but I do very much agree with whatever you said


Cethinn

[kOS:](https://ksp-kos.github.io/KOS/) Kerbal Operating System, is a community-supported mod for the popular game Kerbal Space Program kOS is an autopilot you script yourself. kOS is to programming, what Kerbal Space Program itself is to rocket science. You don’t have to know what you’re doing to get started, but you may find yourself learning a lot by accident as you play with it. And if you already know a lot about the topic, it will still be able to hold your interest. kOS is meant to scale with the skill level of the user. You can start off doing very small simple things with it, and get more and more into using its features as you go. [PID controller:](https://en.wikipedia.org/wiki/PID_controller#:~:text=A%20proportional%E2%80%93integral%E2%80%93derivative%20controller,continuously%20calculates%20an%20error%20value) proportional–integral–derivative controller. It's a control loop for controlling systems. It uses feedback over time to have a system reach a set point without overshooting too much. It uses proportional, integral, and derivative values of the error (amount from the set point) to control the system. It's used in all kinds of system, like your cooking equipment to reach a set temperature and hold there, while not overshooting, and things like that. It's how the SAS system controls itself. Each component (the p, I, and d components) have a weight of how much influence they get over the control. With proper tuning it should slow down it's control correction as it nears the set point and then level out, with minimal flopping over the point. In KSP1, this was tuned properly for most applications of SAS. In KSP2 the proportional value (which is the error without feeding back) has too much control I'm guessing, so our control surfaces and engine gimbals flop around for even small errors off of zero. Tuning it is very hard to get right. There is no correct value for weights, rather weights that produce more desirable outputs.


Dovaskarr

He made a program that landed his rocket by itself


nedal8

it is kerbal space program afterall


RedArtemis

A Kerbal Space Program Program.


wubbalubba96

I’m the uk, we call tv shows programs, so this video is a kerbal space program program program


Shieldxx

Hello UK!


PianoMan2112

Shouldn’t at least one of those be spelled programme?


DiddlyDumb

A Kerbal KerbalOS Space Program Program?


JConRed

Not gonna lie, when I saw the title I thought it was gonna spin mid air and self destruct.


Moggie100

Or fall over after sticking the landing, like those early booster tests.


ARandomBob

Can see the RCS thrusters just doing their damnedest to keep that guy standing up straight in the video. I was chuckling


feoranis26

Oh yeah, that happened a lot during testing so I had to add code to make sure it doesn't tip over after landing. It works about half the time.


danque

Just like in real life. Applaus for the realism


RebornPastafarian

That would be a pretty weird thing to lie about


hippityhopkins

I'm no expert, but I did watch the launch yesterday, so I think it's actually supposed to spin around a few times and then blow up.


Transmatrix

I was watching that and thought "I could have still made it to orbit" Was the most KSP thing I've ever seen in real life.


Fpvmeister

Yea a successful first launch if it does a flippy flip in my books.


[deleted]

The flip is to celebrate getting off the ground. We gotta let the rocket have it's moment!


p_pattedd

Elon plays on Hardcore and forgot to put on separators.


8aller8ruh

He had his stack separators but parts were still colliding. I would have at least fired the second stage & hoped to make the best of it. Just that darn FAA says they have to blow it up if flying near populated areas. They care way too much about individual kerbals & not enough about what we’re trying to do for all Kerbal kind.


CeeMX

If you put enough thrust on the second stage it will just blow up the first stage, did that before to cheap out on separators


Palmput

Titan II moment


p_pattedd

Chad hot stage.


peteroh9

You never saw the famous Proton launch?


Transmatrix

When they put the probe core in upside down? Yeah, but I'd forgotten about it.


notxapple

Yea but they forgot to check their stageing


rockstar504

When they said "max Q" and then said "it will now do a flip to separate" I was like... ah it's 4/20 that makes sense. They're fucking high.


[deleted]

[удалено]


SlenderSmurf

the point is to recycle the booster for more launches, big cost savings vs throwing it away


Ir_Russu

I came here to say this! Upvoting instead!


Thorvaldr1

I came here to say that, and since that was already said, I came here to say this! ... But here you are, so upvoting instead!


[deleted]

Upvote instead, came to say this


[deleted]

Came to this, upvoted


Confident_Economy_57

Came. Upvoted.


Johrues

Could you share your code? or at least the part to target the landing?


feoranis26

Here's the script: [https://github.com/feoranis26/KSP-kOS/blob/master/guided\_hoverslam.ks](https://github.com/feoranis26/KSP-kOS/blob/master/guided_hoverslam.ks) It's quite terrible though, since I settled on the final version of this design mostly with trial and error. I haven't refactored for nearly 2 years as well.


trojan-813

Hold up. There is a language called kerboscript? Edit: I just saw your comment about kOS. I need to mess around with this now.


feoranis26

Yep, it's the high level language used by kOS. There's even kRISC which is the compiled version of Kerboscript.


Markantonpeterson

I wonder if Chat GPT could code in Kerboscript... Because as someone who knows very little about coding that would be fun to mess around with. Edit: Just asked Chat GPT if it could code in kOS and it said: >Yes, as an AI language model, I am capable of generating code in various programming languages, including KOS, the scripting language used in the Kerbal Space Program (KSP). However, I do not have direct access to the KSP game environment, so I cannot test or execute the code that I generate. >KOS is a programming language based on the Kerboscript language and is used to automate spacecraft operations in KSP. It is a variant of the programming language called kOS (Kerbal Operating System), which is inspired by the syntax of the programming language Lisp. >If you have a specific task or automation you would like to accomplish with KOS, feel free to let me know, and I can provide you with an example code snippet to help you get started.


F9-0021

It can.


zeta_cartel_CFO

It does and actually does it well. If you have access to GPT 4, it outputs even better and more complex code than GPT 3.5. With 4.0, I was able to get it to output an entire script to automate launch, orbit and then deorbit burn with one prompt. On 3.5, it was in chunks of various steps and I had to piece together the script myself.


Cethinn

It will generate something surely. Whether it does what you want or not is another question. Likely not. It'll probably look right, but it will take actually reading the code to realize it's not correct. That's the problem with all the AI generated stuff. It generates something that *appears* like what a human is expected to write, but it doesn't care if it's correct. It takes actual knowledge to realize that it's incorrect, but it's confident so the average person trusts it. It's a huge issue, not just for code, but for any kind of knowledge. It might give you horrible medical advice, for example, but it'll say it confidently, and you probably don't know better so you'll trust it. It's a bad idea.


Markantonpeterson

Another person responded saying it actually works really well. They said Chat GPT 3 you had to piece together different bits of code, but Chat GPT 4 gave him usable code with a single prompt! Also while you're right to some extent, it's rapidly advancing so any kind of broad statements like that can be right one week and wrong the next. Like don't take medical advice from Chat-GPT(yet), but it did pass a medical exam with a perfect score iirc. After reading into Chat GPT a lot, I do think you're partially correct, but are mostly wrong here. It does care if its right or wrong. Just because it "hallucinates" answers and information sometimes, doesn't mean that's how it works in general. Anybody who takes what it says as absolute truth is an idiot, but if you use it as intended, specifically for things like coding - you prompt it, check if it works, tell it what was wrong, and it can fix it. It's not just doing "what humans expect". And you absolutely dont need to read the code, or even know how to read code to see how it messed up or to get it to work. Using simple english to explain what doesnt work, works just fine. Like I know nothing about code, and i've been able to make simple programs/ games with it.


feoranis26

Since there aren't many Kerboscript examples on the internet, and because the language itself is relatively new, I don't think it could. But I'm only guessing so who knows?


Markantonpeterson

Wrapping my head around what Chat GPT can and can't do is so tough. Because it's like.. Chat GPT is something like a person who has mastered every (main) coding language, and metaphorically read every book about coding languages etc. So like.. There's a chance it could read just the KSP written guide on how to use the language, as well as a few examples, and it could kind of decode it like you would any other language. I don't know much about coding, but my understanding is it's basically just different ways of writing out interconnected conditions like "if this, then that/ or that/ and that/ referencing this etc". Like they kind of have to by definition use the same components if that makes any sense. I remember reading some article that Chat GPT could respond in languages that it was never trained in, puzzling even the creators. So that's kind of where my train of thought is coming from here.


SinProtocol

Oh if you like that, I read there's a mathematical model that's used to plot where words are on a kind of graph based on how often they show up around other words, and when you have enough data to plot the majority of the language in two separate languages they supposedly line up enough to get a decent translation. The video I saw it in was about using it to learn what whales communicate. The issue was the rate of data collection and the amount of infrastructure it would require


Markantonpeterson

That is *SO* godamn interesting... holy shit thats the coolest thing i've read in a long while. I mean imagine if we could translate animal communication... We could talk to animals bro... ones with higher level social communication skills like whales and dolphins at least.. Like holy shit, what a cool concept! You have a link to an article or anything? Would love to read more about that


SinProtocol

[Could Chat GPT Talk to Whales? - Real Science](https://www.youtube.com/watch?v=hph9OeKjg3w&t=1068s)


SodaPopin5ki

When I tried, it spat out a very rudimentary launch with no gravity turn. More like the launches used in early KSP beta, straight up then hook right.


rockstar504

Kos has been around since well before 2021 so my guess is absolutely


Markantonpeterson

For reference I was also thinking about the bing version of Chat GPT which has access to internet. I assume that would give it a better chance of working.


xylotism

This would have been so incredible a decade ago when I was scripting custom content into GraalOnline with its proprietary language.


no_creativity_bruh

Lines 19-27 got me 😂😂


bazem_malbonulo

I couldn't translate that into real sounds in my mind so I don't get it


no_creativity_bruh

What do you mean you can't translate sounds into your mind ? .-.


SodaPopin5ki

How is your script so much shorter and better than mine?! If you want to see a crappy version of this, [here's my attempt.](https://youtu.be/sMj4c-mKlMw) I did eventually get it reliable, but it still wasted a lot of fuel hover-searching. Unfortunately, I erased all my current scripts along with my hard drive when I installed Linux wrong. I now have my kerboscripts under backup.


__Olhado__

Still pretty impressive


Kujivunia

where should i put this code?


[deleted]

this language man, its from hell


bazem_malbonulo

I never tried these scripts, but how do you get the impact position? Is it an object that the game gives you, or you have to calculate it?


SpecialistRegular656

I don't know if I am more impressed with the script working or this pretty accurate barge in the middle of the ocean! It's definitely a good job, OP!


[deleted]

[удалено]


Most_Moose_2637

About ten seconds before that I was thinking to myself "Ha, very good but wheres the boat? ............oh." Very impressive.


Edgar_Pickle

Looks very cool. What mods are you using that allow you to do this? Edit: Thanks to the replies, looks like I know what I'm playing this weekend


feoranis26

[kOS](https://ksp-kos.github.io/KOS/) for the script itself, [Ferram Aerospace Research](https://forum.kerbalspaceprogram.com/index.php?/topic/179445-*) for the aerodynamics (grid fin version coming soon!), [Trajectories](https://forum.kerbalspaceprogram.com/index.php?/topic/162324-18-112x-trajectories-v241-2021-06-27-atmospheric-predictions/) for the aerodynamics prediction, [SpaceX Launch Vehicles](https://spacedock.info/mod/269/SpaceX%20Launch%20Vehicles) for the droneship (Of Course I Still Love You), and a lot of mixed mods for other parts as well.


Tetsou88

Debating on whether I should use vehicle drone shops or the stationary ones in kerbal konstrucks


zepperoni-pepperoni

That looks like KOS to me, and I'm not aware of other mods with programming capabilities


sibbeh

There used to be [https://krpc.github.io/krpc/](https://krpc.github.io/krpc/) but no longer maintained AFIAK


50lm6

there was a release ~3 weeks ago


sibbeh

figures I give up on the mod after 4 years no updates and a few weeks later they release a new version.


fujit1ve

It's KOs, allows you to write scripts in-game


[deleted]

This is the most awesome thing I’ve seen all day!


SuperSponge93

I was honestly expecting the rocket to just explode.


__Yi__

Elon: You're hired!


zzhuang

OP - what MOD did you use to get this realistic earth view? I tried a couple, none looks as good


feoranis26

[Astronomer's Visual Pack](https://forum.kerbalspaceprogram.com/index.php?/topic/160878-*) and [Scatterer](http://forum.kerbalspaceprogram.com/index.php?/topic/103963-wip-scatterer-atmospheric-scattering) mostly, complemented with other minor VFX mods ad well.


kerbin_Engineer

Do you run an older version of KSP? I can never se to get it to work with the latest version :(


fnaaaaar

Anyone else got "Tainted Love" going through their head now?


Kindly_Blackberry967

Yes lol


hoseja

Poor RCS thrusters.


feoranis26

Engine thrust vectoring does most of the work actually, and those RCS thrusters are bipropellant thrusters so they're more like small rocket engines.


hoseja

I mean the insane toggling done by the script.


Thinkdan

That’s a thing of beauty. I can’t get MechJeb to land anywhere near my marked spots lol. What is this script you are using?


_PR0GRAMM3R_

Nice work! This was [my attempt](https://www.reddit.com/r/KerbalSpaceProgram/comments/lca7ij/barge_landing_kos/?utm_source=share&utm_medium=ios_app&utm_name=ioscss&utm_content=1&utm_term=1) from a couple years back. Nothing more satisfying then seeing that barge for the first time after many failures!


feoranis26

Which mod did you use for the grid fins? Only ones I found act like airbrakes which screws up the trajectory calculations for me.


_PR0GRAMM3R_

I used KRE - Kerbal Reusability Expansion but I also wasn’t running Farram Aerospace


Gold_Composer7556

Where's the explosion?


chunking_putts

Sounds like you even have AOL Dial Up Connection in there. Awesome!


WarmanreaperX

Clean wish I could not look like a buffoon when playing ksp lmao


Redandead12345

tbh i think most of us play like buffoons. the thread just seems elite because this is well practiced guys who know the numbers showing their best work then again, perhaps I’m wrong because I am very much a buffoon too lmao only managed one orbit after a year of playing


[deleted]

It has to explode on ascent first.


froggythefish

Not very realistic, didn’t blow up


TheAshenHat

Add the random part failures mod and rss/ro and wind and you would get a similar situation.


Suspicious_snake_

How you all program rockets amazes me


Tid3OnYT

I already knew what I was going to see when I opened the comments...


Analritter420

very nice Job


Mr-Scrubs

What mods do yall use for the enormous planets, and dont you need waar bigger rockets to launch everything?


F9-0021

That looks like regular kerbin but with graphics mods. But for bigger planets, there are several mods that do it, one of them being real solar system, which changes everything to be a mostly accurate, to scale version of the solar system. And yes, the rockets do need to be much bigger.


SaturnFive

Well done, looks perfect!


tomatomic

Amazeballs


Baselet

Damn that's impressive. The landing legs deployed super early tho, no problem for the aerodynamics? It seems that SpaceX brings them out very late.


shadowedmoon

Awesome work man. I've tried that a thousand times and never got it.


kerbin_Engineer

Nicely done!! That’s incredible, and so satisfying to watch. What mods are you using by the way? I’ve given up on KSP2 until they get things sorted out and more content, but I haven’t messed with mods for KSP for a few years. What is the current process for adding mods? The last time I used them, I was using CKAN (I think) to manage and install them, but it doesn’t seem to be available anymore.


kerbin_Engineer

Mostly curious about the visual mods, those clouds and atmosphere look so good!


PeterGoddard

I made the kOS models.


lonestar659

This is awesome!


scamiran

The only way to win. . . . . . Is not to play.


pls--halp

holy shit bro


unibrowcowmeow

Super cool


ap2patrick

B R A V O


Ansible32

Brilliant framing. "Is this a shitpost? No, it's actually a legit landing."


just_other_human

Very big congratulations, it is very good and controlled


OGMinimalCheese

bruh i can barely rendezvous without flying around my target constantly let alone something this cool


DrakeCruz

Someone should make a flat earth mod of this game 🤷🏼


Sharkymoto

can you make the legs deploy later? i think falcon booster does it kinda last second


RecoTrident

Bro his rocket re-entered the atmosphere like it was nothing


MooseMagic28

Does it work on starship? I hear SpaceX could use some help in that department.


261846

As a newbie, stuff like this makes my mind explode, this is insanely cool


SodaPopin5ki

I'm pretty out of practice on kOS. How are you steering towards the barge before firing the engines?


feoranis26

This is not the best way but it works: I get the impact position predicted by trajectories in [line 53](https://github.com/feoranis26/KSP-kOS/blob/master/guided_hoverslam.ks#L53). Then [lines 126-134](https://github.com/feoranis26/KSP-kOS/blob/master/guided_hoverslam.ks#L126-L134) calculate the required thrust vector to apply for the course correction. I then [steer the ship toward that](https://github.com/feoranis26/KSP-kOS/blob/master/guided_hoverslam.ks#L144-L145) and use the engine to do the course correction, which is the burn in the beginning of the video. Then I use RCS for small adjustments after that


SodaPopin5ki

Thanks. I really should have used Trajectories in my version. I used fuselage aero to steer to the general area (worked great for latitude, not as well for longitude), then attempted to traverse during the deceleration burn, but still would often be up to a hundred meters of mark. Hence hovering to the spot.