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.
I'm just learning Lua and I tried to convert this C++ code
int i;
for (i = 0; i < 6; i++) {
oapiVCRegisterArea (MFD1_LBUTTON1+i, PANEL_REDRAW_NEVER, PANEL_MOUSE_LBDOWN);
oapiVCSetAreaClickmode_Spherical(MFD1_LBUTTON1+i, _V(-0.31, 0.0547 - (i * 0.0245)...
I'm running an Oct. 6 build and I'm having some unexpected behavior.
local vs = vi:get_rawstatus(1)
local t = vs:get()
t.rpos = {x=0,y=0,z=-9.62}
vs:set(t)
oapi.create_vessel("OmegaBooster", "OmegaBooster", vs)
Throws the created vessel into space.
vrot and arot seem to work as...
I was trying to create a new project using existing code which I now realize is incorrect.
Configuring it properly it stops at the warning:
Severity Code Description Project File Line Suppression State
Warning mesh contains no groups...
I'm trying to compile Orbiter-latest on Windows 10 using vs2022.
I'm getting the error "can't find the include file P_.h"
According to Windows search P_.h doesn't exist on my computer.
Does anyone know what provides it?
This happens on Windows 10 with Orbiter 240704 and on Arch Linux/Wine with Orbiter 2024-RC2. Both use built in D3D9 client.
I guess I should post this in a more relevant part of the forum.
Here's the log from RC2 anyway:
000049.612: **** Creating simulation session
000049.647: D3D9: [DirectX 9...
I get the idea of what you're saying but I'm missing the details.
To my inexperienced mind a practical use of that code would be:
local vs = vi:get_rawstatus(1)
local t = vs.get()
t.rpos = {x=0,y=0,z=-9.62}
vs.set(t)
oapi.create_vessel("OmegaBooster", "OmegaBooster", vs)
But that's not correct...
When I click on "Current state" scenarios my log is filling up with:
000134.107: D3D9ERROR: D:\a\orbiter\orbiter\OVP\D3D9Client\Scene.cpp Line:1249 Error:-2005530516 pDevice->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER | D3DCLEAR_STENCIL, 0, 1.0f, 0L)
It usually keeps running but does...
I was going to leave this go and move my project to a DLL but I'd really like to know where I'm going wrong.
The sim says that it's opening at the right configuration but it's not. It always starts at configuration 0 (clbk_setclasscaps).
Attached is a simple script, meshes, and scenario if...
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.