Jump to content

Search the Community

Showing results for tags 'programming'.



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
  • Helicopter and Rotor Head Forum
    • Rotor Head Archive
    • Rotary Winged & Helicopter Flying
  • 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
    • WIN11 OS Forum
    • WIN10 OS Forum
    • WIN8 OS Forum
    • The Win7 OS Forum
    • System Hardware: PC | MOBO | RAM | CPU | HDD | SSD | PSU etc
    • Video Hardware: Monitors | Multi-Monitors | Video Cards | Drivers etc
    • Hardware Controllers: Joysticks/Yokes | Throttle Quads | Rudder Pedals | Drivers etc
    • 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
    • Lorby-SI Support Forum
    • Pilot2ATC Users Forum
    • The Carenado Support Forum
    • The Alabeo Support Forum
    • Aviasoft Remote CDU for Phone / Tablet Official Support Forum
    • Airline2Sim Support Forum
    • SX Airport Design 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
    • The PILOT'S Support Forum
    • Stick and Rudder Studios
    • Honeycomb Aeronautical
    • SimFly Pad Support Forum
  • 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

Categories

  • New Features
  • Other

Categories

  • AVSIM Publications

Blogs

  • Tom Allensworth's Blog
  • Gaiiden's Scroll
  • Brandon's Blog
  • 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 10 results

  1. 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
  2. Hello guys I'm having trouble programming PACOTS into the FMC when I program them it says the waypoint is like 4000nm away from me
  3. Hi everyone. I just dropped a bundle on some Saitek equipment and nothing works (sort of). What I mean is that individually everything works fine, but when I try them all together everything gets glitchy. I.e. throttles change the view, AP switches on and off IAS just goes to red line and plane falls out of the sky, rudders disengage the yoke and so on and so on. I am not a hard core sim pilot but just thought I would add some realism to my hobby. I cannot for the life of me figure this out as I thought that they would all work together out of the box. Can anybody point me in the right direction to program all of these units as I am about to give up and throw it all on e-bay. My units are: Pro flight yoke Pro flight rudder pedals 2-Pro flight throttle quadrants Pro flight multi panel Pro flight switch panel Side note: I am also using touch Pilot. Any and all input would be greatly appreciated. Thanks. Jim
  4. Hello, I would like to ask the community to see if there's any experienced programmers who specializes in Microsoft's Visual Studio. There was a 32-bit add-on for FSX and P3D v3 called PDF Kneeboard and it's such a must have tool for those who fly IFR/tubeliners. With the recent release of the 64-bit P3D v4, this add-on no longer works. It's basically a dll file. The source code is readily open and available for anyone who wishes to modify or add to it. So I was wondering if there's anyone here who may be interested in making this work with P3D v4. The source files are located here: https://github.com/nmeier/fscode/tree/master/pdfkneeboard Since I know nothing about programming, this is no task for me. I've already contacted the author and asked for permission to do so and he said it would be no problem, since he has no time to continue with this anymore, he's making it open source to anyone who wishes to do so. I'm not sure what it would take to make this 64bit compatible. Do you need to rewrite the code or just modify some parts, or simply just recompile it using a 64bit compiler?
  5. Hi all, using Linda 3.0.1 for P3D 64 bit just in a simple Beech Baron 58 with standard *FSX default (orange) settings. EFIS mode1 Ident GPS unable to launch GPS_ACTIVE_BUTTON 66614 neither Shift+3 record key press on any button on the MCP Combo MCP Mode and User Mode section working OK Standard *FSX Default working in MCP and User mode, not working in EFIS mode (VRiSim.exe and SerialFP2 working) Any suggestions? JanV
  6. Using LINDA 2.8.6 FSX-SE FSUIPC 4 I have coded several switches to manipulate LVars in an MFD I coded for the Lear45H aircraft in FSX-SE. The functions are in the aircraft folder in user.lua. This is the file path: C:\Program Files (x86)\Steam\steamapps\common\FSX\Modules\linda\aircrafts\Lear45H\user.lua Other files in that folder are: actions.lua ExtPFD-Learjet.exe ident.lua Lear45H-user.lua The code in the start of the user.lua are: -- Dummy user functions file -- =========================== -- This file is loaded right after main actions.lua script loaded. -- You can use this file to: -- 1. Override any functions or settings in main script -- 2. Execute any desired startup sequence for this aircraft (i.e. your own c&d state macro) -- 3. ... use your imagination -- Just a message in console _log("[uSER] User's modifications script is loaded...") ident = ipc.get("PATH_ACFT") .. "/Lear45H-user.lua" if file_exists(ident) then _log("[sTART] Functions found: " .. dir) require(ident) else _log("[sTART] Error not found Lear45H-user.lua: ") end strProgram = '"C:\\Program Files (x86)\\Steam\\steamapps\\common\\FSX\\Modules\\linda\\aircrafts\\Lear45H\\ExtPFD-Learjet.exe"' if file_exists(strProgram) then _log("[sTART] Lear PFD found: ") strCmd = 'start "" '..strProgram os.execute(strCmd) else _log("[sTART] Error not found Lear PFD: ") end function L45E_FMS () _L45E_FMS () end function L45E_NAV () _L45E_NAV () end function L45E_HSI () _L45E_HSI () end The Functions for example _L45E_FMS () are located in Lear45H-user.lua. These functions were assigned in the LINDA GUI and were contained in the User Functions drop-down when the Lear45H aircraft was selected. config-user.lua -- ## Jet Joystick ## (073822370) ## {NoSerNum} ############ JSTK["073822370"][1]="Brakes" JSTK["073822370"][5]="Flaps_up" JSTK["073822370"][6]="Flaps_incr" JSTK["073822370"][7]="Gears_toggle" JSTK["073822370"][301]="Trim_ELEVATOR_up" JSTK["073822370"][303]="Trim_AILERON_right" JSTK["073822370"][305]="Trim_ELEVATOR_down" JSTK["073822370"][307]="Trim_AILERON_left" -- ## DTA Pulse ## (16D004890) ## {NoSerNum} ############ JSTK["16D004890"][1]="L45E_HSI" JSTK["16D004890"][2]="L45E_TAC" JSTK["16D004890"][3]="L45M_Btn1" JSTK["16D004890"][4]="L45M_Btn2" JSTK["16D004890"][5]="L45M_Btn3" JSTK["16D004890"][6]="L45M_Btn4" JSTK["16D004890"][7]="L45M_Btn5" JSTK["16D004890"][8]="L45M_Btn6" The LINDA Lua editor showed a few errors which were corrected. When I open the aircraft in FSX-SE, everything seems normal, except I see no log messages from the user.lua file and apparently neither the Lear45H-user.lua module nor ExtPFD-Learjet.exe were loaded. I get an error when I pressed a button in the DTA Pulse HID. The LINDA Console displayed and the FSUIPC Log file contained the following: 13562 Running in "Microsoft Flight Simulator X", Version: 10.0.62615.0 (SimConnect: 10.0.62615.0) 13562 Initialising SimConnect data requests now 13562 FSUIPC Menu entry added 14640 \\DONNADAVEKITCHE\Users\DaveDonna\Documents\Flight Simulator X Files\Lear KAVL.FLT 14640 C:\Program Files (x86)\Steam\steamapps\common\FSX\SimObjects\Airplanes\Lear45H\Lear45.air 32125 Weather Mode now = Theme 36922 Aircraft="Learjet 45 CAF" 36937 System time = 19/01/2017 14:38:05, Simulator time = 14:37:59 (19:37Z) 125297 Starting everything now ... 125359 Using "C:\Program Files (x86)\GoFlight\GFDEV.DLL", version 2.2.6.0 125375 LUA.0: beginning "C:\Program Files (x86)\Steam\steamapps\common\FSX\Modules\ipcReady.lua" 125390 LUA.0: ended "C:\Program Files (x86)\Steam\steamapps\common\FSX\Modules\ipcReady.lua" 125640 LUA.1: *************************** STARTING LINDA ************************** 125656 LUA.1: LINDA:: [sTART] Loading System Configuration files 125765 LUA.1: LINDA:: [sTART] WARNING - All LUA logging switched off !!! 125781 LUA.1: LINDA:: [sTART] Go to Setup LINDA to switch on (if required) 125797 LUA.1: LINDA:: ********************************************************************* 126062 LUA.1: LINDA:: [sTART] System Configuration files loaded 128843 Advanced Weather Interface Enabled 148125 *** LUA Error: ...\common\FSX\modules\linda/aircrafts/Lear45H/user.lua:40: attempt to call global '_L45E_HSI' (a nil value) 204265 Sim stopped: average frame rate for last 83 secs = 8.5 fps Can you help me find what I am doing wrong? I cannot find in the LINDA GUI where to turn on the log but assume any _log function call would put the message on the console and in the FSUIPC log. The folder Lear45H was created using the LINDA GUI with the default FSX aircraft as a pattern. I was getting an error that the action.lua file was missing until I copied it from the FSX Default folder to the Lear45H folder. Thanks
  7. Hello there!Wierd behavior occuring off two buttons on the Throttle Quadrant of my Hotas Warthog. The 'RED' button on the throttle handle will release (but not set) the parking brake (?). I want it to reset the altimeter when I'm using REX real time weather. I went into FSUIPC and programmed the button to send the keystroke which I set up in FSX for altimeter reset (( ; )) it works ok and does reset the altimeter if REX Weather is operating. It ALSO kicks the parking brake OFF (if it's set) but doesn't cause it to come back on if I press the button again.From this I deduce:The button may be sending a braking command, which also turns off the parking brake.Darned if I can find out why this is happening. I use LINDA as well, I have NOTHING set in LINDA for the Red button. I use linda to fly my PMDG 737NGX.Spent a LOT of time on this with no joy.I did have TARGET software on the system, removed it (should I be worried there may be detritus from Target causing a problem?) Also temporarily tried out the G13 keypad but was not able to get it to work with FSX at all, so never programmed any buttons for it. I very well MIGHT have programmed the red button on the throttle handle to activate the parking brake in FSX - any help on this would be greatly appreciated, thanks in advance.
  8. In 2012 Robert Mc Donald had an article on programming of the Hotas Wartog. This was a marvel of an article but instead of the images that was in the article it just say Posted Image and nothing shows. Is it possible either to come in contact with Mc Donald or to find the posted images Henning R,
  9. I just thought I'd throw this out there to people who develop complex aircraft for FSX (and other platforms, I guess). A lot of people have external devices to control stuff. Lights, flaps, deicing, prop controls, autopilots. They use a button or a switch to control stuff you create on an airplane. As RealAir points out in at least one of their manuals, most accidents happen when the airplane is 'low and slow' and you don't want to mess around with a VC or bringing up a panel to do something critical so you program it into a button or a switch. So you program it into a button so you can keep from getting disoriented, even momentarily. So I progam my controls to keep my looking at my instruments or outside. After spending many hours trying to program my panel for a few buttons, I have realized that some things just can't be safely done due to the APIs provided. Here's my thoughts: Some things aren't modeled at all even though they are critical. Engine icing is an example. Flying along at 1500 feet in the soup, I have to turn my 'head' and physically click the button. There's, apparently, no API for this particular aircraft. Toggles. Critical things that are 'toggle' commands can be dangerous. If the effect of the switch can't be seen without turning your head (landing light toggles) then the toggle event may do the opposite. In small aircraft this is often simple because the switch is in front of the pilot...landing light...carb heat. In big aircraft, it's actually bad. You click the button you created on your control but you don't know if you turned it off or on. Thing is, turning your head (or glancing up) in a simulator is a lot more complex than in real life and, even though it's simpler in real life, that's what tends to kill a lot of pilots. So, if it's critical, create an API. Create an on and an off (and, sometimes, a toggle) if it's not visible to a pilot looking forward, don't make it a toggle. If you have to make it a toggle, flash a message on the screen..."engine ice on" "landing light on". It's more realistic since a pilot who flips a switch can feel it on their fingers. Just my two cents. I don't know how many folks have hardware with switches, maybe it's a lot, maybe not. It's at least something to consider when building a complex aircraft. Just one more blasted thing to think about.
  10. I have a non-FSUIPC application on my P3D client PC that emulates an FMC/CDU. I have an OpenCockpits CDU I want to use. The app sends out a code "0X00" to each USB to find the CDU connection. The app expects the code "FMS1" in return to establish a connection. Once the connection is made, the app expects keyboard key input to "click" the buttons. I know how emulate the button press thru SIOC but can't find how to read and reply thru the USB. There is no FSUIPC or defined Add Ons (e.g. PMDG).
×
×
  • Create New...