Hey everyone back again, this time with an actual extension you can install now! For those who don't know or visual studio code or vscode is a text editor which I personally love and I think the vast majority would agree. It's available cross platform and it's great for a large number of languages.
​
What I've done is added language support for kerboscript / KOS. As of now it's fairly limited but it can:
That's about it at the moment, but it was honestly more work than I thought to even get this in place. If you have issues either let me know on this thread and/or post an issue here.
u/TheGreatFez
Edit & Update:
I made the Script a bit more predictable and less dangerous.
Pictures and Code: https://onedrive.live.com/redir?resid=57BA7941BA75C587!70888&authkey=!AHS-vrmUL-vsdEY&ithint=folder%2cpng
To test the script: "run mun_crasher."
How does it work:
first it selects a spot on the mun. Then the periapsis is lowered about 600 over our target. The node_eta takes the rotation of the mun into account. two minutes before Periapsis small prograde or retrograde burns are performed to lower error of the periapsis. When the ship is near the target the vessel burns foll SRFRETROGRADE until the surface speed is about 8.5m/s after that the throtle is locked to keep the actual speed. this will cancel out some more horizontal velocity, but not the vertical. We hit the ground with nearly the maximum what the legs will sustain and do a nice lithobreak :-).
The script does reliable land on the mun (standing) and the final scores are mostly less than 6.
Lessons learned:
1. My node_runner script was very inaccurate 2. you cannot predict how a good a function is executed 3. my orbit will change over time without any reason
Simply because I haven't seen it mentioned in here yet I thought I'd chime in an plug Atom. The syntax packages available on there haven't been updated recently, and I'm looking to get it updated with the Editor Tools repo, but I find the editor to be incredibly easy to use, and very extensible.
I believe this should do it:
http://www.filedropper.com/showdownload.php/blueoriginlanding
Edit: Also made the change suggested elsewhere in the thread, problem still exists.
And, sorry for my sucky programming.
u/TheGreatFez
Code and Pictures:
Final Score: 139,67 but only 18m from the other Lander :-)
Not to always be self-promoting on this sub but I do have vscode extension for Kerboscript that is somewhat robust.
It's aware of the kerboscript syntax and all the built in functions, variables and suffixes. Obviously, it doesn't have a debugger (yet) but I think it provides more than just basic syntax highlighting
If you are already using atom, you can use the language-kos plugin. It just provides syntax highlighting, whereas the standalone Kode program offers more, I think.
As an alternative you may want to have a look at cool retro term it has this nice old cathode tube screen look (scroll down for screenshots). It is my preferred terminal for kOS.
Notepad++ is great – I still use it – but you should really commit to trying Vim if you like useful shortcuts. This is a good intro to why it's shortcuts are worlds beyond almost every other editor:
Honestly, it's painful to type without Vi(m) commands. I even have Text Editor Anywhere setup so I could even type this with Vim.
I was figuring it would output kerboscript (blockly has code generators https://developers.google.com/blockly/guides/create-custom-blocks/generating-code) and then the telnet idea was how to get the code from the web site (running blockly) into ksp.
I haven't actually used the telnet feature, but I saw CheersKevin use it once in his video.
I use IntelliJ because I have a licence from work. There is a free version though which works just as well and there's a KerboScript extension for syntax highlighting.
I'm sure there's a way to do it easily, but nothing comes to mind. What OS? You should be able to 'print' to PDF from the browser.
OSX it's a standard print option, and on Windows I always end up falling back on CutePDF Writer. On linux, cups-pdf does the job (probably already on your system or in the package manager at leaast).
Tedious in that you'd need to do this for each page, but there's definitely ways to process the HTML in some form of automated fashion - I've seen the results though the means are not something I am terribly familiar with.
If you've got an android phone/tablet there's ConnectBot and probably lots of others. Simple Telnet/SSH client that will let you run the ship console on your device.