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 


Creating an Array in Cheat Engine AA to Store Ground Items

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

Joined: 27 Feb 2023
Posts: 59

PostPosted: Fri Apr 14, 2023 10:25 am    Post subject: Creating an Array in Cheat Engine AA to Store Ground Items Reply with quote

Hey guys,

All of the different groundItems are passed through r13+00000088. I was wondering if its possible to make an array using alloc for different storage locations which can store the different groundItems(r13+00000088) into. And then once the first address that runs through r13+00000088 matches the last value, the original code will be jumped to.

alloc(newmem,2048,"myGame.exe"+1687A8)
label(returnhere)
label(originalcode)
label(exit)

// Define a variable to store the value
alloc(value, Cool

newmem:
// Save the value from R13+88 into R10
mov r10,[r13+00000088]

// Store the value from R10 into the variable
mov [value], r10

// Jump back to the original code
jmp originalcode

originalcode:
// Continue with the original code
mov r10,[r13+00000088]

exit:
jmp returnhere

"myGame.exe"+1687A8:
jmp newmem
nop 2
returnhere:

Can alloc allocate an array of values? something like alloc(values, 8*(100))?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Fri Apr 14, 2023 10:36 am    Post subject: Reply with quote

Yes, alloc can allocate 0x800 bytes (enough for 256 8-byte values). You still have to handle the logic of storing values in the array yourself. In particular, when do you remove a value from the array? I can't imagine all dropped items have a static lifetime- that's just a memory leak.
_________________
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
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