Jump to content
The simFlight Network Forums

ark1320

Members
  • Content count

    168
  • Joined

  • Last visited

  • Days Won

    4

ark1320 last won the day on July 27

ark1320 had the most liked content!

Community Reputation

4 Neutral

About ark1320

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Colorado, USA

Recent Profile Visitors

757 profile views
  1. Yes, a good lesson! Thanks very much for the help. Al
  2. Hi Pete, Below is information from the FSUIPC4.LOG files for the Baron 58 and B737. Al Baron B58 1141 SimConnect_Open succeeded: waiting to check version okay 1141 Trying to use SimConnect Acc/SP2 Oct07 1141 Opened separate AI Traffic client okay 3563 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0) 3563 Initialising SimConnect data requests now 3563 FSUIPC Menu entry added 3594 C:\Users\Al\Documents\Flight Simulator X Files\Default Safe Flight Baron 58 35L KCOS.FLT 3594 C:\FSX\SimObjects\Airplanes\Beech_Baron_58\Beech_Baron_58.AIR 4219 Monitor IPC:060C (U8) = 0 50313 Aircraft loaded: running normally now ... 50313 User Aircraft ID 1 supplied, now being used 50641 System time = 18/10/2017 16:30:02, Simulator time = 11:49:47 (17:49Z) 50641 Monitor IPC:060C (U8) = 2 50641 SimRead: 060C="IS GEAR RETRACTABLE" INT32: 2 (0x00000002) 51406 Aircraft="Beech Baron 58 EPAV" 51641 Starting everything now ... 51719 ASN active function link set 51719 Ready for ActiveSky WX radar with additional data B737 1109 SimConnect_Open succeeded: waiting to check version okay 1109 Trying to use SimConnect Acc/SP2 Oct07 1109 Opened separate AI Traffic client okay 3609 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0) 3609 Initialising SimConnect data requests now 3609 FSUIPC Menu entry added 3625 C:\Users\Al\Documents\Flight Simulator X Files\Default Safe Flight Baron 58 35L KCOS.FLT 3625 C:\FSX\SimObjects\Airplanes\Beech_Baron_58\Beech_Baron_58.AIR 4297 Monitor IPC:060C (U8) = 0 59859 C:\FSX\SimObjects\Airplanes\B737_800_Default_Modified\Boeing737-800.AIR 139719 User Aircraft ID 1 supplied, now being used 140015 System time = 18/10/2017 16:40:14, Simulator time = 11:49:47 (17:49Z) 140015 Monitor IPC:060C (U8) = 2 140015 SimRead: 060C="IS GEAR RETRACTABLE" INT32: 2 (0x00000002) 140797 Aircraft="Boeing 737-800 EPAV" 141000 Starting everything now ... 141094 ASN active function link set 141094 Ready for ActiveSky WX radar with additional data 141156 Plug-in thread table check:
  3. Pete, The default a/c I tried were the Baron 58 and the B737. Al
  4. Yes, I get the value 2 for a number of different default and add-on a/c. I guess as you say it is a case of non 0 means true. I'll be careful to code accordingly in the future. I don't know how I managed to post in the wrong forum this time -- sorry. Thanks for the help, Al
  5. Hi Pete, When debugging some code I found that when reading offset 060C with ipc.readUB(0x060C) for an a/c with a retractable landing gear the value returned was 2 instead of 1 as specified in the offset documentation. Is this just a simple documentation typo, or perhaps is there some additional significance (some characteristic of the landing gear) associated with the "2" versus the "1" ? With a fixed gear a/c the value returned is 0 as expected. Thanks, Al FSX with SP2, FSUIPCv4.971, Win10
  6. I think I understand now. If I have three functions assigned to one button or key and want two of them to be general and one profile specific, I just need to put the two general function assignments in the General section of the FSUIPC ini file, and put all three function assignments in the a/c profile specific section of the FSUIPC ini file. Thanks for the help Thomas. Al
  7. Hi Pete, If under the General button area of FSUIPC.ini I assign three functions (gear down and two Lua scripts) to button 19 as shown below, all works well. 450=PY,19,C66080,0 -{GEAR_DOWN}- 451=PY,19,CL95:R,0 -{Lua Landing_Params}- 452=PY,19,CL52:R,0 -{Lua AppchAltCalls}- However, if I make one of the Lua script assignments Profile Specific to aircraft A by moving it from the General area to aircraft A's button assignment area, only that script works for aircraft A, the two remaining button 19 functions under the General button area no longer work for aircraft A. I assume this is because in some sense I have made button 19 itself profile specific to aircraft A rather than just the associated Lua script. Do you see anything I can do to resolve this issue? Thanks, Al FSX, FSUIPC 4.971, Win10
  8. Hi Pete, Are the FSUIPC4 Offsets at the same locations in FSUIPC5? I'm trying to determine if it is reasonable to expect that most Lua scripts written for FSX using FSUIPC4 will run in P3Dv4 using FSUIPC5. Thanks, Al
  9. HUD Parameters for FSX

    HUD Parameters for FSX HUDparameters.lua is a Lua script that displays flight parameters in a small text window that pops up when the script is selected by an assigned key or button if the aircraft is in the air. Parameters displayed are: · Indicated Airspeed (IAS. Kts) · True Airspeed (TAS, Kts) · Ground Speed (GS, Kts) · Mach# (when above a user settable altitude, currently 25000ft) · Altitude (ALT, ft) · Radio Altitude (RA, ft) · Vertical Speed (VS, ft/min) · Vertical Speed per Nautical Mile (VS/NM, ft/NM) · Attitude Indicator pitch (AI, degrees) · Flight Path Angle (FPA, degrees) The top of the script contains user settable values for the size and location of the display, the altitude above which the a/c Mach# will be displayed (default is 25000ft), the data update interval in milliseconds (default is 2000), and whether or not data is to be logged in HUDparameters.log (default is 0, off). These values can be set using a text editor like NotePad. A registered copy of FSUIPC is required to execute the Lua script. Simply copy the script to the Modules folder of FSX and use FSUIPC4 to assign a key, button or switch to toggle the script on and off. The script turns off if the aircraft is on the ground. HUDparameters.zip
  10. My understanding is FSW is built on FSX to some degree, but in general FSX addons, a/c, etc are currently not compatible with FSW. Al
  11. Hi Pete, Has DTG made any effort to coordinate with you regarding using FSUIPC with their soon to be released 64 bit FSW sim? If not, FSW is likely a non-player for me, Thx, Al
  12. Hi Pete, The documentation on event.offset() says "The function is also executed initially, when the plugin is first run, in order to initialise things". In my application, event.offset() is used inside a nested function. That is, function A calls function B, and event.offset is part of function B and calls function C when the offset changes. However, if I understand correctly, the initial execution of function C will happen the first time function B is called even if the offset has not changed value -- is that correct? Thanks, Al
  13. Pete -- thanks very much for the further explanation -- very helpful. A related question please: the event being monitored by event.offset() is the on-ground flag in offset 0x0366 which has a value of 1 when the aircraft is on the ground. If the aircraft bounces during landing, and thus is only on the ground for a small fraction of a second perhaps during the bounce, is there a reasonable chance the bounce will be 'missed' as far as the on-ground flag is concerned because of sim or script timing issues (e.g., the sim was busy doing other things when the bounce occurred and so the on-ground flag didn't change)? Thx, Al
  14. To clarify a bit, my situation is that the function called by event.offset() is logging aircraft data and may typically run for 8 to 10 seconds. During that time, the location being monitored by event.offset could change so as to trigger a second call to the same logging function while the first is still running, and thus my questions above. Thanks very much for the help. Al
  15. Hi Pete, I am using the command event.offset(offset, "type", "function-name) in a script that is listed under [Auto] in the FSIPC.ini.file. My questions are: 1. If the command makes two sequential calls of “function-name” and the first called function is still running when the second call occurs, are there now two instances of the function running, or did the second call terminate the first function? 2. If two instances of the called function would be running (which is what I think), what might be a good way to terminate the first function when the second call is made? Thx, Al
×