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 


The value obtained is strange

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
kinako
How do I cheat?
Reputation: 0

Joined: 09 Jan 2022
Posts: 9
Location: Japan

PostPosted: Wed Jan 19, 2022 3:22 am    Post subject: The value obtained is strange Reply with quote

A number different from the actual number is output.

(readPointer("Game.exe+01F7D578"))



スクリーンショット (333).png
 Description:
 Filesize:  21.8 KB
 Viewed:  862 Time(s)

スクリーンショット (333).png


Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Wed Jan 19, 2022 3:33 am    Post subject: Reply with quote

You should be expecting and address when using readPointer.

If you want to read an integer you should use readInteger. And you can use an address with offsets.
Code:
readInteger('[[ base address ]+ offset 1 ]+ offset 2')

Code:
readInteger('[[Game.exe+01F7D578]+A0]+B0')

_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Wed Jan 19, 2022 4:03 am    Post subject: Reply with quote

Also don't forget about the difference of hexadecimal and decimal
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
kinako
How do I cheat?
Reputation: 0

Joined: 09 Jan 2022
Posts: 9
Location: Japan

PostPosted: Wed Jan 19, 2022 5:44 am    Post subject: Reply with quote

Oh, I was able to solve it! thank you! appreciate.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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