img



img

RedOnion: Unrestricted in-game scripting (Lua, ROS)


By: evandisoft
Addon | img 1,457




Description

___________________________________________________________________________________________________________________________

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.

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).

Upcoming Features

  • Next Release

  • Planned




About Project

Created: January 11th 2024

Updated: January 11th 2024

Project ID: 99170

License: All Rights Reserved

__________________________________________

Game Versions:

1.01.03

1.01.03

1.01.03

1.01.03

1.01.03

__________________________________________

Flavors:

WoW Retail

__________________________________________

Categories

Companions

Battle

__________________________________________

Main File

evandisoft_RedOnion: Unrestricted in-game scripting (Lua, ROS).zip
  • Release
  • January 11th 2024

    __________________________________________

    Recent File

    evandisoft_RedOnion: Unrestricted in-game scripting (Lua, ROS).zip
  • Release
  • January 11th 2024

    __________________________________________

    Members

    img
    evandisoft
    Owner

    __________________________________________

    Report