Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.
Activate
Good to hear you got it working. I also don't really like popup windows, as I feel that they break the immersion, especially on ships with a nice VC. The method you chose is probably better. Perhaps add a "factor" or "adj" button to change the scale of the increased/decreased value...
finally got it to work (in somewhat the intended way). The set button simply sets the airspeed target and then the hold button either holds the set speed or if no set speed exists, holds the current speed.
--[[
Name = Airspeed Hold
Script = AirspeedHold.cfg
Key = 0x1E ; 'A'
Persist = vessel...
Not an OS thing. Hangs on me too (Windows 10). It appears that the MFD script doesn't like the loop that proc.wait_input creates.
I got an input window opening with the code below, but the string is not returned to the airspeed_target variable
--[[
Name = Airspeed Hold
Script =...
Here is a "direct" script for a hold airspeed ap example, with keypress detection. Alt-W to engage/disengage the AP. Alt-S to set the speed. I've commented everything, so it should be clear. Unzip in your Orbiter directory and run the "Airspeed_ap_test" scenario. The keystate.dll in the zip...
Just noticed the edited post #5. So you want both a hold and set speed AP.
Yes you can with str = proc.wait_input(title). The returned value is a string, but you can convert to a number with hold_vel = tonumber(str).
I'll try to post an example with a "direct" script and then we can see how to...
If your goal is to set the thrust then you can only do it with the vessel functions in Lua.
v:get_thrusterlevel(ht) or v:get_thrustergrouplevel(type) to get the current thrust of a thruster or thruster group and v:set_thrusterlevel(ht,lvl) or v:set_thrustergrouplevel(type,lvl) to set the thrust...
Yeah the syntax needs a bit of getting used to it. If you have the vessel interface, you can use the vessel methods instead of the general orbiter API functions. Here is an example:
--create annotation on screen
note = oapi.create_annotation()
note:set_pos (0.7,0.06,0.9,0.95) --(x_start...
is "vi" the handle of the vessel or is it the interface?. Try oapi.get_airspeedvector(REFFRAME.LOCAL), so it returns the airspeed vector of the focus vessel. If the returned type is "table", the you did not obtain the vessel's handle correctly in your post above.
hobj =...
As the OP mentioned, the Orbiter 2010 version is Not Archived.
When you click on the Download 1.4 (~788k) For Orbiter 2010. link, you get a message that says "The Wayback Machine has not archived that URL."
Ok, I found a solution that is a bit convoluted, but gets the job done:
int Interpreter::v_send_ctrlbufferedkey(lua_State *L)
{
static char *funcname = "send_ctrlbufferedkey";
AssertMtdMinPrmCount(L, 2, funcname);
VESSEL *v = lua_tovessel_safe(L, 1, funcname);
int key =...
I am writing an ascent autopilot for the XR2 in Lua, and I need a way to send key combinations to the Ravenstar. I tried v:send_bufferedkey, but it takes only one input (keycode).
I attempted using nested while loops but I only got one key pressed, not both at the same time:
goal = 0
while goal...
While it's true that there is no consumebufferedkey implemented in lua, you can detect pressed keys with this.
(There is v:send_bufferedkey(keycode) method which is described in the section Orbiter Scripting→Reference→Class methods→Vessel methods in the Orbiter.chm file, but you can only send...
Using some online calculators, I find that the diffraction limit for a 6" aperture is about 0.8 arcseconds. The Moon's angular size is 1900 arcseconds, so that translates to objects ~ 1.5 km in size.
For double the aperture, we get half the size, so about 750 meters.
But what does that mean? If...
Bagged the ISS in a 500 km orbit around the Moon. Not a cheap telescope for sure, probably outperforms Hubble. (Cheap for Musk?)
Date selected was November 25th 2034 (super moon date) and the Earth observation location was Sriharikota Base, with the Moon almost directly overhead.
A custom...
Here is a replacement for the Generic Camera that comes with the D3D9 client. Keep a backup, because this was hastily put together just to change the FoV limit.
It can zoom in up to 0.0001° FoV. (At 0.002 - 0.001° you can "clearly" see the ISS on Brighton Beach).
Targeting is tricky.
Create...
I get that. It was just to point out that it is possible bypass the "100M limit" and view things on the Moon from Earth, as long as they are not the focused vessel (and you change the size in the config file).
In the example above, the mesh size is 35km and the config file size is 1e6 meters...
Here is a Carina mesh, scaled to ~35 km wide, placed on Brighton Beach. Config file size set to 1e6.
In Orbiter2016 it can be seen from Earth with Camera MFD (FoV 0.5)
External MFD window enlarged to full width of screen (1920):
Same pic taken from 300 km altitude above Earth:
Zoomed in 50%
Work in progress. Crew and VC in somewhat working order. My additions to Doug's code are abominable... but hey, it works (sort of). Will definitely need to get Coolhand's permission for a release though.
Every skin that works for the 2010 version of the Arrow should also work on this version too. You can change the skin during the simulation, by pressing the "change skin" button located in the lower left section of the right panel.
To learn how to create your own skin, check DanSteph's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.