Search the Community

Showing results for tags 'Lua'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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
    • Virtual Reality (VR) Hardware and Games
    • Letters to the Editorial Staff of AVSIM
    • In Memoriam of Tom Allensworth
    • 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
    • The Focus on Freeware Forum
    • Flight Sim & Aviation User Stories
    • In Memoriam
  • FlightSimExpo 2018
    • FlightSimExpo 2018 Discussions
  • FlightSimCon 2018
    • FlightSimCon 2018 Discussions
  • 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
    • MS FSX Missions Forum
    • MSFS Aircraft and Panel Design Forum
    • MSFS Scenery Design Forum
    • The Paint Shop - The Aircraft Painter's Forum
    • Mesh Scenery Design
    • 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
    • X-Plane Tips and Tricks
    • The X-Plane General Discussions Forum
    • The X-Plane Scenery Forum
    • The X-Plane Aircraft & Panel Design Forum
    • X-Plane Addons
    • X-Plane Add-On Developer's Forum
  • The Dovetail Games (DTG) Flight Simulator Forums
    • The Dovetail Flight Sim World
    • The DTG Flight School Forum
  • Screen Shots, Videos & The Gallery
    • 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 (Official)
    • The PMDG Support Forum
    • FS2Crew Support Forum
    • FSFX Packages 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
  • Commercial Support Forums (Unofficial)
    • Photo Scenery Support Forum
    • The TerraBuilder Forum
    • The Carenado Support Forum
    • The Alabeo Support Forum
    • The AS16 and ASCA | Active Sky | Active Sky Next | XPAX Support Forum
    • The OpusFSX Forum
    • Fly the MaddogX Unofficial Support Forum
    • The FTX | ORBX Support Forum
    • Lionheart Creations Forum
    • The Majestic Software | Dash 8 Support forum
    • The Commercial Level Simulations (CLS)
    • The AeroSim Support Forum
    • The VOXATC Support Forum
    • The I-Fly Support Forum
    • The MILVIZ Support Forum
    • Radar Contact Support Forum
    • The Level D 767 | Wilco PIC 767 Forum
    • Infinite Flight Forum
    • The Wilco Publishing and FeelThere Support Forum
    • Night Environment | Black Marble | Blue Marble Forum
    • The SIM720 Forum
    • Infinite Scuba Simulation Forum
  • Virtual Airlines News and Discussion
    • VA News and Announcements
    • VA World!
  • Other Civil Aviation Simulators
    • Terminal Reality's FLY Series
    • FLY! Legacy
    • The Rise of Flight General Forum
    • The AeroFly Simulator
    • The Outerra 3D Planetary Engine
    • The Flight Unlimited Series
    • The ProPilot Forum
    • The FlightGear Forum
  • Digital Combat Simulators (DCS) Forums
    • DCS World!
    • The DCS P-51 Mustang Forum
    • DCS A-10C Warthog
    • DCS Black Shark
  • Combat Flightsims
  • General Combat Flightsims
  • Falcon 4 - Allied Forces
  • Flight Schools
    • The Flight School Hangar
    • So You have Solo'd
    • Preflights
    • Weather - Understanding It and Safe Flight
    • Flight Planning
    • Mountain Flying
    • Float Plane Flying
    • Rotory Winged & Helicopter Flying
  • 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
    • Desk Pilot - Shared Cockpits
    • Mario Noriega Designs
    • SimLauncherX
    • FreeMeshX Global Support Forum
    • FSLaunchPad
    • PSXseeconTraffic for FSX | P3D
    • Terminal Procedures Forum
    • The FS9 Evolution Forum
    • Ready for Pushback Forum
  • 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 Unofficial PSS Forum
    • 777 Studios!
    • Russian Flight Simulation and Aviation
    • Drawbridge Designs Forum
    • VictoriaPlus [Canada] Scenery Forum
    • Other Flight Simulation Software
    • Helicopter and Rotor Head Forum
    • Orbiter and Space Sims
    • Home Cockpit Builders
    • Racing Fools Forum
    • AVSIM User Surveys and Opinion Polls Forum
    • The Captain Sim Support Forum

Categories

  • 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

Categories

  • New Features
  • Other

Categories

  • AVSIM Publications

Blogs

  • 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

Forms

There are no results to display.


Found 12 results

  1. Hi all, I am currently in the process of building a LINDA Module for the new Captain Sim 757 III. I have recorded all LVAR data and have been able to use it for switches and buttons with the VRInsight MCP Combo 2 (Boeing). However, my problem lies with displaying SPD/IAS, HDG, ALT and V/S information on the VRInsight LCD Display and using the various rotary dials. When I try to add code for them, the dials don't respond and nothing appears on the LCD Display. I've been able to display SPD/IAS, HDG and ALT when LINDA is first loaded and the MCP boots up, but that's it. Does anybody have any example script they can give me to start me off? I'm a fast learner! I've been looking at other modules to help get an idea of things, but still need someone to identify and explain certain things. Many thanks for any help - I'm eager to write it all as soon as possible! Pete
  2. Searching for LUA Developer

    Hello, I made a Cessna Home cockpit and to make it works with A2A C182 & C172 I need to make a LUA Script with A2A LVAR. Because I don't know how to code on LUA, I'm cherching a developper for a LUA mission. You can contact me on MP to discuss the modality and the prices. Waiting for your answer Ludo
  3. Linda on a 4K monitor

    Thank you so very much for Linda. I've been a flight simmer since the SubLogic days (1980s) and owned my own plane when I was much younger. I recently began using Linda with P3Dv4 after I bought a USB button switch box. The Linda interface is so tiny on my 4K monitor it's difficult to read with my old eyes. I was just wondering if there is any way to enlarge the program and have larger fonts. Thank you for a fabulous program, your time and consideration. OldBob
  4. 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 4.9.6.2 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
  5. 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 mouse.click(0) ==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
  6. 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. http://forums.tfdidesign.com/index.php?/topic/731-here-you-go-lua-script-for-the-717s-mcp-attached/ Cheers.
  7. Hello, Could you help me please ? How can i use functions who are in actions.lua through FSUIPC ? actions.lua from : http://www.avsim.com/topic/341971-pmdg-737-ngx-module-47-new/ 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
  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 www.lua.org. Are there any LINDA users familiar with C++ who could assist me in creating a new updated LUA distributable package?
  9. 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
  10. 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 .
  11. 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!
  12. 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