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 am pretty sure Martin has designed this API to be as good as possible and I would like to keep it that way.
We can discuss optional additional features like that read_scenario function later, ok?
You can request it via github issues (you already did it once). That way it dosn't get lost and...
Thanks, that's what I have thought.
I get the idea, but I like to keep the API as close as possible to the OrbiterAPI as that helps in documenting it as well.
Shure the above implementation is not 100% equal to the C++ API as it uses pointer values to store the value and return a boolean.
But I...
Hold on, I am only implementing plain eqivalents to the OrbiterAPI.
Special Lua things only create special problems. Like there is no-one to help, as this would be very very Lua specific!
The idea might be tempting, but please please please don't make it more complicated.
Having a 1 to 1...
O.K. now it's your turn to help me ;)
I have two options to implement the following functions: readscenario_nextline, readitem_string, readitem_float, readitem_int, readitem_bool and readitem_vec
I can implement them to either return one value or two. What is the best way a Lua developer...
It's not crazy, noone has needed this "feature" since.
There you see how many acually use Lua. The reason this is not perfect is because noone seems to check and as Orbiter is a complete hobby project (nobody gets any money for it) it's kind or rude what you say.
By the way you can help make...
That FILEHANDLE is a C/C++ FILEHANDLE ! As such this is NOT an Object! It is just a "number to identify what file it belogs to"!
This handle is just to be passed along to other functions like:
function readstatus(scn)
line = readscenario_nextline(scn)
-- ...do something with the string...
Hey @Thunder Chicken,
why do you thing these methods do exist?
scn:lines()
scn:write(...)
The scn parameter given is just a handle! You can only use it with OAPI functions that take that handle!
Don't you have a Debugger for Lua? I think when you debug-print values (scn in this case) it gives...
After looking at the code...(Open-Orbiter that is) I think readstatus & writestatus are implemented!
const int NCLBK = 13;
const int SETUP = 0;
const int BUTTONLABEL = 1;
const int BUTTONMENU = 2;
const int CONSUMEBUTTON = 3;
const int...
I don't know :)
As you see, I am only very slightly interested in the Lua interface - still I like to help you out. Maybe glimpsing over the source-code might give me an idea.
Hey @Thunder Chicken ,
I really would love to help you, but I am not 100% sure what to do.
Providing readstatus(scn) and writestatus(scn) coild be possible, but I don't know how Orbiter could detect whether there is such a callback function defined in a Lua Script or not. In C++ it's easy: The...
Update:
Even after a new clean checkout and submodule update, I still get that error when I open the directory with Visual Studio... :(
After that an empty Extern\irrKlang\x64\ folder is created.
What is not what should happen, as the next time CMake thinks it's installed, but it isn't...
With option ORBITER_BUILD_XRSOUND ON/enabled?
Configuration "windows-x64-debug".
I'm not sure whether this really is a CMake issue, or (again) a git issue, as that usually bites me every time it can :p
Hi folks,
I've experienced issues with the (current?) irrklang dependency with CMake:
It seems that the zip file that is downloaded for the 64bit builds is not correctly unzipped...I think.
It looks like the irrKlang-64bit-1.6.0.zip has a subfolder "irrKlang-64bit-1.6.0/" that is not handles...
Just to add my thoughts abaout this:
Do I think Lua is a dead end? No, but I think it is just for basic interaction. Just like BASIC is a very fine language for initial contact with a computer/progrmming-language, it still is not good enough to do all your needs.
The problem with Lua is the...
So here's my reply(s):
The function is called for (almost) all combinations of the array (most probbably using the quicksort algorithm).
The table.sort function calls your function with two arguments that it needs to be compared. The function you've provided (called the 'comparator') just has...
Shouldn't Lua's table.sort do the trick on the whole table?
I would imagine something like:
table.sort(city_waypoints, function (left, right)
return left.city < right.city
end)
...note this is completely untested code ;)
:ROFLMAO:(y)...with a little bit better "Michael-Sample" it would make sense,
and the right-owners of Thriller will be seen with $ signes in their eyes.
My home machine also does not have a dual graphics option, but at work I might find a spare machine to test on (during lunch break of course ;) )
But that has to wait until I'm back from "out-of-office" time, so not earlier than 2nd week next year.
Yes it is a OBJHANDLE*,
auto is just the lazy way to say: "please compiler, you know what that function returns; figure out the type for me".
So this:
auto a = true;
auto b = 42;
auto c = 1.23f;
is excatly the same as
bool a = true;
int b = 42;
float c = 1.23f;
...for those simple things it...
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.