promotional bannermobile promotional banner

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

Provides in-game scripting using Lua and a custom JS/Ruby-like language

File Details

RedOnion v0.5.1

  • B
  • Mar 2, 2020
  • 560.98 KB
  • 154
  • 1.8.1+1

File Name

RedOnion.zip

Supported Versions

  • 1.8.1
  • 1.8

New Dependency:

  • ModuleManager required for part-values/tags to work

API:

  • user can now override/correct the autopilot (autopilot.userFactor)
  • universal staging logic (mono, ion, LH2, ...), resources and propellants
  • OrbitInfo, orbitAt and changes to positionAt and velocityAt
  • TimeStamp and TimeDelta

Scripts:

  • launch.ros and control.ros: decouplers marked with noauto tag won't be auto-staged
  • control.ros: auto-staging disabled until throttling or executing node
  • control.ros: srf-retro landing assist and hohmann improved, can now circularize in different SOI
  • lua tutorial scripts removed: This was done to remove clutter. You can copy in the tutorial code if you want the tutorials back.

ROS Changes:

  • fixed shadowing by loop variable (var i; for var i...)
  • string comparision is case-insensitive, new identity operator (===) added for case-sensitive compare
  • comparing anything to string first converts it to string (including enums)
  • strings now have .format, .substring, .equals, .compare and .contains methods (case-sensitive)