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 


Convert AOB Scan Addresses In C#

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

Joined: 13 Mar 2022
Posts: 6
Location: Your Mum

PostPosted: Sat Apr 23, 2022 9:45 am    Post subject: Convert AOB Scan Addresses In C# Reply with quote

I have this code segment written in C# using erfg12's memory.dll game hacking dll.

public async void RandomHack()
{
long AOB = (await m.AoBScan("75 08 85 C9 0F 85 8B 00 00 00", false, true)).FirstOrDefault();
richTextBox1.Text = "[ENABLE]";
richTextBox1.AppendText("\n" + AOB.ToString("X") + ":");
richTextBox1.AppendText("\n db 90 90");
richTextBox1.AppendText("\n \n");
richTextBox1.AppendText("[DISABLE] \n");
richTextBox1.AppendText(AOB.ToString("X") + ":");
richTextBox1.AppendText("\n db 75 08");
}

it produces everything correctly and I receive:

[ENABLE]
7FF735E769F4:
db 90 90

[DISABLE]
7FF735E769F4:
db 75 08

how would I convert this to instead receive:

[ENABLE]
Game.exe+4169F4:
db 90 90

[DISABLE]
Game.exe+4169F4:
db 75 08


Thanks to any responses in advance! Smile

_________________
I'm Stupid but I will figure it out eventually!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sat Apr 23, 2022 5:33 pm    Post subject: Reply with quote

You would need to take the address returned by 'AoBScan' and determine if it's within the space of a module, such as 'Game.exe'.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
stinkycheeks69
How do I cheat?
Reputation: 1

Joined: 13 Mar 2022
Posts: 6
Location: Your Mum

PostPosted: Sat May 07, 2022 3:06 am    Post subject: Reply with quote

atom0s wrote:
You would need to take the address returned by 'AoBScan' and determine if it's within the space of a module, such as 'Game.exe'.



thanks for the reply but I'm not quite sure how to do this. I tried researching for ages now but I still cant find any relevant information. Do you know any websites or an example of sorts on how to do this?

_________________
I'm Stupid but I will figure it out eventually!
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