Dynawing-Launch.jpg

RedOnion and Kerbalua

A joint effort of Evan Dickinson and Lukáš Fireš to create unrestricted scripted environment inside Kerbal Space Program for all players and even modders wishing to control the game, vessels, anything, with own script.

Current Features:

  1. Repl/Editor with intellisense.
  2. Scripting engines that can interact with Classes from any loaded CLR assembly.
  3. Lua scripting engine called Kerbalua that uses a slightly modified version of MoonSharp.
  4. Powerful custom language/engine (RedOnionScript) built by Lukáš Fireš.
  5. API’s for doing things more easily or more safely, including Autopilot API, UI api, and more.

Goals:

  1. Provide ability to produce mods in Kerbalua/RedOnionScript and modify them without restarting the game.
  2. Provide ability to debug mod code/scripts without restarting the game.
  3. Provide ability to write user scripts, like automatic control of your ship.
  4. Provide ability to interact with live game objects in a repl.
  5. Provide powerful general editing capabilities inside KSP
  6. Provide powerful API for modmakers/Users
  7. Help document the KSP API for modmakers.
  8. Help people learn to program in a fun way.

License: MIT

Github

Github Pages: where the most up-to-date information is.

KSP Forums thread

Warning: Do not use scripts from untrusted sources! This is not a sandbox, any script has the power to do almost anything a modder could do in C#. We plan to eventually implement a switch to limit the power (disable what is marked [Unsafe] in the code/docs), but our goal now is to:

Releases

Your scripts are in GameData/RedOnion/Scripts. If you delete this folder, it will destroy your scripts. I believe that CKAN does not delete them when uninstalling the mod or updating it, but you might want to make a copy of the folder just in case. We provide example scripts in a zip file, which will appear in the list of scripts in-game but wont be in the Scripts folder. If the example programs don’t run, check out that section in TroubleShooting

Latest Releases are available at:

ChangeLog: here

Documentation

Videos are listed here

Upcoming Features

Feedback

All feedback is appreciated. Feedback can be left on our forum thread, as a new issue, or as a comment on any of our videos.

Contributing

We welcome people of all skill levels to contribute or give feedback, ask questions, etc.

Here is more information about contributing.