Jump to content
The simFlight Network Forums

aua668

Members
  • Posts

    381
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by aua668

  1. Hi,

    I have programmed some time ago a small LUA program, which reads for me checklist items. I used the program saystatic.exe , which can be found on GITHUB:

    https://github.com/albertly/Say/blob/master/SayStatic.exe

    With the following function I read text, which I provide as parameterto th function:

    -- read string via sound device
    function readItem(lvString)
    	ext.run("C:\\Program Files (x86)\\WideFS\\SayStatic.exe", lvString, EXT_HIDE)
    end

    Maybe this helps you.

    Rgds
    Reinhard

     

  2. On 3/4/2019 at 7:23 PM, stevem737 said:

    It's not just the 50+ scripts I'll have to write, though... it's the 6 additional entries that FSUIPC creates in the pull-down menu when one, single Lua script is put in the Modules folder (i.e., FSUIPC creates the additional LuaDebug___, LuaKill___, LuaSet___, Lua Clear___, LuaToggle___, and LuaValue___ for every Lua script).  So, there'd be 300 (50 x 6) additional entries in the FSUIPC pull-down menu.  It's not easy to scroll that massive pull-down menu, if one needs to make a change.

     

    Hi,

    Sorry for answering late but I was skiing in the Alps. Assigning LUA routines to buttons by assigning them via the button tab is not very efficient. If you do it like that, every time you activate one of your buttons, the LUA code must be loaded, compiled and then be executed.

    You really should look for the event library in the LUA library document. Using that method you only have to load the LUA modules once (maybe via the autoload functionality built into FSUIPC). Then these routines are waiting for the trigger events you have defined and execute the referenced function. Much more efficient to do it that way.

    Rgds

    Reinhard

     

     

  3. Hi,

     

    If you try to map something to the speedbrake at the Aerosoft A3XX professional, why aren't you using the spoiler axis. I have assigned one of my GoFlight levers to the spoiler axis. In addition I was able to implement the speedbrake arm function for a special area of the axis. As reference here the entries in my profile.

    [Axes]
    :
    5=GX,256,D,22,0,0,0	-{ DIRECT: Spoilers }-
    6=GX,B,12518,16383,66066,0,66067,0	-{ DIRECT: SpoilersEntering=SPOILERS_ARM_ON, Leaving=SPOILERS_ARM_OFF }-
    7=GX,B,8836,11413,66065,0	-{ Entering=SPOILERS_OFF }-
    :
    

    The entry no 6 is the zone above a detent. Entering this zone will arm the speedbrake. The entry no 7 is the detent on the throttle panel. Entering this zone will set the speedbrake off. Below the detent is the normal spoiler axis activating the speedbrake according to the position of the lever. Maybe this helps you to solve your problem.

     

    Rgds
    Reinhard

     

  4. Hi,

    Just two things to add:

    First: FSUIPC is the most valuable add-on for the simulator and it's absolutely worth the price, if you seriously work with external hardware.
    Second: The support is outstanding in the community. Every single question/problem is handled by Pete and brought to a solution. And all enhancements are free of charge

    Think about that.
    Reinhard

     

    • Thanks 1
    • Upvote 4
  5. 9 hours ago, Pete Dowson said:

    In P3D4 they should work no matter what. the P3D4 facility being used identifies the rectangle to be triggered AND the mouse action needed, and supplies that data to FSUIPC via the PDK functions. The replication of that mouse action is by P3D.

    Ahh - interesting to know. I am currently still on V3.4. But in two weeks, when I will have moved to my new flat, I will upgrade my system to V4. And then lets see, if this works now also for XML gauges. Thanks for upgrading my knowledge...

    Rgds
    Reinhard

     

  6. Hi,

    The Blackbox A320 uses XML gauges. They are not compiled with the SDK and therefore mouse macros won't work with that plane. But the BBS A320 uses a lot of Lvars, which you could control via LUA modules. Alternative you can create a macro file setting these Lvars, if you don't want to program LUA modules. Then you could assign these macros to buttons.

    Anyway it means a little bit reading in the FSUIPC documentation. And you have to understand the meaning of the Lvars, which you can extract via the sample LUA dumping all Lvars used.

    Rgds
    Reinhard

     

  7. On 6/12/2018 at 4:55 PM, ark1320 said:

    In the documentation for event.offset() it says:

    The function is also executed initially, when the plugin is first run, in order to initialise things. This saves using an explicit call to do the same.

    Pete,

    A quick question: Are there other event types, where the function is called initially to initialize things? A quick check in the documentation did not show other types? This would be good to know, to identify and possibly ignore such initial calls when starting up the LUA modules.

    Thanks in advance.
    Reinhard

     

  8. Hi,

     

    A small hint, how to do this efficiently. If you have assigned macros to buttons, they reference the macros via their number. So if you create a new version of the mouse macros, they must get the same numbers as before. How to achieve this?

    I typically record the new mouse macros to a new temporary macro file. The I copy the recorded values over to the old file. By that you are just replacing the entry points generated b the mouse macro utility without losing your assignments. At the end I delete the temporary macro file and delete the reference to it in the FSUIPC.INI file. 

    I hope this helps to recreate the macros for the new version.

    Rgds
    Reinhard

     

  9. Hi,

    A clear rule, which I follow strictly: If you work with FSUIPC, then configure things only via FSUIPC. If you want to use the own software, then stay with that software. Any mix of assignments, software components, etc. complicate things. And failures are not clear, where they have been created.

    I did everything via FSUIPC and LUA programming. No need for specific Saitelk or GoFlight software.

    Rgds
    Reinhard

     

  10. Hi,

     

    Check the "Advanced User Guide" for the chapter "Macros to change Lvars". You can increment/decrement Lvars  via macros. And then assign these macros to buttons. Pete built so many goodies into his product - it's always astonishing, what you can do with that fine piece of software.

    Rgds
    Reinhard

     

  11. Hi,

    The SDK allows to us for standard windows (like GPS) to use names (like GPS_PANEL). Behind them there are nubers coded. Here is the list of the corresponding numbers to the names:

    MAIN_PANEL					0
    MAIN_PANEL_ALT1					1
    MAIN_PANEL_ALT2					2
    MAIN_PANEL_ALT3					3
    MAIN_PANEL_ALT4					4
    MAIN_PANEL_ALT5					5
    MAIN_PANEL_ALT6					6
    MAIN_PANEL_ALT7					7
    MAIN_PANEL_ALT8					8
    MAIN_PANEL_ALT9					9
    THROTTLE_PANEL					10
    RADIO_STACK_PANEL				50
    COMPASS_PANEL					75
    MINI_CONTROLS_PANEL				100
    ANNUNCIATOR_PANEL				125
    ANNUNCIATOR2_PANEL				150
    IFR_MAIN_PANEL					175
    COLLECTIVE_PANEL				200
    GPS_PANEL					225
    OVERHEAD_PANEL					250
    PARKING_BRAKE_PANEL				251
    FLAPS_TRIM_PANEL				252
    FUEL_PANEL					253
    ELECTRICAL_PANEL				254
    TRIM_PANEL					255
    LANDING_GEAR_PANEL				256
    MISC_POPUP_1					260
    MISC_POPUP_2					261
    MISC_POPUP_3					262
    MISC_POPUP_4					263
    MISC_POPUP_5					264
    MISC_POPUP_6					265
    MISC_POPUP_7					266
    MISC_POPUP_8					267
    MISC_POPUP_9					268
    MISC_POPUP_10					269

    So for GPS_PANEL you use the parameter 225. User defined windows typically have numbers.

    Rgds
    Reinhard

     

     

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