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 


Noob question on trainers

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

Joined: 30 Nov 2013
Posts: 2

PostPosted: Sat Nov 30, 2013 11:47 am    Post subject: Noob question on trainers Reply with quote

Hi everyone,
I've been learning some CE Lua right now, however I'm a bit confused on how to do basic CE things.

I want to 4 Byte, Exact Value scan a value and be returned with a table of all of this in the address list.

I then want to change ALL of them at a time.

It's a nooby question, however, if i know how to get a table of all the scanned items from a 4 Byte, Exact Value scan, then I can probably be able to change them by looking at some wiki pages.
If this doesn't make sense, then I'll try rephrase.

All I'm asking for is some functions to do what I'm trying to do, because looking at the lua wiki page is confusing.
Back to top
View user's profile Send private message
Rawing
Cheater
Reputation: 0

Joined: 01 May 2010
Posts: 42
Location: Austria

PostPosted: Mon Dec 02, 2013 10:17 am    Post subject: Reply with quote

Have a look at the AOBScan function.
Basically, it works like this:
Code:
local results = AOBScan("FF 23 7B 67")

You'll have to adjust the value of the four bytes, of course. Make sure you put them in the correct order - I couldn't figure out why it didn't work until I noticed the value I'm looking for is saved as big endian. The easiest way is probably to look at the value in CE's memory browser.

_________________
Game over! Die again!
Back to top
View user's profile Send private message MSN Messenger
YaYaBinks3
How do I cheat?
Reputation: 0

Joined: 30 Nov 2013
Posts: 2

PostPosted: Sat Dec 07, 2013 5:53 pm    Post subject: Reply with quote

How can I next scan? Just AOBScan again?
Back to top
View user's profile Send private message
Rawing
Cheater
Reputation: 0

Joined: 01 May 2010
Posts: 42
Location: Austria

PostPosted: Tue Dec 10, 2013 5:07 am    Post subject: Reply with quote

Good question. Probably not. Take a look at the MemScan class; that looks promising, since it has a firstScan and a nextScan function. I've never used it, though.

PS: You can find info about the available classes and functions in the main.lua file.

_________________
Game over! Die again!
Back to top
View user's profile Send private message MSN Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Wed Dec 11, 2013 9:27 am    Post subject: Reply with quote

I've used many C.E functions but actually never used the MemScan class..
Let me check it out.
and I'll post an example for you.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
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