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 


Can't find a pointer to ammo string

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

Joined: 24 Apr 2022
Posts: 4

PostPosted: Sun Apr 24, 2022 8:15 am    Post subject: Can't find a pointer to ammo string Reply with quote

I'm trying to make a cheat for Teardown, and they seem to be storing the ammo in a string, which is weird. I can just search for the ammo in string, change it, freeze it, and it works like that. I clicked on Find out what accesses this, and all the ones were at offset 0, so I checked the Hex option and looked for the same address, but there are no results. With pointerscanning I managed to find hundreds of pointers, but none with comparing pointermaps, and after I restarted the game, found address again, in the open pointer scan window went to Pointer scanner -> Rescan memory and typed the new address, I got one left but it doesn't even point anywhere (that was 7 levels, with 10 levels at the end I had a threadstack one)
Now I just started game hacking a few days ago and this is the first game I'm trying to hack by myself. I already found player coordinates and health, and if it matters, only the first 4 characters of the ammo's address is the same as other player related stuff
Btw if there's a way to find this string in C++ (DLL) that works for me, the problem is it's not gonna be the only string with that value
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sun Apr 24, 2022 8:43 am    Post subject: Reply with quote

The real value won't be a string. The string will just be a reference to the real value.
Back to top
View user's profile Send private message
Troughy
How do I cheat?
Reputation: 0

Joined: 24 Apr 2022
Posts: 4

PostPosted: Sun Apr 24, 2022 9:02 am    Post subject: Reply with quote

LeFiXER wrote:
The real value won't be a string. The string will just be a reference to the real value.


So how can I find the real value? This is the only address in memory with this value, there's a bunch of instructions accessing it, but I don't really understand assembly well enough to make sense of it :/
It's like it displays the text and reads it every tick, I can even set it to a number above the max ammo and it'll still start decreasing it
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sun Apr 24, 2022 1:24 pm    Post subject: Reply with quote

you could try reversing some of these instructions and see how the ammo value is obtained, before printing it on the screen, or:

try using "unknown value" search, then you can start doing "decreased/increased" filters
if still no good results, try again unknown value search but this time using "changed/unchanged" filters
Back to top
View user's profile Send private message
Troughy
How do I cheat?
Reputation: 0

Joined: 24 Apr 2022
Posts: 4

PostPosted: Sun Apr 24, 2022 11:54 pm    Post subject: Reply with quote

TsTg wrote:
you could try reversing some of these instructions and see how the ammo value is obtained, before printing it on the screen, or:

try using "unknown value" search, then you can start doing "decreased/increased" filters
if still no good results, try again unknown value search but this time using "changed/unchanged" filters


I've tried that and the only thing that came up was this string. It would be possible to store ammo in the string and parse it into an int when ur shooting, right? I'm gonna try to find it again when I get home
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Mon Apr 25, 2022 7:14 am    Post subject: Reply with quote

Ah okay, this is made with Lua and heavily modifiable. You can even modify the code because alot of the plain source code is visible, and editable in the data folder.
Back to top
View user's profile Send private message
Troughy
How do I cheat?
Reputation: 0

Joined: 24 Apr 2022
Posts: 4

PostPosted: Mon Apr 25, 2022 9:22 am    Post subject: Reply with quote

LeFiXER wrote:
Ah okay, this is made with Lua and heavily modifiable. You can even modify the code because alot of the plain source code is visible, and editable in the data folder.


Oh that's good because I'm experienced with that. Btw when I look for Changed value, it doesn't really make sense as a float, but when you change it to a string, it gives you the current ammo.
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