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 


Understanding how use value in c#

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

Joined: 16 Dec 2012
Posts: 3

PostPosted: Sat Apr 12, 2014 5:10 am    Post subject: Understanding how use value in c# Reply with quote

Hi,im a little noob and i've a little problem to write a trainer.
I've worked on some trainer whit non-static adress and pointer.
Now i've a problem to understanding how proceed.

The game put value in static adress(green).
the CE option "find what access this adress" report me these:

Code:
0053748D - F3 0F59 05 409F5A00  - mulss xmm0,[Land.exe+1A9F40]
00537495 - F3 0F2C C0  - cvttss2si eax,xmm0
00537499 - 39 05 9431E102  - cmp [Land.exe+2A13194],eax <<
0053749F - 6A 00 - push 00
005374A1 - 0F9C C1  - setl cl


How acces Land.exe+2A13194 in c#?
i need to find base address to land.exe and adding 2A13194?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sat Apr 12, 2014 4:41 pm    Post subject: Reply with quote

Use the Process class to access the processes information and module data. You can get a fully qualified handle as well to use with ReadProcessMemory.

http://msdn.microsoft.com/en-us/library/vstudio/system.diagnostics.process

The .Handle property will be the handle you can use.
The .MainModule property will get you the information of the executable.

You can use a site like pinvoke to get the needed API definitions to read from the process as well:
http://www.pinvoke.net/default.aspx/kernel32.readprocessmemory

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

Joined: 16 Dec 2012
Posts: 3

PostPosted: Sun Apr 13, 2014 6:08 am    Post subject: Reply with quote

Thank you for reply, i will try.
Back to top
View user's profile Send private message
KryziK
Expert Cheater
Reputation: 3

Joined: 16 Aug 2009
Posts: 199

PostPosted: Sun Apr 13, 2014 3:55 pm    Post subject: Reply with quote

You could look at the source for how different things are done here:

http://forum.cheatengine.org/viewtopic.php?t=530728

The library itself has a few bugs, but the source should get you somewhere.
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