Jump to content

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
    • 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
    • AVSIM Reviews Feedback
    • The File Library General Forum
    • Flight Sim & Aviation User Stories
    • In Memoriam of Tom Allensworth
    • In Memoriam
  • Microsoft Flight Simulator Forums
    • Microsoft Flight Simulator (2020)
    • MS FSX | FSX-SE Forum
    • The Microsoft Flight (2012) 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
  • The IPACS Aerofly Forums
    • IPACS AeroFly FS2
  • 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)
    • FS2Crew 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
    • The Carenado Support Forum
    • The Alabeo Support 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
    • Flysimware Forum
    • Mid-Atlantic Air Museum Simulations Support
    • FSReborn Series Support Forum
    • Desk Pilot - Shared Cockpits
    • PhotoSim Labs - Bahamas sceneries
    • Fulcrum Simulator Controls
  • User-to-User Support Forums
  • Freeware Support Forums
  • Virtual Airlines News and Discussion
  • Home Cockpit Builders
  • Other Civil Aviation Simulators
  • International Language Forums
  • Other Forums

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

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


About Me


About Me

Found 7 results

  1. 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.
  2. 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
  3. 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
  4. 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
  5. 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?
  6. 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
  7. 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!
×
×
  • Create New...