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 


How do I Group Scan in C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
KianBrose
Newbie cheater
Reputation: 0

Joined: 14 May 2021
Posts: 14
Location: Sweden

PostPosted: Tue Sep 21, 2021 11:32 am    Post subject: How do I Group Scan in C++ Reply with quote

I've been racking my head for the past couple of hours trying to figure out how to perform a "Group scan" in C++ to find the address for the health in a game and haven't been able to find anything. The group scan command I have found that works 100% of the time on cheat engine is:
4:1114112000 4:0 4:1878479224 4:0 4:316250192

I have found a ton of "copy paste" AoB "tutorials" but they don't really fit what I am trying to do since AOB is different from group scanning, other than AoB tutorials being 5+ years old and not being applicable nowadays.

This leads me to the question, how can I perform a group scan to find the address of the first "1114112000" inside my group scan command so I can later modify it with WriteProcessMemory?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Tue Sep 21, 2021 1:42 pm    Post subject: Reply with quote

That groupscan is 5 contiguous integer literals. Just turn it into an aob and search for that:
00 00 68 42 00 00 00 00 78 51 F7 6F 00 00 00 00 50 98 D9 12

_________________
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
KianBrose
Newbie cheater
Reputation: 0

Joined: 14 May 2021
Posts: 14
Location: Sweden

PostPosted: Tue Sep 21, 2021 1:57 pm    Post subject: Reply with quote

ParkourPenguin wrote:
That groupscan is 5 contiguous integer literals. Just turn it into an aob and search for that:
00 00 68 42 00 00 00 00 78 51 F7 6F 00 00 00 00 50 98 D9 12


I see you turned 316250192 into the final four bytes "50 98 D9 12", but when I use a decimal to hex converter, I get 12D99850 / 12 D9 98 50 which is exactly what you wrote but flipped. Is there an explanation as to why it's flipped?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Tue Sep 21, 2021 2:24 pm    Post subject: Reply with quote

Little-endian systems order the least significant bytes of values first.
https://en.wikipedia.org/wiki/Little_endian

_________________
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
KianBrose
Newbie cheater
Reputation: 0

Joined: 14 May 2021
Posts: 14
Location: Sweden

PostPosted: Tue Sep 21, 2021 3:58 pm    Post subject: Reply with quote

Ooooh ok, thank you!
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