Red Onion CKAN

Unrestricted In-game scripting mod for KSP with Repl/Editor/Intellisense. Two scripting languages implemented: Lua and a custom JS/Ruby-like language.

License: MIT

Game Version: 1.10.1

Source code: evandisoft/RedOnion

Downloads: 10,305

Mod Website: Forum Thread

Followers: 5

Outdated Mod

This mod is not known to work with the latest version of Kerbal Space Program. Proceed with caution.

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), but our goal now is to:

  • Allow users to do whatever they wish to do to the game environment to have fun.
  • Help modders develop and debug their mods using this mod.
  • Help anybody to explore KSP API, their own or other's mods (read the license of other mods you decide to use this tool to interact with, we expose only public members directly).

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: - CKAN - Spacedock - CurseForge Note about using Twitch Client "Install" button

ChangeLog: here

Documentation

  • Scripting - Documentation related to scripting.

  • LiveRepl - The main user interface for the project. Where scripts can be loaded, written, and executed.

  • Troubleshooting - Some possible issues and solutions.

  • Development - Main page for development documentation (project structure, implementation explanations, etc).

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.

Loading changelog...

Stats for Red Onion

Downloads over time

Downloads per version

New followers per day

Top Referrers

  1. spacedock.info
  2. www.google.com
  3. forum.kerbalspaceprogram.com
  4. github.com
  5. duckduckgo.com
  6. sd-prod-live.52k.de
  7. www.bing.com
  8. www.spacedock.info
  9. evandisoft.github.io
  10. sd1a.52k.de

Export Raw Stats

Export Downloads

Export Followers

Export Referrals

Raw stats are from the beginning of time until now. Each follower and download entry represents one hour of data. Uneventful hours are omitted.