convert [help]

11/16/2008 14:53 syron198#1
Hello guys,

I'm pretty new to stuff like reading Data out of games,such as warhammer. I found out the pointer + offset for the x / y / z / heading value right now and they're correct, found the same info in a forum, but my problem is, that in cheat engine it looks like this:

X =
Array of Byte[4] = 55 6F 81 49
4bytes = 1233219413
float: 1060330.625

And I was wondering, how I can convert them in C# or in any other language, to get the correct value, which is telling me the x value.

there has to be some kind of convertation there, because someone released a program and he reads out the same data as I do, but it displays the correct x value.

Does any1 have an idea?
11/16/2008 15:01 unknownone#2
Could you be a bit more descriptive about which part of that array is the X, Y, Z etc?
Are the coordinates just byte value, or int32s?

If You're using ReadProcessMemory, you just need to read the correct number of bytes off the buffer you read, and cast them into your type.
11/20/2008 13:46 mondesser#3
Take a look at the [Only registered and activated users can see links. Click Here To Register...]. It provides alot of methods to convert byte arrays to base data types and vice versa.

Also take a look at [Only registered and activated users can see links. Click Here To Register...] page. It provides infos on how to use ReadProcessMemory in C#.