Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cant change a value in a pointer with accuracy. Help.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Fri Apr 10, 2020 7:11 pm    Post subject: Cant change a value in a pointer with accuracy. Help. Reply with quote

Im a beginner in Cheat Engine. I'm learning it using an old RTS.

But i have been facing this problem for some weeks. I have been trying to learn slowly so i came up with the solution to the problem, but it seems that wont happen anytime soon.

So i got the address of my wood. And i can change it, for 300, 400. As i want. But everytime i restart the game, that address changes. So i learned how to get the pointer.

It has 4 multiple pointers. But in the end i get the green address. Make that final pointer, and it does change he value of wood.

But the big problem is the value is not the same as it was in the original address. It is some obscure number like 1.99539873.

For example. In the original address the value was 200, 300, or 400, exactly the number of wood that you have in the game. And that was easy to change.

But now in the pointer, instead of diplaying that wood value it displays a number like 1.99539873. And that does affect the wood. Because when i change that number to a random number like 2.64035034. It increases the wood slightly. So that weird number is connected to the value of wood. So its the right pointer. The problem is that i have no idea, what is the mathematic behind it. And how to change this 1.99539873, or how it corresponds to a specific number of wood.

What is this? Is this some hacking prevention technique from the developers? How do i solve this problem.

Please help. Thanks. Surprised


Last edited by LongBeardedLion on Mon Apr 13, 2020 12:24 am; edited 1 time in total
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4724

PostPosted: Fri Apr 10, 2020 10:04 pm    Post subject: Reply with quote

What's the value type of the memory records? Sounds like you set one to 4-byte and the other to float or double.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Mon Apr 13, 2020 12:19 am    Post subject: Reply with quote

ParkourPenguin wrote:
What's the value type of the memory records? Sounds like you set one to 4-byte and the other to float or double.


Hi thanks for your answer.

The value is 4 bytes.

As you can see in 1.png the 1 of wood corresponds to the value in the pointer of:

1065353216

And in 2.png. 2 of wood corresponds to the value in the pointer of:

1073741824

And in 3.png. 3 of wood corresponds to the value in the pointer of:

1077936128

I tried to see if they form some kind of pattern. But it seems they change as the value increases. Its so weird. Can you please help me?



3.png
 Description:
 Filesize:  34.86 KB
 Viewed:  1904 Time(s)

3.png



2.png
 Description:
 Filesize:  38.36 KB
 Viewed:  1904 Time(s)

2.png



1.png
 Description:
 Filesize:  34.51 KB
 Viewed:  1904 Time(s)

1.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4724

PostPosted: Mon Apr 13, 2020 10:28 am    Post subject: Reply with quote

As I just said:
ParkourPenguin wrote:
Sounds like you set one to 4-byte and the other to float or double.

The first memory record, "Wood", is a float. Can you see how it says "Float" under the "Type" column? That value obviously isn't 4 bytes - it's a float.
The last two memory records, both named "wood", are incorrectly set to "4 Bytes". They should be set to "Float".

If you try to read a float value as a 4 byte value, it's going to look like garbage.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Mon Apr 13, 2020 11:30 am    Post subject: Reply with quote

ParkourPenguin wrote:
As I just said:
ParkourPenguin wrote:
Sounds like you set one to 4-byte and the other to float or double.

The first memory record, "Wood", is a float. Can you see how it says "Float" under the "Type" column? That value obviously isn't 4 bytes - it's a float.
The last two memory records, both named "wood", are incorrectly set to "4 Bytes". They should be set to "Float".

If you try to read a float value as a 4 byte value, it's going to look like garbage.


woa bro you just made my day. Thanks so much. Surprised Surprised Surprised

That totally fixed it.

I thought that pointers were mandatory to be 4 bytes.



Parkour.png
 Description:
 Filesize:  29.92 KB
 Viewed:  1873 Time(s)

Parkour.png


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites