Jump to content
Sign in to follow this  
Guest DocMoriarty

Managed SimConnect - Problem with Var Category

Recommended Posts

Guest DocMoriarty

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?

Share this post


Link to post
Share on other sites
Guest qurious

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 ...

Share this post


Link to post
Share on other sites
Guest DocMoriarty

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).

Share this post


Link to post
Share on other sites

>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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...