Jump to content
The simFlight Network Forums

Jason Fayre

Members
  • Posts

    119
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Jason Fayre

  1. Hi Paul, You are awesome! One question. Am I able to use the ValueChanged property to detect if the value of the offset has changed since the last refresh? I'm guessing maybe not.
  2. Hi Paul, The enum you've provided for the 737 controls has been amazingly helpful. Can we get one for the PMDG 747 controls as well? Obviously, I can code without it, but it would be great to have. Thanks!
  3. Hello, I notice that the PMDG 737 and 747 have CDU screen data support, but the 777 doesn't. At least the documentation doesn't mention it. Are there plans to add the CDU displays to the 777?
  4. Hi all, In the flight sim accessibility add-on we're working on, we're adding a takeoff assistant feature. This would basically lift off the aircraft on a single key press. In the past, we've used other add-ons to do this. What they essentially do is turn on Autopilot, set the vertical speed and altitude during the takeoff role. Obviously, this isn't the proper way to do things. I'm looking for a way to simulate pulling of the stick to lift off the aircraft. I saw the offset at 0bb2 for adjusting the elevator, but not totally sure how to work with it. If I wanted to simulate pulling the stick at rotate speed on the pmdg737 for example, how should I set this offset to properly pitch up for takeoff? Should I gradually increase the value, or is setting a static value during takeoff good enough? I assume the elevator setting will stay set until I set it to something else? Any help would be appreciated.
  5. Hi Pete, Thanks for that, but I'm not really sure how to apply that to Paul's .net interface in c#.
  6. Hi Paul, I'm starting the somewhat ambitious project of interfacing the PMDG 737 with my flight sim accessibility add-on. I have a list of all the offsets from the FSUIPC PMDG documentation. I have a few questions: 1. Do you, or anyone for that matter, have a class with the PMDG offsets defined? I'm going to need a lot of them, and would rather not define over 100 offsets if someone has already done it. Long shot, I know. Is there an efficient way of defining a large amount of offsets like this, or just one line per offset like I've always done? 2. Do you have any experience reading the CDU displays? I have already verified that I can get the text, but wondering if I need to worry about detecting which line is selected on the screen, etc. This is tricky, since I don't know what the CDU visually looks like, since I'm totally blind. Related to this, what is the best way to detect which LSK key is needed to select a particular item on the display? I hope this makes some sense.
  7. I figured it out. I didn't realize that the simconnect services required a registered FSUIPC. As soon as I put my key in, everything worked.
  8. Here is my ini file: [General] UpdatedByVersion=4975a History=7AFHDOTX61KUEOIZLD7SZ AxesWrongRange=No TCASid=Flight TCASrange=40,3 AxisCalibration=No DirectAxesToCalibs=No NewInterceptTextMenu=Yes ShowMultilineWindow=Yes SuppressSingleline=No SuppressMultilineFS=No AxisIntercepts=No DontResetAxes=No ThreadAffinityMask=x0 LuaAffinityMask=x0 InitDelay=0 GetNearestAirports=No LogOptionProtect=Yes OOMcheck=Yes OOMcheckInterval=10 TimeForLuaClosing=2 WeatherReadFactor=2 WeatherRewriteSeconds=1 CustomWeatherModify=No SimConnectStallTime=1 LuaRerunDelay=66 FSVersionUsed="Microsoft Flight Simulator X",10.0.62615.0 SimConnectUsed=10.0.62615.0 Console=No [WideServer] WideFSenabled=Yes
  9. Hello, I just needed to reinstall my entire system. After installing FSX and FSUIPC 4.975A, I can't get interception of simconnect menus to work. I have the line "NewInterceptTextMenu=Yes" in my fsuipc4.ini file in the General section. Here is the log from starting fSX. Note that it says the menu intercept option is off. What am I missing here? ********* FSUIPC4, Version 4.975a (19th May 2020) by Pete Dowson ********* Windows 10 Enterprise 64 Bit reported as Build 19041, Release ID: 2004 (OS 10.0) fsx.exe version = 10.0.62615.0 Reading options from "C:\Program Files (x86)\Steam\steamapps\common\FSX\Modules\FSUIPC4.ini" Running inside FSX Steam Edition on Windows 10 Module base=17180000 User Name="" User Addr="" FSUIPC4 not user registered WIDEFS7 not user registered, or expired 16 System time = 18/10/2020 10:03:06 16 FLT path = "C:\Users\jfayr\Documents\Flight Simulator X Files\" 16 ------ Module Version Check ------ 16 acontain.dll: 10.0.62615.0 16 api.dll: 10.0.62615.0 16 controls.dll: 10.0.62615.0 16 fs-traffic.dll: 10.0.62615.0 16 G3D.dll: 10.0.62615.0 16 language.dll: 10.0.62615.0 31 sim1.dll: 10.0.62615.0 31 visualfx.dll: 10.0.62615.0 31 weather.dll: 10.0.62615.0 31 window.dll: 10.0.62615.0 31 ---------------------------------- 31 Trying to connect to SimConnect 10.0.62615.0 ... 31 ... Okay! Connected! 94 FS path = "C:\Program Files (x86)\Steam\steamapps\common\FSX\" 234 LogOptions=00000000 00000001 234 ------------------------------------------------------------------- 234 ------ Setting the hooks and direct calls into the simulator ------ 234 --- CONTROLS timer memory location obtained ok 234 --- SIM1 Frictions access gained 250 --- FS Controls Table located ok 250 --- Installed Mouse Macro hooks ok. 250 --- Wind smoothing fix is fully installed 250 --- SimConnect intercept for texts and menus option is off 250 --- All links checked okay 250 ------------------------------------------------------------------- 250 SimConnect_Open succeeded: waiting to check version okay 250 Opened separate AI Traffic client okay 2234 Running in "Microsoft Flight Simulator X", Version: 10.0.62615.0 (SimConnect: 10.0.62615.0) 2234 Initialising SimConnect data requests now 2234 FSUIPC Menu entry added 2344 C:\Program Files (x86)\Steam\steamapps\common\FSX\flights\other\FLTSIM.FLT 2344 C:\Program Files (x86)\Steam\steamapps\common\FSX\SimObjects\Airplanes\Aircreation_582SL\Aircreation_582SL.air 10125 Weather Mode now = Theme 30891 C:\Program Files (x86)\Steam\steamapps\common\FSX\SimObjects\Airplanes\beech_baron_58\beech_baron_58.air 30891 c:\users\jfayr\documents\flight simulator x files\traffic at cyyz.FLT 32109 User Aircraft ID 1 supplied, now being used 32156 Aircraft loaded: running normally now ... 42000 System time = 18/10/2020 10:03:48, Simulator time = 14:42:37 (18:42Z) 58594 Starting everything now ... 58672 ASN active function link set 58672 Ready for ActiveSky WX radar with additional data 59766 Advanced Weather Interface Enabled
  10. Hi Paul, I added this yesterday and it appears to be working great! Thanks again!
  11. Thanks Paul. I've said this before, but you are awesome! I'm relatively new to coding, so your help has been great. I'm sure I've mentioned this before, but the add-on we're writing is an interface that allows totally blind users to use FSX or p3d. About a year and a half ago, It started off as a way to know the nearest city to your aircraft position, but it's now snowballed into something fairly complex. It's rapidly becoming a completely accessible flight management system. In fact, we've been asked to present at the Toronto Accessible Gaming conference at the end of October. This is just to say that we wouldn't have come as far as we have without your amazing interface into FSUIPC.
  12. Hello, I'm wondering if anyone has a code sample for taking a block fuel quantity and automatically distributing the fuel through the tanks. I understand how to use the dll to add fuel to a tank, it's just the calculating of amounts for each tank that has me a bit stuck on how to do this most efficiently. Here's what I want to do: Fill aux and/or tip tanks first if present fill main left and main right next finally fill center tanks with remaining fuel. Any help would be apreciated.
  13. Hi Paul, I'm trying to use the DLL airport facilities from another class and am running into an error. The connection to FSUIPC happens in my main form class. I'm also loading the airport database from that class. I have another class that needs to be able to query the info in the airport database. If I try to access the FSUIPCConnection.AirportDatabase features from the other class, I get the following exception: An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll The given key was not present in the dictionary. I get this exception as well if I try to load the database from the other class, rather than loading it in the form class. I am able to use other dll functions from my other class such as processing offsets, querying fuel tanks, etc. It's just the airport database that has me stuck. Any thoughts?
  14. Thanks Paul! This is amazing! We're a little way off from adding this support into our software, but this will make things much easier!
  15. Hi Paul, For a future version of the software I'm writing, people are asking for a way to taxi the aircraft. This would require us to get a list of the taxi ways, which the Makerwys database provides in the t5.csv and t5.bin files. Have you considered adding a database of taxi ways, similar to what you do for runways and airports? When I look at the t5.csv file for the Toronto airport (CYYZ), I notice a ton of taxi ways that are unnamed. The named ones seem to be at the end of the list. Not sure why this is or if this might present a problem. What are your thoughts?
  16. Hi Paul, You can disregard this. I didn't realize the sample app specified the version of the fsuipc package. It had 3.0.3. After I updated to the latest, things now work.
  17. Hi Paul, I'm working on adding runway database facilities to my app. In running the fsuipc .net sample app, any of the database examples hang whenever I press the Load button. The runway files are in my fsx directory. I just generated them using makerwys. Any idea what might be going on? How long is this supposed to take? I've been waiting for a few minutes, so I'm guessing not this long.
  18. Done! Just set this up for reading the lights and it seems to be working well in initial testing.
  19. Thanks Paul! I'll play with this today. Do you accept donations for this library? You've been amazingly helpful!
  20. Thanks Paul! If you could, that would be awesome. There isn't that many of them, so I can code something myself if it's a pain to add.
  21. Hi Paul, I've run across another issue I'm wondering if you can help out with. Would it be possible to get a property on BitArray fields to know which bits have changed? I'm monitoring several of these offsets and want to be able to tell the user when a particular flag has changed. The lights or the nav1 flags for example. The current ValueChanged property will tell me when the offset itself has changed, but not which bit as far as I can tell. Thanks!
  22. Hi Paul, I'm wondering if you have any tricks for accessing offset values in the getter of a property? I'm putting all my offset definitions in their own class. I want to have a property for each offset that will allow me to get and set the altitude for example, with a simple read or assignment. The getter/setter would do the proper conversions to return a human readable value. I think I figured out how to get the value of an offset from a getter using something like altitude.Value. The problem is that I also want access to the ValueChanged property. Can you thik of a way of accessing both Value and ValueChanged from the return of a public property getter? Hope this makes some kind of sense.
  23. Ok great. Just to be clear, your not running this over WideFS right? I think there were some issues where these offsets worked over widefs, but not locally.
  24. Wow this is brilliant! Thank you so much! Interestingly, you got this to work on fsuipc 4? I've been having trouble getting simconnect messages to work under fsuipc 4 with fsx. They work in prepar3d version 4 with fsuipc 5 though. This was with the older python version of my software that I'm porting over to .net.
  25. Hi John, From the fSUIPC 4 offsets list in my modules folder: B000 2048 FSUIPC4 and FSUIPC5: This area is used to hold the event.textmenu() data for WideClient Lua plug-ins. It can be accessed by FSUIPC applications wishing to process menus and messages themsellve, without having to use a Lua plug-in. This works in version 5 and 6, but not 4. I'm accessing the menus via offsets, not lua scripts. Thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.