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 


Help getting started

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Snooman
Cheater
Reputation: 1

Joined: 20 Jan 2012
Posts: 42

PostPosted: Mon Mar 19, 2012 2:38 pm    Post subject: Help getting started Reply with quote

I have my .CT with addresses and I know what to do with it.
But now I want to start a Trainer.

I designed a nice FORM but I am totally overwhelmed by all the information here and I have no clue how to get started.

Can someone provide me a beginners .CETRAINER file to learn from and see some basic techniques (like interaction with address-list/memory)
any game.. its just for learning

Thank you in advance
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Mon Mar 19, 2012 2:50 pm    Post subject: Reply with quote

Accessing the addresslist is already an advanced topic.

look at the generic trainer script the automated trainer maker generates. It gives some ideas. (registering an auto attach process, intercepting hotkeys from the addresslist, showing a form, etc...)

Anyhow, the first thing you want your script to do is show your form. Do that by using
Code:

form_show(yourformname)


Tip: Components on the form can be accessed by name using yourformname_componentname

Anyhow, ask specific questions and I can help better

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Snooman
Cheater
Reputation: 1

Joined: 20 Jan 2012
Posts: 42

PostPosted: Mon Mar 19, 2012 3:19 pm    Post subject: Reply with quote

Dark Byte wrote:
automated trainer maker(...)


OMG.. I found this now. How cool is this ?

This answers many of my questions..... Thanks!!!
Back to top
View user's profile Send private message
Snooman
Cheater
Reputation: 1

Joined: 20 Jan 2012
Posts: 42

PostPosted: Fri Mar 23, 2012 2:20 am    Post subject: Reply with quote

Can you give me a little advice how to do this in lua:


Form:

[ Button xxx ]

OnClick ->
Read Memory Pointer at: "mygame.exe+01f3523" wich holds the starting adress (eg. 0x00200000)
End = starting adress + 0x8000
Fill memory bytes from start to end with 0.


thanks in advance !
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Mar 23, 2012 4:43 am    Post subject: Reply with quote

Easiest method (there are faster methods, but this is the easiest to understand)
Code:

start=readInteger("mygame.exe+01f3523")

for i=0,0x7fff do
  writeBytes(start+i,0)
end


_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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