Jump to content
The simFlight Network Forums

lordofwings

Members
  • Posts

    108
  • Joined

  • Last visited

Everything posted by lordofwings

  1. It would be nice if the next release of FSUIPC.NET Client came with both an x86 DLL as well as an Any CPU dll. I develop in Windows 7 Ultimate x64 usually with Any CPU but when I try to compile my flight sim projects I get a warning about the MSIL mismatch :( For now I had to switch all my flight sim projects to x86 but would be nice to also have an "Any CPU" dll I can link to.
  2. I noticed there is an ADF IDENTITY offset of type string of 5 bytes but I only see it for ADF #2, there is no such offset for ADF #1? most FS aircraft have only one ADF and that would be ADF #1, right?
  3. According to the documentation the offset address is 0xBE8 (Bravo Echo Eight) and not 0x0BEB (Bravo Echo Bravo). Also could you confirm whether writing to the 0x0BEC, 0x0BF0 and 0x0BF4 (each offset is 4 bytes long) actually works, or are they read-only?
  4. And while at that I supposed that adding the QNH offset value (0EC6) to the Adventure Weather barometric drift (04BC) would then give me the QFE if I were at the airfield. I assume these Adventure Weather entries are for FSX as well. I will have to test that I guess too, because the drift offset is still listed at ?Intl (may work).
  5. Thanks, the first answer is what I needed, the QNH somehow it escaped me. What is not totally clear to me is that this offset says "Pressure (QNH) as millibars (hectoPascals) *16." So, does that means that the value I read from there I should multiply by 16 to get millibars/hectopascals or that the value there is 16 times the millibars setting? I am inclined that the 1st is correct (multipy to get millibars) but want to make sure I am correct. I also see that there is a 0x0330 "Kohllsman's Window" which I assume is the one that is actually set on the altimeter gauge.
  6. As reference I am citing the FSUIPC Offset Status document I have from the latest (4.756) release and I am using FSX. Here are my two questions: Altimeter Setting As we all know there is the local altimeter setting and the standard altimeter setting. In FS one can set the current altimeter setting by pressing the B key on the keyboard even though in FS all transition altitudes are 18,000 (which is wrong). My question is, how can my application know what is the current *local* altimeter setting so that I can compare it with what I find at offset 0x0330 ? Transponder Setting I see that there is an offset (0x0354) with the actual setting of the transponder (squawk) code; however, I do not see any reference to whether the transponder radio is on/off or its current mode (say Mode Charlie). All the aircraft I have flown in FS (except for the old ones which I never fly) have a transponder. For that matter, what I want to do is to be able to detect (a) when the aircraft is at the runway ready to roll and (B) that the user has activated the transponder. If knowing the activation/mode of the transponder is not possible, can anybody suggest an alternative?
  7. I currently have the latest FSUIPC (4.756) and while reading its documentation (FSUIPC Offsets PDF) I see that offset 0x3308 (Flight Simulator Version) does not seem to have any value for FSX. Is there a way to know whether I am connected to FSX or not?
  8. I noticed that with the latest FSUIPC there are LUA facilities embedded in FSUIPC. It is not clear to me whether that is only for registered users or all. If it was for unregistered users as well, it would be nice to have access to them via your excellent C# Client DLL.
  9. As far as I know when one selects an aircraft in FSX the simulator already (pre)loads that plane. So, if I am to access the simulator via the offsets (FSUIPC programming) how can I determine if the simulator is already in a true flight situation (at the gate or runway once you press the FLY NOW button) or in the "aircraft (pre)loaded" situation?
  10. The offset about the Magneto's the value states that for Jet/Turbojet it is Off, Start, Gen/Alt and for Props Off, Left, Right, Both, Start. My question there was whether Props applies to TurboProps or perhaps the first line meant to say "Jets/Turboprops" Haven't compared both myself and therefore my question.
  11. I was trying to use the text scrolling facilities and got a Type Initialization Exception with message "Must set a size set for ArrayOrStringLength for Byte[], BitArray or String". I am using C# so basically having declared the Offsets I first write the string and then the timer: Offset<short> ofsTextMessageTimer = new Offset<short>(0x32FA); Offset<string> ofsTextMessage = new Offset<string>(0x3380); // scroll message or until replaced, whichever is first if (!string.IsNullOrEmpty(msg)) { ofsTextMessage.Value = msg.Substring(0, msg.Length > 127 ? 127 : msg.Length); ofsTextMessageTimer.Value = -1; } [/CODE] The string in question is not null and is less than 127 characters long.
  12. Thanks Pete, I have upgraded FSUIPC to the latest version (4.756) from Schiratti.com though I haven't had any problems with the "old" one. I will look up that offset. I noticed that in your offsets document you mention "Turbojet", did you mean "Turboprop" ? just wondering.
  13. I am using FSUIPC 4.60a with FSX and Paul Henty's C# FSUIPC SDK. I was wondering with all those offsets for engines, what would be the best way to check if a given engine is running regardless of whether it is a jet, propeller, turboprop, etc.?
  14. Thanks, as you supposed I was talking about using FSUIPC to write the values (using the FSUIPC C# SDK from Paul Hentty).
  15. Hi Pete, The tags of this thread say "FSX", that is what I am using (left FS9 a long time ago). My FSUIPC version is 4.60a. I have FS Interrogate v2.x but I notice that writing to offsets with it seems not to do anything on the aircraft (at least in Pause mode). And yes, I am using FS Interrogate to write.
  16. Let's consider this scenario: I have a SAITEK Throttle Quadrant and my application is connected to FSX. Now, the two leftmost leversl of the TQ are in their middle position (i.e. not idle). Then how would I go about controlling the engine's throttles without having the TQ override my input? In other words, if the Throttles on the TQ are at any position, I would expect that if my FSUIPC application writes any value to the throttle setting (say I write 0 for IDLE) then the Flight Simulator will immediately set it and subsequently read the current position of the levers of the TQ and directly obliterate the values I just wrote. How do I manage that sitution? My same question is valid for items such as the Mixture and Propeller levers.
  17. I have been using FS Interrogate to read the light offsets for All Lights (0x0D0C), landing lights (0x028c), Other lights (0x0280 & 0x0281). While it seems to read the values off FS simulator (FSX) just fine, when I attempt to use that to write a value (Write Single Value with the appropriate data size) those changes do not seem to reflect in the simulator. Doing anything wrong here?
  18. Any chance that this excellent library be compiled for .NET 4.0?
  19. You are not stupid, the person who spends a day trying to figure it out rather than seeking help from those who know are the stupid ones. This thread/forum is to help people with their technical problems.
  20. Yup! that is the one I was talking about, however, when I download and open the latest FSUIPC from the PRoject Magenta site, there is no bundled FSInterrogate. Never mind, found it at http://www.liljendal.dk/flightsim/fsinterrogate.htm
  21. Before I bought my new computer and was developing with FSUIPC Cleint DLL v1.3 I had downloaded a nice program that had ALL offsets and it would connect to FS. One could select a group of offsets one wanted to have updated in real time (and leave the others without checking). Unfortunately I seem to have lost that program on the old retired computer after I reformatted but have not been able to find it. Any clues where I could find such tool?
  22. I made that change but was unsure so you have confirmed it. Thanks a million! It had been quite some time since I used this client (1.x) but now I am up to v2. Always liked this library, the ACARS application of my VA stopped functioning and the developer doesn't respond so I figured I would better write my own FS ACARS application.
  23. I am trying to use this v2.0 client in a .NET 3.5 application but I keep on getting this exception: "BadImageFormatException Could not load file or assembly 'FSUIPCClient, Version=2.0.4008.2,Culture=neutral,PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format." I have downloaded and relinked several times just in case that was the problem but it is not. The exception keeps on happening when using your v2.0 client library.
  24. Have there been any further releases other than 2.0? I want to get back into FS programming.
  25. Is there a way to get the listing of airport code plus airport name from the BGLs? I was hoping MakeRunways would extract that information. It actually does extract a great deal (thanks!) but unfortunately the airport name (i.e. "Heathrow") is missing in all the output files.
×
×
  • 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.