• 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.

Search results

  1. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  2. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  3. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  4. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    By the way, this question goes out to all Lua developers ;)
  5. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  6. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  7. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  8. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  9. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  10. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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.
  11. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  12. kuddel

    Guide: Orbiter development in Visual Studio 2019

    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...
  13. kuddel

    Guide: Orbiter development in Visual Studio 2019

    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
  14. kuddel

    Guide: Orbiter development in Visual Studio 2019

    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...
  15. kuddel

    The Future of Lua with Orbiter? Is it at a Dead-End?

    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...
  16. kuddel

    Question Sorting City Waypoints by Name Not Working?

    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...
  17. kuddel

    Question Sorting City Waypoints by Name Not Working?

    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 ;)
  18. kuddel

    What music are you listening to?

    :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.
  19. kuddel

    Orbiter Startup Issues

    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.
  20. kuddel

    Request Artemis landers

    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...
Back
Top