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 


Trainer in C#

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

Joined: 12 Mar 2005
Posts: 24

PostPosted: Mon Nov 19, 2007 2:34 pm    Post subject: Trainer in C# Reply with quote

Hiya,

I've made a trainer in C#, it do's some stuff with minesweeper.
When i write to an adress now, and change some optcodes i do it in CE or ollydbg first, then get the code in hex or something and write that to the proccess.

I'd like to make a method that just takes a string and writes that into the memory, so it will be converted to hex instantly.

So currently its like this:

writeprocmem(0x90,001ABC)

I just want it to be like:

writeprocmem("nop",001ABC)
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Mon Nov 19, 2007 10:09 pm    Post subject: Reply with quote

Unfortunately, it really isn't that easy.

CE undergoes an incredible process in order to do this for you. There are 1035 opcodes (or at least different parameter types for opcodes), that DB has listed in a certain file (assemblerunit.pas), and also in that file is the assemble function. If you know any Delphi, I suggest popping that open and just looking at how complicated it is.

~~

However, I'm in the process of creating something that will do that for you--it's probably going to take a while though, I have nowhere near the experience, nor the knowledge that DB has/had when he wrote that, and it took him quite a while.
Back to top
View user's profile Send private message
CyClonenl
Newbie cheater
Reputation: 0

Joined: 12 Mar 2005
Posts: 24

PostPosted: Tue Nov 20, 2007 7:24 am    Post subject: Reply with quote

Thanks, really helpfull Smile

Didnt know it was that complicated, i'll just do it like i do now.

And what about this i found here:

Quote:
Address: 0x00000056, Bytes: EB 03, Op-code: jmp 0x0000005B, Formula: 0x00000056 + 2 + Bytes value (03) = Destination address. (0x0000005B in our case)


I dont really get it though.. whats Bytes value?
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Nov 21, 2007 10:25 pm    Post subject: Reply with quote

(Sorry, I didn't see that)

Honestly, you don't need to worry about that:

Code:

Formula... whatever = Destination address...


Code:

jmp DESTINATION_ADDRESS_IS_RIGHT_HERE
Back to top
View user's profile Send private message
iToast
How do I cheat?
Reputation: 0

Joined: 21 Nov 2007
Posts: 2

PostPosted: Wed Nov 21, 2007 10:33 pm    Post subject: Reply with quote

What version of C# you using?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Nov 21, 2007 11:48 pm    Post subject: Reply with quote

iToast wrote:
What version of C# you using?


It shouldn't matter in this case.
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Nov 22, 2007 9:20 am    Post subject: Reply with quote

Not in this case, though in some instances .Net 1.1 sucks (Generic Lists > Arrays any day of the week).
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