API Question Intercommunication between LUA and orbiter

cinder1992

Random failhurricane.
Addon Developer
Tutorial Publisher
Joined
Jul 5, 2009
Messages
350
Reaction score
1
Points
0
Website
cinder1992.blogspot.com
Erm, right. I'm having some trouble with a project that i'm doing.

I know it's possible to send data to a LUA script from an OAPI (Orbiter API) DLL, but is it possible for a LUA script to return data to the OAPI dll? I could never figure this one out. I need this info or I might have to make a fourth re-write of the UVGCO.

---------- Post added at 04:51 PM ---------- Previous post was at 04:45 PM ----------

while I'm at it, does anyone know how to override the MFD Update time in the orbiter launchpad? I need to know as some of the graphics in the project will be choppy as hell without an override (in the MFD display, other people can integrate a display into their vessels).
 
while I'm at it, does anyone know how to override the MFD Update time in the orbiter launchpad? I need to know as some of the graphics in the project will be choppy as hell without an override (in the MFD display, other people can integrate a display into their vessels).
Use Module::clbkPreStep and redraw the display as often as you feel you need to. Surface MFD uses the same method for redrawing its ribbons. Only draw the bare minimum that you need though because of the frame rate impacts (for example redraw the graphics but don't draw the text - use MFD::Update for that).
 
In order to bypass the default update interval, make sure that your MFD is active (because the update field only refers to the update frequency of MFDs) then call the Invalidate method to force a refresh.
 
Erm, right. I'm having some trouble with a project that i'm doing.

I know it's possible to send data to a LUA script from an OAPI (Orbiter API) DLL, but is it possible for a LUA script to return data to the OAPI dll? I could never figure this one out. I need this info or I might have to make a fourth re-write of the UVGCO.
You'll need to tinker with VESSEL3::clbkGeneric().
 
Back
Top