Search the Community

Showing results for tags 'lua'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • New Member Forums
    • Welcome New Members!
    • Help Using the AVSIM Forums
    • Help Creating an AVSIM Account and Logging on to AVSIM
  • AVSIM Fixed Based Operations (FBO)!
    • Hangar Chat
    • Flight Planning
    • Virtual Reality (VR) Hardware and Games
    • Letters to the Editorial Staff of AVSIM
    • All About Us
    • Crash To Desktop (CTD) Forum
    • The Bargain Hunter's Shack
    • Classified Ads | Want Ads | Swap Meet
    • AVSIM's Round the World Race Forum
    • Review Feedback
    • The File Library General Forum
    • Flight Sim & Aviation User Stories
    • In Memoriam of Tom Allensworth
    • In Memoriam
  • Microsoft Flight Simulator Forums
    • MS FSX | FSX-SE Forum
    • The Microsoft Flight Forum
    • The FS2004 (FS9) Forum
    • Flight Simulator Tips and Tricks
    • Shared Cockpits | Multi-Player Forum for FSX | FSX-SE | P3D
    • MS FSX | FSX=SE | P3D Simconnect Forum
    • FSX | P3D Missions Forum - How To
    • FSX/FSX-SE Aircraft and Panel Design Forum - How To
    • FSX | FSX-SE Scenery Design Forum - How To
    • The Paint Shop - The Aircraft Painter's Forum - How To
    • Mesh Scenery Design - How To
    • TTools for MSFS Forum
    • Add On Developer's Forum
    • DX-10 Discussions, Hints and Help
  • The Prepar3D Forums
    • The Prepar3d Forum
    • Prepar3D Tips, Tricks and How To's
  • The X-Plane Forums
    • The X-Plane General Discussions Forum
    • X-Plane Tips and Tricks
  • Simulator Screen Shots, Real Aviation Photos, & Videos
    • The AVSIM Screen Shots Forum
    • Real Aviation Photos
    • Aviation and Flight Sim Video Forum
  • Hardware & Operating Systems Discussions
    • WIN10 OS Forum
    • WIN8 OS Forum
    • The Win7 OS Forum
    • MOBO | RAM | CPU | HDD | SSD | Desktops | Laptops
    • Monitors | Multi-Monitors | Video Cards | Drivers
    • Hardware Controllers | Joysticks | Drivers
    • Networks | WIFI | Routers | Ethernet | DSL | Cable Modems
  • Commercial Support Forums (Hosted by AVSIM)
    • The PMDG Support Forum
    • FS2Crew Support Forum
    • OldProp Support Forum
    • Mindstar Aviation Support Forum
    • The RealityXP Support Forum
    • The Official DX10 Scenery Fixer Support Forum
    • The Multi-Crew Experience (MCE) Support Forum
    • Virtual Avionics Support Forum
    • Lorby-SI Support Forum
    • Pilot2ATC Users Forum
    • Propair Flight Official Support Forum
    • Icarus Development Forum
    • Remote CDU for Phone / Tablet Official Support Forum
    • Airline2Sim Support Forum
    • SX Airport Design Forum
    • P3D Tweak Assistant (PTA) and RealismShaderPack
    • The simPlugins Support Forum
    • SimSettingsManager Official Support Forum
    • simFDR General Support Forum
    • Blue Sky Star Simulations Support Forum
    • Capt. PERO Support Forum
    • The SkyPilot FSXAssist | P3DAssist Support Forum
    • Flysimware Forum
    • Mid-Atlantic Air Museum Simulations Support
    • Jane Rachel Whittaker - Blue Sock Studios Support Forum
    • FSReborn Series Support Forum
    • Desk Pilot - Shared Cockpits
  • User-to-User Support Forums
    • Photo Scenery Support Forum
    • The Carenado Support Forum
    • The Alabeo Support Forum
    • The AS16 and ASCA | Active Sky | Active Sky Next | XPAX Support Forum
    • The VOXATC Support Forum
    • The MILVIZ Support Forum
    • Radar Contact Support Forum
    • The Level D 767 | Wilco PIC 767 Forum
  • Freeware Support Forums
    • General Freeware Discussions
    • Little Navmap | Little Navconnect | Little Logbook Support Forum
    • The VATSIM | vPilot | FSInn Unofficial Support Forum
    • The Sweet FX Support Forum
    • The TinMouse Support Forum
    • The TileProxy Project Forum
    • LINDA
    • Mario Noriega Designs
    • SimLauncherX
    • FreeMeshX Global Support Forum
    • FSLaunchPad
    • PSXseeconTraffic for FSX | P3D
    • Terminal Procedures Forum
    • The Focus on Freeware Forum
    • The FS9 Evolution Forum
    • Ready for Pushback Forum
  • Virtual Airlines News and Discussion
    • VA News and Announcements
    • VA World!
  • Other Civil Aviation Simulators
    • Terminal Reality's FLY Series
    • Digital Combat Simulators (DCS) Forums
    • The AeroFly Simulator
    • The Outerra 3D Planetary Engine
    • The Flight Unlimited Series
    • The FlightGear Forum
    • Other Flight Simulation Software
  • International Language Forums
    • Deutsches Forum fuer die Flusi Gemeinde
    • Türkler için Flight Sim forumu
    • Forum de la Communauté francophone de Simulateur de vol
    • Foro de vuelo virtual en español
    • Forum della Comunità Italiana di Flight Sim
    • O fórum em português
  • Other Forums
    • The Phoenix Software Production (PSS)
    • The ProPilot Forum
    • The Flight School Hangar
    • The Captain Sim Support Forum
    • 777 Studios!
    • Helicopter and Rotor Head Forum
    • So You have Solo'd
    • Mountain Flying
    • Preflights
    • Weather - Understanding It and Safe Flight
    • Float Plane Flying
    • Home Cockpit Builders
    • The Wilco Publishing and FeelThere Support Forum
    • Russian Flight Simulation and Aviation
    • VictoriaPlus [Canada] Scenery Forum


  • Articles
  • AVSIM News
  • File Library News
  • AVSIM Reviews
    • Hardware
    • Aircraft
    • Scenery
  • Product Announcements & Press Releases
  • What's New @ AVSIM
  • Interviews
  • AVSIM Editorials
  • Guest Editorials
  • Obituaries


  • Tom Allensworth's Blog
  • Gaiiden's Scroll
  • Brandon's Box
  • Jess B's X-plane blog thingy
  • Tom_Test's Blog
  • Alpha Floor's Logbook
  • GolfPilot
  • adi518's Blog
  • Chase's Blog
  • The Big Tour
  • Tales of a Wannabe Pilot
  • Farmer Looking Skyward


  • I need help with the AVSIM Site...
  • Submit News or a Press Release
  • I want to be an AVSIM Volunteer Staff Member!
  • Contact Reviews Editors

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







