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 


How create trainers with simples values?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sun Apr 23, 2017 2:34 pm    Post subject: Reply with quote

Most trainers don't do that. The creator will find the address/pointer to the exact value(s) they want to change and then write code to change those, not scan for a value and then change everything found on that search.

Though it is possible using a lua script:

Code:
scan = createMemScan()

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

scan.firstScan(soValueBetween, vtDouble, rtRounded, "0.200", "0.200", 0, 0xffffffffffffffff, "+w", fsmAligned, "4", false, false, false, false)


So if you know how to create a trainer that uses lua then there you go, otherwise... I'm not sure off the top of my head.

Not sure what "hidden the values" means.
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