about lua script in beta

Xantcha

Addon Developer
Addon Developer
Joined
Mar 26, 2008
Messages
203
Reaction score
0
Points
0
I have found orbiter_beta_070927 and was really amazed by Lua*. I mean having a built-in scripting language is excellent thing to have.

Also current set of functions is somewhat limiting (poor user i/o, no attachment management, can't set state of a ship, no i/o beetween script ans ship modules/plugins (other than sending keystrokes to ship, but that's one way mesage). Heck I can't even AddForce at will with lua $) Anyway this is beta, so it's normal.

But one particular behavior of lua-console drives me crazy. It looks like it can't handle too many lines of text - something as simple as "for i=1,300 do term.out('blah-blah')" causes CTD. That's really annoying since it makes script debugging really painfull.

Now off to try and make some scripted missions, STS-114 probably $)

P.S. What's your record for sample challenge? Mine is 5797.66
(tried it only a couple of times but doubt that I could improve it by much)
P.P.S. Sorry if posted it in the wrong subforum - could not find anything beta-related :-/

__________________________
*And that was my first encounter with Lua - damn thats a pretty language, i have tried python but lua looks so much suitable and easier to use.
 
Source code of Orbiter's Lua Interface seems to be located in Orbitersdk/Samples/LuaScript/LuaInterpreter if you have C++ programming experience you shoud be able to add missing functions you require.

However, there has been no discussion about how to migrate user made modifications into the official code.
 
Back
Top