Hey everyone ^^

I'm making a little program that gathers the player coordinates from World of Warcraft via memory reading, the only problem I'm having so far is that I have no idea how to convert my hexes to floats, and it's honestly driving me nuts :P.

http://i53.tinypic.com/2rhs1zo.png <-Picture

As you can see, as a float the value is "-8371,0859375"
but since my program isn't converting it, im getting "3322072152" instead

Process[] Arch = Process.GetProcessesByName("Wow");
Memory.OpenProcess(Arch[0].Id);
uint XCoordinate = uint.Parse("8BCBE8", System.Globalization.NumberStyles.HexNumber);
label4.Text = Memory.Read<uint>(Memory.BaseAddress + XCoordinate).ToString();

uint ZCoordinate = uint.Parse("901E3C", System.Globalization.NumberStyles.HexNumber);
label7.Text = Memory.Read<uint>(Memory.BaseAddress + ZCoordinate).ToString();

any idea on how i can convert this?

Kind Regards
-Jazerix
thank you for reading :)

Recommended Answers

All 5 Replies

already tried that, couldn't get it working :(

Oh, nevermind, a friend solved it for me :)

Would you mind posting the solution in here. I would like to see it too.
thx in advance
Mitja

Haha it was actually super easy

uint ZCoordinate = uint.Parse("901E3C", System.Globalization.NumberStyles.HexNumber);
label7.Text = Memory.Read<uint>(Memory.BaseAddress + ZCoordinate).ToString();

uint ZCoordinate = uint.Parse("901E3C", System.Globalization.NumberStyles.HexNumber);
label7.Text = Memory.Read<float>(Memory.BaseAddress + ZCoordinate).ToString();

can you see the difference xD?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.