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 


C# based cheat engine memory scanner

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

Joined: 24 Jun 2014
Posts: 2

PostPosted: Tue Jun 24, 2014 4:25 pm    Post subject: C# based cheat engine memory scanner Reply with quote

Hello.

Is there a way to make a cheat engine based scanner in C#? For example, scanning for a float between 75.0 and 76.0 and to give results(addresses) and to change those results to some other float, just like in cheat engine, and all that in C#? To elaborate, in my C# app I want to scan the memory and change all found floats to some other float, just like when using cheat engine, just so I don't have to go run cheat engine every time I open the app to change some value.

Is there anyone capable of doing something (similar) like this?

Regards.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Jun 24, 2014 4:26 pm    Post subject: Reply with quote

Use the same API that Cheat Engine uses to accomplish this.
- ReadProcessMemory
- WriteProcessMemory
- VirtualQueryEx
- VirtualProtectEx

and so on.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Simon_says
How do I cheat?
Reputation: 0

Joined: 24 Jun 2014
Posts: 2

PostPosted: Tue Jun 24, 2014 5:34 pm    Post subject: Reply with quote

I'm aware of those functions, but I don't see in C# how to actually scan for 1 value like in cheat engine.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Fri Jul 04, 2014 5:56 am    Post subject: Re: C# based cheat engine memory scanner Reply with quote

Simon_says wrote:
Hello.

Is there a way to make a cheat engine based scanner in C#? For example, scanning for a float between 75.0 and 76.0 and to give results(addresses) and to change those results to some other float, just like in cheat engine, and all that in C#? To elaborate, in my C# app I want to scan the memory and change all found floats to some other float, just like when using cheat engine, just so I don't have to go run cheat engine every time I open the app to change some value.

Is there anyone capable of doing something (similar) like this?

Regards.


What you're trying to do is far easier if you just defeat the DMA involved.

However, to answer about how to write a mem scanner. Its really easy if you come down to the basics of it.

Fetch memory, store it in a big buffer/reserved memory, change something in game, fetch memory again and compare with the old stored one and then continue doing this until you are left with very few results.

You don't even need advanced programming skills to accomplish this. I have written a memory scanner in masm (just for fun, was bored at one time) so if it can help you in anyway, i'll gladly show you the source.

I would suggest reading up about DMA or learning pointer scan than making a mem scanner because that is far easier than the latter

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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 programming 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