December 15, 200619 yr I'm using managed SimConnect with VB 8.When i try to retrieve variable "Category" which should be an enum value (0=airplaine,1=heli,2=AI aircraft) then i get 7498049 as result. Other values returned within the same structure are ok (values before and after my category field). I'm using INT32 as type for this value, tried a few other things with no success.Anyone having the same problem or can confirm?
December 16, 200619 yr I tried it and looked at the network traffic. It turns out that the data is not the number 0, 1 or 2, but a small text string ("Airp" for Airplane, "Heli" for Helicopter).Hmmm, interesting, but not exactly what I expected ...
December 16, 200619 yr Seen that way its perhaps also useful, just need to adjust the numbers in my enum definition a tiny tad. Right now using some heuristics to determine airplane or heli by engine type (heli's have their own turbine type).
December 17, 200619 yr Commercial Member >I tried it and looked at the network traffic. It turns out>that the data is not the number 0, 1 or 2, but a small text>string ("Airp" for Airplane, "Heli" for Helicopter).>>Hmmm, interesting, but not exactly what I expected ...Maybe you could use the equivalent of FSUIPC offset 0609, i.e "ENGINE TYPE", which gives you 0 = piston (and some helos like the Robinson) 1 = jet 2 = sailplane, or anything with no engines 3 = helo turbine 4 = rocket (unsupported) 5 = turbopropRegardsPete Win10: 22H2 19045.2728 CPU: 9900KS at 5.5GHz Memory: 32Gb at 3800 MHz. GPU: RTX 24Gb Titan 2 x 2160p projectors at 25Hz onto 200 FOV curved screen
Create an account or sign in to comment