kosSPImage

[0.22] kOS Scriptable Autopilot System 0.9.2

kOS is a scriptable autopilot Mod for Kerbal Space Program. It allows you write small programs that automate specific tasks.

Overview

Update: An empty zip file was initially uploaded to spaceport for this release, now corrected!

New in version 0.9.2:

- Fixed an issue with if statements inside until statements
- Fixed an issue with AND and OR
- Version Info
- New Expression System
- Targeting of bodies, getting stats
- Get values from other ships, just like current ship
- Send commands to chutes, legs and solar panels individually
- Round function to x decimals, modulo
- Setting values on structures
- Vectors now use double precision
- Get apoapsis and periapsis of a node

kOS is a scriptable autopilot Mod for Kerbal Space Program. It allows you write small programs that automate specific tasks.

With kOS, you can issue commands to your ships via a command line, or write programs to automate tasks. kOS can interact with other parts on your craft via action groups, it can also be set to run programs in response to action groups being fired.

kOS requires Kerbal Space Program 0.22 or later.

For a detailed description of KerboScript and an overview of the types of commands you can use, see the readme page at https://github.com/Nivekk/KOS/blob/master/README.md.

There is a new development blog here:
http://kosdev.blogspot.ca/

Changelog:
https://github.com/Nivekk/KOS/blob/master/CHANGELOG.md

You can also view introductory videos here:
http://youtu.be/uzdizR6bJiM
http://youtu.be/lQLqBgQRUAw
http://youtu.be/watch?v=adyEOBEYMz8

Installation

Like other mods, simply merge the contents of the zip file into your Kerbal Space Program folder.



How to use

Add the Compotronix SCS part to your vessel; it’s under the “Control” category in the Vehicle Assembly Building or Space Plane Hanger. After hitting launch, you can right-click on the part and select the “Open Terminal” option. This will give you access to the KerboScript interface where you can begin issuing commands and writing programs. The SCS module requires some electric charge to operate. You can shut it off to save power by right-clicking it and using the "Toggle Power" option. Some commands can be aborted, including programs that you have run. Simply open the terminal and hit control-c to break. This is useful if you accidentally write something that runs forever. For a detailed description of KerboScript and an overview of the types of commands you can use, see the readme page at https://github.com/Nivekk/KOS/blob/master/README.md. You can also view an introductory video at http://youtu.be/uzdizR6bJiM.



Comments

