LUA No access to planet parameters through Lua

Wishbone

Clueless developer
Addon Developer
Joined
Sep 12, 2010
Messages
2,420
Reaction score
2
Points
0
Location
Moscow
All right, I'm lazy and I like rapid prototyping. Decided to port functions to calculate sun-synchronous ApA/PeA/inclination to Lua and failed to find oapi.get_planetperiod, oapi.get_planetjcoeff.

I do know the period and J2 for Earth, thanks to handbooks etc. But what if I decide to make a SSO around Mars? It also seems to me that a whole bunch of other Orbiter's API functions is missing from Lua.
 
Even being a newbie to orbiter, I noticed LUA doesn't have access to a lot of the API. I hate to say it, but it seems like the lua interface was a sort of bandaid or an after thought. Something the the software designer threw in just to test?. I dunno, but I do know a few commercial products use a full blown lua interpreter along with access to almost all of the game *.dll functions. Right. I forgot, Orbiter isn't a game! So what!!!

Mentioning a nifty new scripting capability that doesn't fully work was a bad move IMHO. This could have waited.
 
Please do read this thread. It's on the same topic as this one, and there is explanation why not all functions are implemented in the LUA interface.
 
Ahh, is it possible to cook up a perl script and auto-export functions to Lua? I've seen similar solutions elsewhere (mostly FORTRAN - C interfaces, TBH)
 
Back
Top