OwenM
Members-
Content Count
7 -
Donations
$0.00 -
Joined
-
Last visited
Content Type
Profiles
Forums
AVSIM
Media Demo
Downloads
Gallery
Blogs
Forms
Everything posted by OwenM
-
Need Help with "Events" (on Delphi)
OwenM replied to a topic in MS FSX | FSX=SE | P3D Simconnect Forum
Hi. I have read your post and I like what you are doing with Delphi. I am not able to help but thought you might be able to help me seeing as you are proficient with delphi. I have also done some work extracting values from FSX using FSUIPC and Wideclient. I can extract all sorts of things to do with numbers eg Speeds , Nmber of engines Lat and Lon data but I have not been able to figure out how to extract things like Flight number $03130 and Tail Number $313c. These are stored as a 12byte array. Do you know how to extract that data and display as a string in Delphi Cheers Owen owen@moorepark.net.nz -
I have a nice little home built sim with multiple screens. My Problem is that when I use Shift 1 to display the Main panel and then drag it off to another physical screen the main display is left filling only the top half of the screen and I have to drag it down to the bottom to fill the screen with the image. Does anybody have any way to stop this happening. Thanks heaps Owen Moore
-
Thank you for all your help. i have now got my switches all working with ideas from your code examples. Instead off togglebit I used set and clear bit for better control. If I may ask another couple of questions I now understand how to work with the switches but I also have a park brake switch and can not figure out how to write to offset 0BC8 as it seems to take a value from 0 to 32767 when all I really want is on or off. I note in the offset pdf there is a field for size but how does that relate to the following UB unsigned 8-bit byte UW unsigned 16-bit word UD unsigned 32-bit dword SB signed 8-bit byte SW signed 16-bit word SD signed 32-bit dword DD signed 64-bit value DBL 64-bit double floating point FLT 32-bit single floating point STR string of ASCII characters (in this case the preceding number, n, gives the length not a repeat count) I am sure there is a correlation to these two and I note that 0D0C has a size of 2 and that we used sw in the lights example Again thanks for your help Owen
-
I have built an overhead panel for my sim that has some switches for example Taxi Lights and Landing Lights. Although I have used Lua before I have spent hours on trying to get these switches to work. I know that the light switch data is held in 0x0D0C offset but I can not figure out how to extract the individual bits to allow me to modify them and then write them back to the offset. I think it involves some logic.and command but its all beyond me unfortunately. Or am I on the wrong track altogether and is there an easier way. Could anyone please help with a little sample code that reads offset extracts bit 3 , if its off turn it on and vice versa and write it back to 0x0D0C. I have read all the stuff that comes with FSUIPC but to no avail Thanks heaps Owen Moore