Michael Kostelcev Posted November 24, 2014 Report Posted November 24, 2014 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?
Paul Henty Posted November 25, 2014 Report Posted November 25, 2014 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
Michael Kostelcev Posted December 4, 2014 Author Report Posted December 4, 2014 Yes, I found the problem. Thanks a lot!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now