37 Comments for “[0.22] kOS Scriptable Autopilot System 0.9.2”

  1. I want a similar thing for a long time, very useful for spaceplanes.

    I’m going to try it out soon. Thank you for making it.

    Alexey Volynskov August 23, 2013
  2. The video is very intriguing. I’ll try it soon. For now, the only feature I would want is the chance to get orbital values for another vessel… so I could try to write a program to execute those damned rendezvous…

    BeeTLe_BeTHLeHeM August 23, 2013
  3. I’ve wanted something like this for a while. Thanks!

    Derik Baumgartner August 23, 2013
  4. do you have a thread on the ksp forum?

    ted amrine August 23, 2013
  5. This looks wonderful.

    I’d like to see a thread on the forums as well.

    I have a question. Can variables be used in the vector expressions? I’m running in to trouble with this. An example:

    Declare X.

    lock steering to R(0,X,0).

    It seems this doesn’t work?

    Desrtfox071 August 23, 2013
  6. Cool! the script language looks like BASIC, i like it!

    Kayo Michiels August 23, 2013
  7. Great idea! Maybe I’ll try to make a script for targetting ICBMs.

    But pleeeze open a thread in the forum ( http://forum.kerbalspaceprogram.com/forumdisplay.php/35-Addon-Releases-and-Projects-Showcase ), where we may discuss issues and trade information about making scripts and publish these scripts for others to use or modify.

    Arno Nyhm August 24, 2013
  8. Are you going to implement Subroutines and waypoints wich uses commands like goto and gosub and they are identified using @

    like:
    @start.
    goto @start.

    Kayo Michiels August 24, 2013
  9. You really need to get setup in forum…. this is great, and more people need to see it… great stuff…..

    ted amrine August 24, 2013
  10. Can you edit it so it supports other keyboards than QWERTY because i am using an AZERTY so all input is messed up!

    Kayo Michiels August 24, 2013
  11. kevin, where have you gone….????

    ted amrine August 24, 2013
  12. There’s a forum thread now. Most of the conversation has moved there.

    http://forum.kerbalspaceprogram.com/showthread.php/47399-kOS-Scriptable-Autopilot-System-0-3

    Desrtfox071 August 25, 2013
  13. Can you please add a readme file that lists the updates that has been made thank you

    Kayo Michiels August 25, 2013
  14. I was waiting for this kind of mod, amazing btw! :D

    Paul Estrada August 25, 2013
  15. Awesome mod, been waiting for ages for this.

    Your 3rd youtube link is broken.
    This should fix it : http://www.youtube.com/watch?v=adyEOBEYMz8

    gusza August 28, 2013
  16. The texture file is not included in the download. It will not work properly.

    The name of the file is font_sml.png. It is a blank picture, and its about 4kb. I looked closer at it and noticed a few black blurs. No text is on it.

    I want to play KSP with this mod, but I cannot. Please either help me or fix this problem.

    Chase Hickman September 10, 2013
  17. If this works in the background this will be a game changer.. for the better. Can program Stations with A.I to make docking easier ect.. Awesome mod.

    ptreese84 September 11, 2013
  18. I noticed something with this. Ptreese84 made a good point, but notice one thing: Station-keeping may soon be possible. Sure, one would have to keep KSP open, but it will work nonetheless.

    Chase Hickman September 11, 2013
  19. Simply put: this mod is AMAZING. I used mechjeb for a long time, but this has officially replaced it.

    Chris Delacruz September 12, 2013
  20. It was the best mod everrrr….
    I am not affiliated with One Direction in any way.

    Richard van Dijk September 12, 2013
  21. So I download the mod folder and open it. I then copied the contents of the kOS folder into the KerbalSpaceProgram folder. When I opened the game everything went well until I tried to open the console, then I got a missing texture error. so I installed the contents of the kOS folder in the plugins folder and still nothing. What am I doing wrong?

    DoctorCruz September 16, 2013
  22. @DoctorCruz

    It’s not your fault. I had the same issue. It turns out that KSP has changed the way plugins work. The creator of kOS changed his plugin as well (i think). But nobody updated the installation manual hehe.

    I figured it out though. Do not unzip in your KSP folder directly.. but copy the whole “kOS”-folder in the zip to \GameData\kOS

    In my case:
    Steam\steamapps\common\Kerbal Space Program\GameData\kOS

    So all the subfolders just remain in kOS, right there.. launch the game… and whoa! ;-)

    JaredNinja September 16, 2013
  23. Thanks. That worked!

    DoctorCruz September 16, 2013
  24. Why do my programs delete themselves every time i launch a rocket? the files are not there, and neither are the volumes. plz help…

    Matthew Schoffelmeer September 16, 2013
  25. @Matthew Schoffelmeer

    I had this too. What I did is.. everytime you use the terminal, start by typing “switch to 0.”

    Then create\edit your script: “edit myscript.”

    Then press F5 to save.

    After you launch and retry.. start again by typing “switch to 0.”

    This worked for me and saved my scripts for ever. So the trick was to open volume zero because by default you aren’t on any volume, and the scripts get lost.

    JaredNinja September 17, 2013
  26. This looks awesome, definitely going to add to my KSP install.

    Munonaut September 18, 2013
  27. Many brave Kerbals were lost to the cosmos today as I taught myself how to use kOS.

    Too bad for those that are left because this just became a staple of my KSP install.

    Paul Bartelt September 19, 2013
  28. Hey everyone, made a website so we can share all our scripts. http://kosstore.com

    Robert Landers September 23, 2013
  29. Robert Landers, great idea! Gotta write some generic scripts instead of ship-specific scripts, lol.

    Richard van Dijk October 6, 2013
  30. Weird, this version doesn’t work for me. Version .7 worked fine but since updating i can only print to console, nothing actually causes an effect on the craft (i.e. locking “lock throttle to 1.” doesn’t do anything along with locking steering). Anyone else who updated getting this behavior? I completely removed the old version before installing this one and have tried making completely new spacecraft but still no luck. I even tried running this version of kOS on a fresh KSP install with no luck. I’ve downgraded back to 0.7 for now hopefully this will be worked out in future versions.

    Munonaut October 7, 2013
  31. I’m also having problems with steering. “Lock steering to ” [anything] has no effect. Locking the throttle works fine, although if I “print throttle” it always says “0″.

    eschoell October 8, 2013
  32. you think there is a way to add a sort of picture making software

    Kirk Kerman November 1, 2013
  33. one more thing, do you think you could tell me what language this is or if you just made your own

    Kirk Kerman November 1, 2013
  34. I don’t know wether this is the right place to post bug reports, but didn’t find a forum thread for this, well… the problem is that whenever I use a variable in a node declaration, I get the error ‘the parameter xyz is not a number’, even though the variable contains a number. Has anyone else experienced this?

    Tilo Hirsch November 10, 2013
  35. I’ve a problem using thi mod : When i right click/open terminal on the CX-4181 module, i have a texture error : sone textures were not found, and they say i have to go into my gamedata\KOS\GFX but
    there are the 2 texture here, in .png (font_sml and monitor_minimal). Can someone help me, please?
    Britaliope

    Britaliope iMAGeek December 11, 2013
  36. i cant log into forums for some reason so i figured i would ask a question here. is it possible to call a program from within another program as if it were an extension? im new to kos and dont know how to program but i love it so far.

    Josh M December 14, 2013
  37. Does anyone know if this version will work with KSP v0.23, or if he’s planning on releasing another update?

    Matt January 15, 2014

Leave a comment

You must be registered to comment or login now.