Jump to content
The simFlight Network Forums

Joerg 66

Members
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Joerg 66

  1. Hello!

    For a LUA plug-in I need a method to determine if a macro with a name provided in a variable really exists:

    I want to call macros not only by a fixed name like - ipc.macro("MyMacroFile:MyMacroName") - but also by a string variable (which contains a string transferred from an hardware device) like - ipc.macro(VarMacroFilename .. ":" .. VarMacroName)

    But in the case that no macro with that name is defined, the LUA plug-in should execute some alternate actions (like transferring the string to the original hardware driver).

    Some solution can be writing a constant value to one of the FSUIPC offsets for general purpose (0x66D0 … 0x66FF) before calling the macro, then implement writing another constant value to the same offset in every defined macro and checking the offset in the code after the macro call - that should work, but I think that is not what I mean with "good coding" ;)

    Is there any other way to verify the existence of a FSUIPC macro in LUA?

    The best way I think would be getting a return value from the ipc.macro() function that tells me if a macro with that name has been executed or not. Any chance to implement that in future? (if already implemented, I didn't find any hint neither in the documentation nor in the examples provided)

    Thanks and greetings,

    Jörg

  2. Thanks again for your answer!

    … to refer to the Lua package installed for you into the FSUIPC documents …

    Aaah, I see it, and I begin to understand a little how these things work. Until today I never needed to look there because FSUIPC works for me as it is. I'm a physician, not a programmer … :cool:

    The User Contributions subforum you were using erroneously is also full of other examples, contributed by users.

    Just for understanding: if I should succeed and will have developed my own solution, then this would be the appropriate place to publish for sharing it to the other users?

    but please note that I am away from 22nd December to 5th January inclusive.

    No problem - I'm just in the planning phase and beginning to set up my FSX system, so a lots of water will flow down the rhine river until I will have time to deal with these little problems!

    So I wish you a nice vacation, merry christmas and a happy new year!

  3. Sorry Pete,

    my apologies. You have PM. :oops:

    Regards,

    Jörg

    ---------------------------------------------------

    Edit: and my next fault - I just see, that you (reasonably) don't receive PMs, I got an error massage on the browser tab with the PM. So here it is:

    Sorry Pete,

    in fact I didn't see, that you have moved my posts - you did it so fast, that I never have seen it on the original place, so I thought something with the forum software didn't work. :???:

    It is my fault, by looking only in the subforum I missed to see the first post appearing on the correct place, therefore I did the second and third post. Normally I know that I should not post things more than one time ... :oops:

    Anyway, thanks for your efforts. Now I have to google, what is a Lua plugin and how to use it … :idea:

    Regards,

    Jörg

  4. Hello!

    I'm new to this forum, but I'm using FSUIPC/FS4IPC since FS98, and it is time to say thank you, Peter, for the great tools you provide for the FS community! Now I have a wish for future development:

    I know that there are various taxispeed control gauges downloadable as freeware, and I'm using one of them by trying to hit little click spots with the mouse pointer. But for the optical reason I don't really like those unreal things in my virtual cockpit …

    On the other side, I have an unassigned joystick axis, and in the moment I don't know what to do with it. So I think, it would be great if I could control the taxispeed of my aircraft with that axis! :cool:

    I have something like this in mind: while the axis is slided to the zero position, the control is inactive, and throttles and brakes are working as normal. When pushed out of the zero position, it takes control over throttles and brakes and adjusts the taxispeed corresponding to the slider setting. The maximum speed should be configurable in the FSUIPC settings.

    Maybe this is a dream, but I would appreciate if you can implement this feature in one of the future FSUIPC versions! :razz:

    Regards,

    Joerg

    • Upvote 1
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.