Jump to content
The simFlight Network Forums

Help with Offset 0x30C0 in FSX


Recommended Posts

Good day.

I have a question.

In my application on C#, when I get the value of Weight from Offset 0x30C0, I receieve the random value. Every new request = new "random" value, which I don't know, what the value I receieve.

E.g:

1st req: -536870912

2nd req: -1610612736

3rd req: 0

4th req: 1073741824

5th req: -2147483648

 

and etc...

 

Where and What is my error?

Link to comment
Share on other sites

It's almost impossible to see what's wrong without seeing your code. Specifically we need to see where you are reading the offset (or the Offset<> declaration if you are using my DLL).

 

According to the documentation 0x30C0 is 8 bytes and is in double floating point format. You must make sure you read 8 bytes and that it's being converted to a 'double' type in c#. If you are using my DLL you just declare the offset type as double.

 

From the results you've posted it seems like you are only reading 4 bytes and treating the returned value as an integer.

 

Paul

Link to comment
Share on other sites

  • 2 weeks later...

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