About Me

About Me

Found 15 results

  1. thunderbird_vienna

    no landing touchdown sound

    Hello everybody, while my FSX Standard King Air or even the Carenado B200 do make clear noises of the wheels while touching down, I did not hear anything with the B1900 - and it is not that I am such a good virtual pilot:) Is there a way to enhance or change the touchdown sounds - I know it is not a PMDG 737 but putting such a bird onto a runway really is confirmed through audio. Thank you! Al
  2. I thought some of you might be interested in this new LUA file that is available for the TFDi 717. The hard work was done by a user called @Skipy, who used the FSUIPC event logging to gain all of the MCP's FSUIPC Event IDs. I just tidied up his work in progress and tested it in FSUIPC. :smile: As long as you own FSUIPC Registered version, with this LUA script you can assign keyboard commands to the 717's MCP - all functions work (mode buttons, -/+ knobs like the heading knob, etc), with the exception of the PROF button. This should also help users who use hardware such as the GoFlight modules, that can work with keyboard commands. Cheers.
  3. Hi. New to Lua and programming in general, am I right in assuming that the function name can be anything I choose that is descriptive of its use? also I am trying to figure out why my code below wont work, nothing happens when I programme a switch on my X-55 with it. I used the LInda Tracer to find the Lvar relevant to opening the cockpit side door on the A2A Spitfire, and (after un-pausing FSX-S) the door opens by a command sent from the Linda Tracer "Set Value" Toggle (Shift+Ctrl+Alt+F10). Any help much appreciated. Linda 2.9.2 (487) Module: - A2A Spitfire (User) FSX-Steam Registered FSUIPC Windows 10 (1607 - Build 14393.693) -- %% Side Door function SPIT_Side_Door_Open () LVarSet = "CockpitSideDoor" ipc.writeLvar(LVarSet, 1) end function SPIT_Side_Door_Close () LVarSet = "CockpitSideDoor" ipc.writeLvar(LVarSet, 0) end -- ## ############### OR put in a simpler way (I think?) -- %% Side Door function SPIT_Side_Door_Open () ipc.writeLvar(CockpitSideDoor, 1) end function SPIT_Side_Door_Close () ipc.writeLvar(CockpitSideDoor, 0) end -- ## ############### Many Thanks Roger
  4. I found a couple of great fsuipc LUA scripts to use with the NGX for those who use hardware throttles like the saitek, think one been mentioned before in a posting, but thought I'd create a single thread and republish for those new NGX users or lucky simmers that got hardware for Christmas. The first is a great LUA that allows you to easily set and control reverse thrust. Basically you can assign a throttle lever so that when you bring it all the way down past the detent on the saitek throttle hardware which activates the button it puts the engines into reverse, so now when you push the levers forward you are controlling the amount of reverse thrust, so operating just like a throttle lever but controlling reverse, dropping it back to idle disengages reverse and you have normal throttle control, so it's a more realistic way of having reverse. You can map this to one lever, or two levers if you use multiple levers to control each engine. To me it's a very good way of making use of your throttles to better mirror how it be in real life just without a physical reverse thrust lever to pull. Link Second one which comes with fsuipc and is in the LUA examples file, is a sync one. This is great for helping with correcting the issues that effect the throttle levers especially as they get older where although the physical position of two levers may look the same on your hardware, they haven't sent the same amount of travel to the sim so can find it hard to get your engines in sync. Basically it monitors the engines and if they not quite synced it automatically syncs them, it still allows you to apply different thrust to each engine(say for turns on the ground etc) due to the parameters it uses for out of sync. But it's a great tool for flying manually especially approaches and not finding you have varying thrust on each engine due joystick calibration issues. Combined with the LUA above it again excellent at ensuring you apply symmetrical reverse thrust. These have really enhanced my use of the NGX and hardware.
  5. Hello, Could you help me please ? How can i use functions who are in actions.lua through FSUIPC ? actions.lua from : Example in FSUIPC : Key presses : SET : CTRL + J >>> NGX_PUMP1_AFT_toggle or Buttons + Switches : SET : 1 >>> NGX_PUMP1_AFT_toggle Thanks for help. PS : i have create a specific FSUIPC macro for the test, but i dont want do this for each function. PMDGBaseVar = 0x00011000 -- 69632 PMDG_ClkL = 0x20000000 -- 536870912 PMDG_ClkR = 0x80000000 -- -2147483648 PMDG_dec = 0x00002000 -- 8192 PMDG_inc = 0x00004000 -- 16384 PMDG_RelL = 0x00020000 -- 131072 PMDG_RelM = 0x00040000 -- 262144 PMDG_RelR = 0x00080000 -- 524288 function NGX_PUMP1_AFT_off () if ipc.readLvar('ngx_switch_37_a') ~= 0 then ipc.control(PMDGBaseVar+37, PMDG_ClkR) DspShow("PMP1", "Aoff") end end function NGX_PUMP1_AFT_on () if ipc.readLvar('ngx_switch_37_a') ~= 100 then ipc.control(PMDGBaseVar+37, PMDG_ClkL) DspShow("PMP1", "A on") end end if ipc.readLvar('ngx_switch_37_a') == 100 then NGX_PUMP1_AFT_off() else NGX_PUMP1_AFT_on() end PS : i have also test an include in lua MACRO file !? But dont still work ? require("scripts.actions") NGX_PUMP1_AFT_toggle() end Thanks for advance; Sky
  6. Hallo, ich möchte mir für die Phenom 300 von Carenado ein G1000 MFD- und PFD-Panel bauen. Meine Überlegungen gehen dahin, dass ich z. B. die Softkey12-Taste auf meinem gebauten Panel drücke und dieser Tastendruck so interpretiert wird, als hätte ich mit der Maus auf eben diese Softkey12-Taste im FSX geklickt. Dazu müsste ich aber die Koordinaten des Mauszeigers auf den einzelnen Tasten kennen. Ich stelle mir vor, dass mir die z.B. als Tooltip oder in einem kleinen Fenster beim darauf Klicken angezeigt werden. Das soll u. a. mit LUA gehen. Hier gibt es den "mouse.getpos(x,y)" Befehl. Ich habe damit schon herum probiert, bekomme es aber einfach nicht hin. Es wäre super, wenn mir jemand, der sich mit LUA auskennt dabei helfen könnte. Hier mein Versuchs-Script: --Koordinaten des Mauszeigers printx = 0 printy = 0 function MausKoordinaten(x,y) mouse.getpos(x,y printx = x printy = y end if ==1 then print("PosH: " ..printx, "PosV: " ..printy) end if Alternativ könnte nach betätigen der Taste an meinem gebauten Panel das Ereignis ausgeführt werden, dass sich hinter der Softkey12-Taste im FSX verbirgt. Dazu müsste ich aber herausfinden wie das jeweilige Ereignis heißt, damit ich es dann per LUA-Script aufrufen bzw. anstoßen kann. Ich habe gesehen, dass in den XML-Dateien des Gauges verschiedene Makros enthalten sind. Vielleicht können die ja via Lua und Parametern angestoßen werden. Da es sich hier um ein XML-Gauge handelt, entfällt die Möglichkeit des Mausmakros über FSUIPC. Und über LINDA und Log vars.lua bekomme ich nicht alle LVars heraus. Hat jemand eine Idee wie ich hier vorgehen könnte? Besten Dank im Voraus für Eure Hilfe. Holger
  7. I don't know if this is the correct section to post. I'm modifing/editing a LUA plugin in FSX:SE, so when I change and save the .lua file I need to test it in FSX:SE (I use FSUIPC to start .lua plugin via keypress). Every time I want to test modifications I have to exit FSX and reload it, so is there a way to avoid it and test my edited plugin? Thanks a lot
  8. LINDA employs LUA 5.1 as the engine to interpret the LUA code used my LINDA and its modules (see \modules\linda\lua). The current version is LUA 5.3 which is only available as C++ source code via Are there any LINDA users familiar with C++ who could assist me in creating a new updated LUA distributable package?
  9. First of all, with MouseClicks you can solve many common problems. Just try with a Lua-Script to Start or Close Engines for the PMDG NGX 737 or try to open the Terrain MAP + Terrain Height on the ND Instrument in automatic. With MouseClicks you can do it. MouseClicks will be available very soon. When MouseClicks Hook-System is activ (intercepting Keyboard) you can still use the Keyboard for other Functions that are not assigned to a Click-File. MouseClicks in NOT connected to any Game or else. You can use it for any Game or else. MouseClicks is including a "Key.txt" File with 47 special Keys/Char you can change for different Keyboards. MouseClicks is executing like the Pilots Hand is moving. Create MouseClicks Files This example is a ClickFile for PMDG NGX 737 The Pilot movements for selecting the Terrain-Data on the ND-Instrument. It seems complicated but it isn't. 1. We create the MouseClickFile or only a Keyboard File Show Terrain_On_Off on the ND Instrument. --- From any actual View switch to the 2D-Panel {F10} --- execute Keyboard Keys --- MouseClicks are executed on the EFIS Control Panel like a Pilot would do. Selecting the MAP ND-View, Selecting Terrain Height(click on center-knob) then click on [Terrain]. --- The ND Instrument is now showing the Terrain Display with the Terrain-Map and the Terrain-Height if both are selected/included. 2. a) We add (View 1) a Joystick-Nr or any Joystick Button Combination. B) We add (View 1) 1 or several Keyboard Keys or Key-Combinations; normally we use a) or B). Joystick number-values are assigned in automatic using 1 or more Joy-Buttons together. 3. With View (2) we can execute any File using the Mouse > click on a Filename. If a File is connected to the Joystick or Keyboard we can execute the File with View(2) or Joystick or KBD. Joystick connection 262144 - Terrain_On_Off is executed. DOORS Using a pure Keyboard File without Mouseclicks included. In this example we open the 2. Door. 1. Door opened (Shift + e) 2. Door is using (Shift + e) then, the delayed Key {2} FSX in Full Screen Just select the Keyboard Keys and save with View (1) Execute as separate File or within another File. Execute via Joystick or 1 Keyboard-Key only or just click on the FileName - View (2) Engine + Lights on Overhead Panel (shift + 6) - From any actual View you switch to any other Panel or Overhead in automatic. - ENGINE Start - ENGINE Stop - Overhead Panel is Fixed. - Execute each Mouseclick x Start or Close engines. Mouseclicks open Switch Covers, click on Switch, close Switch cover. Keyboard Keys a included within the ClickFile. Mouseclicks are executed in sequence like the Pilot Hand is doing. Intrasystem .
  10. Has anyone written a LUA script for FSUIPC to add elevator trim sounds? I want to add a trim clacking sound to my Dassault Falcon 50 but not sure how to implement this via FSUIPC. Thanks Adam
  11. Hi Folks I'm working on a mission/job for the airport's Job Boards. I need to inhibit my job from being generated at small airports with short runways I've populated GeneratedAirport - GeneratedAirport_Current with an appropriate MinRunwayLength value. Unfortunately that's not inhibiting my job's generation at small airports. Guessing that only the SimMissionUI.ScenarioMetadata and Career.CareerMissionMetadata are evaluated by the Job Board's script. I also had a brief play with / guess at a LUA script, in Career.CareerMissionMetadata - DisplayRequirements <CareerRequirements>return ( get_runway_length('{8D625BDF-2FF3-4583-9CC7-B70707AE5816}') >= 2743 ) </CareerRequirements> For test purposes - I've forced an increased frequency of generation. by temporarily raising the Career.CareerMissionMetadata - TemplateWeight to 5000. I also noticed a couple of unexpected aspects - - Very small airports consistently generate my jobs as a high proportion of total, whilst larger airports, (blue), only generate one or two. - Some specific airports consistently generate an unusually high number of these jobs. (e.g. Hoonah 7 or 8) Any pointers/tips would be much appreciated. Either by reply, or if required, PM me. ATB Paul
  12. ScotFlieger

    FSX Reverse Thrust

    With FSX, F2 is pressed and held to engage reverse thrust. FSUIPC4 can be programmed to assign a joystick or throttle quadrant button (I use the Saitek Throttle microswitch button) to brake the aircraft on landing. However, this cannot be used as a LINDA command as F2 opens the Lua Editor. Is there a FSX Command that can be used in Linda to activate reverse thrust?
  13. Here is the first iteration in development of PM/Prosim module. What's done: Display sync with VRi MCP Combo All MCP Dials working (CRS/SPD/HDG/ALT/VS) CRS rotary works for both left and right course (press knob to toggle) Vertical speed indication (not tested, but should work) What's NOT done: NO BUTTONS ACTIONS NO EFIS ROTARIES ACTIONS Instead of that you can use the default FSUIPC assignments for Project Magenta. Go to the FSUIPC Buttons & switches control panel, tap VRi MCP button or turn the knob - it will be detected as joystick button press. Then mark the "Include Project Magenta" checkbox and select th desired action for this button or knob from the drop list. 1. Don't forget, that you should set both "Press" and "Release" actions in this panel for each button (...or else you will need to press each button twice to get action executed). 2. Don't forget, that you should remove any assignments made for VRi MCP dials inside FSUIPC, or LINDA will be unable to catch them. How to use: Assuming you have already installed LINDA and it works properly Download module: LINDA Project Magenta v0.1a (15 aug. 2011) Unzip both folders from Zip into: */FSX/Modules folder Run LINDA Choose "Project Magenta" aircraft from the droplist (switch off the FSX SYNC if it's enabled) Press "Edit" button Select your PM'ed or Prosim'ed aircraft folder from the list Save! (press "Edit") Run FSX and load your aircraft Check LINDA's console - it should say on some line: Module: Project Magenta Started... Now it should work - try to turn VRi MCP knobs and see if PM/Prosim reacts on your input Note: For some reason Prosim doesn't work on my system with FSUIPC offests. So the module was tested and working with time limited Project Magenta modules, but it should work with Prosim too, as they are using the same offsets for data exchange.
  14. AlexandreMBM

    Open source

    Hello! I try to understand why the freewares that are around of Flight Simulator, as many exposes its source code, do not declare open source licenses. There are many scripts to run a same aircraft, and all the works, if were managed publicly in a version control system, Git repositories at GitHub, for example, it would be much better. Perhaps the fact of we are using Microsoft's closed APIs is a disincentive to look for a suitable license model. But I'm sure you can find it. There is the possibility of the Microsoft have interest in guide us about. Projects are already scattered around and she just needs to get more involved with them, taking the opportunity to make her open source marketing. What is my purpose with this topic? Do note that many individual development efforts exists and are being underused by the community. Failure to use licensing and of processes for efficient collaboration in coding are, in my view, the two main impediments. Sending codes in a forum is hugely disadvantageous if compared to having a open projects on GitHub. Projects for which I have looked when thinking these observations: LINDA, FSUIPC, SPAD and some Lua scripts for the aircraft Jetstream 41. Sorry my poor english. I speak portuguese natively. Alexandre Magno from Brazil
  15. Hello all, Just a little something that I thought I would share with you all. if you're interested in seeing how hard your landings are (for *every* landing!) here's a little Lua script for FSUIPC (I believe you need the payware version for it to work!) I can't take full credit for it, as I found the basic version elsewhere. I just added a few lines here and there. Basically, every time you land a little box will pop up at the side of the screen showing you how hard your touchdown is in Feet Per Minute. The box will then disappear after 15 seconds. Simply copy this code into a text file and save it as "ipcReady.lua" in your FSX/P3D Modules folder. Start the sim and get practicing! ipc.setowndisplay("FPM", 0, 60, 6, 1) function logvs(off, val) if val ~= 0 then -- if on ground flag just set, get VS, convert it and log it vs = ipc.readSD(0x030C) --original was 030C then 31A0 vs = vs * 60 * 3.28084 / 256 ipc.log("Vertical speed at touchdown = " .. math.floor( (vs * 10^2) + 0.5) / (10^2), 5) ipc.display(math.floor( (vs * 10^2) + 0.5) / (10^2), 15) end end -- set to call above routine whenever "on ground" flag changes event.offset(0x0366, "UW", "logvs") Hopefully some people can add some additions and we can improve it together!