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 


Don't scan or don't change, what is the error?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 337

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

PostPosted: Thu May 04, 2017 2:52 pm    Post subject: Re: Don't scan or don't change, what is the error? Reply with quote

jededias wrote:
Sorry for spam, but i need this code, I used this lua script in a button, when I press a button it don't search or don't changed.

I try in cheat engine, and All values remains #0080FF '-'

Code:
function CEButton1Click(sender)
scan = createMemScan()

scan.onScanDone = function(scan)
  local fl = createFoundList(scan)
  fl.initialize()
  for i=0, fl.Count-1 do
    writeString(fl.Address[i], "#D3FFCE")
  end
  -- assuming these should be done for memory reasons
  fl.destroy()
  scan.destroy()
end

scan.firstScan(soExactValue, vtString, rtRounded, "#0080FF", "#0080FF", 0, 0xffffffffffffffff, "+w", fsmAligned, "4", false, false, false, false)
end


are you sure the text is on a writable address ? ( because you tell it with the +w that it HAS to be writable )

and is the text on that address dividable by 4 ( fsmAligned, "4" )

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
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