Jump to content
The simFlight Network Forums

Dirk98

Members
  • Posts

    154
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dirk98

  1. Reinhard, I'm trying to follow your advice to combine 2 different LUA files into one, based on 2 examples of LUAs I posted above. Please advise what is missing after the merge: Lol, I can imagine there should be some ref. enumeration of the functions first, so could you please add the necessary lines? Much thanks, Dirk.
  2. Reinhard, what works better performance wise in general? Many small lua files corresponding to each function, or one big lua file with all the pieces of separate LUA codes? The part of registering events for the GoFlight buttons is obvious, but how about enumeration of small pieces of code in one list? What is the format or better an example? Thanks, Dirk.
  3. Guys, please help me out with 2 small lua files for VS Inc and VS Dec functions of FCU. I've collected most of the lua files needed to control principal FCU buttons and rotaries from the past discussions of Pete, guenseli and Kaptejnln. Luckily most of the examples of short single Luas made by Kaptejnln work just fine in AXExtended and I use them to control buttons and rotaries on FCU via FSUIPC. But for the life of me I can not figure out lua scripts for VS Increase and VS decrease, and actually VS is the last function that I need to map to my GoFlight modules. I'd greatly appreciate somebody posted the required text for the 2 luas here. Much thanks, Dirk.
  4. Hello, Is it possible to combine somehow 2 Lvar controls in one lua file? For example, I have one lua file to toggle FD and another lua to toggle ATHR in Airabus X Extended: AXE_FD.lua FD = ipc.readLvar("L:AB_MPL_FD") if(FD == 1) then ipc.writeLvar("L:AB_MPL_FD", 0) else ipc.writeLvar("L:AB_MPL_FD", 1) end ipc.writeLvar("L:SmallOverheadPushButtons", 1) AXE_ATHR.lua AXE_ATHR ATHR = ipc.readLvar("L:AB_AP_ATHR", 1) if(ATHR == 1) then ipc.writeLvar("L:AB_AP_ATHR", 0) else ipc.writeLvar("L:AB_AP_ATHR", 1) end ipc.writeLvar("L:SmallOverheadPushButtons", 1) If I map all my goflight pushbuttons and rotaries to AXE functions I'll end up with dozens of separate lua files in Modules folder. Is it possible to make it more compact, for example, combine Lvars into one file, or drop all LUAs in a folder and show the path to it in FSUIPC.ini etc? Thanks, Dirk.
  5. Ok, I've written my first LUA! Lol, as if I understand anything, but somehow it works: ============================================================ FD = ipc.readLvar("L:AB_MPL_FD") if(FD == 1) then ipc.writeLvar("L:AB_MPL_FD", 0) else ipc.writeLvar("L:AB_MPL_FD", 1) end ipc.writeLvar("L:SmallOverheadPushButtons", 1) ============================================================= This code switches FD in AXE. I wonder if there is Lvar for FD toggle in AXE? I imagine too many "If" loops can be bad for performance. Thanks, Dirk.
  6. Hello, Kaptejnln, Does this work for AXE? I'm trying to assign some of my GoFlight buttons and rotaries on MCP and RP48 to the internal functions of AXE via your lua scripts. Do you know if there are updated files for AXE that can be used for programming GoFlight modules. I tried Linda, but Linda does not have interface to read GoFlight inputs. Thanks, Dirk.
  7. What if I don't want FSX ever recognize my joysticks (and write it in Controls.xml?) Can I disable all joysticks in FSX (was it Ctr+K?), assign all axes in FSUIPC, exit FSX and make Controls.xml ReadOnly? Thanks, Dirk.
  8. Madfred, I've registered and clicked activation on the http://www.flightsimulatornetwork.com forum, unfortunately it's not enough as I still can't open the links to FSUIPC tutorial pdf and CH Controls that I also need. I'm stuck at this message: Thank you Sabre. Your registration has been submitted.The community administrator has chosen to require validation for all email addresses. Within the next 10 minutes (usually instantly) you'll receive an email with instructions on the next step. Don't worry, it won't take long before you can post! Could you pls help me out with the above? Just in case, if you use CH joysticks and CHManager pls let me know as I've found something interesting to report about in FSX, need to rectify the finding yet with other CH users (and I've used CHCombo for 10 years already). Thanks, Dirk.
  9. That's exactly what I'm trying to attain, thanks Reinhard! Cheers, Dirk.
  10. Thank you very much, Pete, as always you give the best support far beyond the scope of the software that you developed. Cheers, Dirk.
  11. Very informative answer, thanks, Pete. Just a couple of questions yet: 1. You mentioned 8 assignments per rotarty, 4 in each direction. Sorry, I don't quite understand here as I always dealt with 4 assignments per rotary, 2 in each direction, i.e. dual speed (normal and fast). What are the extra ones that you mentioned? I guess "Control sent when button pressed" and "Control sent when button released". Could you please give an example of using the latter one for programming a rotary? What could be useful to put in there ("released" window)? 2. Usually when I can't use FS controls in an add-on plane and I don't want to use keystrokes assignments (offered by the developer) I use Mouse Macros (L/R mouse buttons, wheel fwd/back). Is using of Mouse Macros generally faster than assigning to keystrokes (if offered by developers)? This may be particularly important for rotaries. H/w buttons are not really a problem. 3. You mentioned the use of Lua plug-in programming for FSUPC, does LINDA provide something similar? I'm thinking of studying LINDA but if it's just a different GUI for FSUIPC, I'll stick to using FSUIPC interface. Sorry, I may well be wrong here in my understanding of what LINDA really is. Thanks, Dirk.
  12. Guys, could you share your recommendations for programming and fine-tuning GoFlight rotaries (like those on RP48, 166A VRP and many others) via FSUIPC interface? I use GF rotaries for "in-game" rotaries in many add-on planes, like Wilco's 737, iFly 737 and many many others. In principle I know how to assign them in FSUIPC's Joy#/Btn# interface or directly to FS controls when supported, so this is not my question. The problem sometimes is that the resulting movement of the "in-game" rotaries, that require special programming via keystrokes on many add-on aircrafts, is not that smooth, compared to, for example, to generic hdg, crs, alt rotaries supported by default fsx. Is there any fine tuning in FSUIPC for this matter, like a different polling interval and maybe some others? Again, for example, I noticed on some rotaries it's not a very good idea to use different assignments on the slow and fast rotate, but use instead the slow rotate on the both. Please share your methods. Thanks, Dirk.
  13. This is a very elegant way. I should have guessed it myself. :) Thanks! Dirk.
  14. Yes, Pete I meant to program a press on a joystick button that would send F15 key to FSX in FSUIPC interface. If I were to send any key F1-F12 to FSX that would be easy as I would just press a corresponding key on the keyboard in the corresponding FSUIPC's window in the GUI. But I'd like to send a virtual keystroke not existing on the keyboard (from F13 to F24). Thanks, Dirk.
  15. Hello, could you please give a short example of how to make a dx button press in FSUIPC's UI send a virtual key (say, F15) to FSX? Of course, I have no problem with FSUIPC sending real keyboard keys and I know where the virtual key code list is in the manual (FSUIPC4 for Advanced Users.pdf page 17-18). Many thanks, Dirk.
  16. Wilco on the WideFS documentation and what document could be a starting point to take on "the 'ext' library added to Lua for FSUIPC and WideClient"? Thanks, Dirk.
  17. Hello, can I specify in Wideclient.ini the software I'm sending keys to? On my client pc there may be different windows active at different times when I'm sending keys from wideserver pc. If so what is the syntax? Thanks, Dirk.
  18. Thank you, Paul. I enjoy reading your comments, and they are very helpful! I'll try to play with the settings and see what works best for me this time. I'll also try to recall my ways of handling and saving settings. I think I used to change the values from my client PC manually and reload fsx situation right away to see the affect. Regards, Dirk.
  19. Paul, thank you, very helpful. Glad to see you still visit this forum. How do you set up and save your views in VC? By manual editing? EZDOK can do excellent job assigning the views. But I find it too conceptual for my simple needs. I haven't finally decided yet on how create views for VC in FSX. Dirk.
  20. I meant to say I used some fast method to adjust camera views and save them in 3D without typing in InitialXyz and InitialPbh values manually. This is still very helpful: I didn't ask that time, how would "HotKeySelect=n" statements below "CameraDefinition.xxx" sections in aircraft.cfg and cameras.cfg cooperate with each other? (as Paul referred to aircraft.cfg explaining "HotKeySelect=n" statement, and I found those in Cameras.cfg as well). Dirk.
  21. Hello Paul, If you still visit this forum, I recall I could somehow assign POV angles and different views to cameras with some 'save' button (was it in FSUIPC or FSX I don't remember). I'm getting back to FSX after a major upgrade of my pc (2600k/gtx580). Unfortunately I can't remember most of the vew/cameras methods I had learnt and used. Thanks, Dirk.
  22. I knew I could rename titles to numbers but I was cautious as I thought that could side effect something else in the panel. This looks more safe. Thanks, Baron! Dirk.
  23. Hello guys, Are there numbers corresponding to the worded idents like: OVERHEAD_PANEL THROTTLE_PANEL CDU and some others? I need this for Panel ID Toggle facility in FSUIPC. Thanks, Dirk.
  24. Dedicated? Of course the aircraft being used needs to reasonably match whatever PM supports -- see their website. But in general you have to strip out most if not all of the gauges and stuff. You only need the flight model, and optionally the aircraft body -- if you want to see the outside (not otherwise). I use the PMDG 737-700 or -800 from FS9, but with no panels. But I only use that because I have a good aircraft file for it for PM, made by one Stamatis Vellis in Athens long ago. The PM aircraft file tells its MCP/Autopilot/FMC what performance, fuel consumption, etc to expect. You could make one to match even the default FSX 737NG, which isn't at all bad provided you dispense with its A/P and overhead. Yes, I do. In fact I've got a BA livery on my 737-700, which is of course actually fictional because BA don't use any 737NGs. Regards Pete Wow, that's interesting! Particularly the very last comment regarding BA. :D I was shocked to see how many airbuses there were in service in US, actually the only planes I flew (NY Ca Il back and forth) last/this year were A320 and E-195. I've saved the discussion in a safe corner of my HDD, I always get back to it at some point. Thanks again, Dirk.
×
×
  • 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.