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 


Simple find and replace ALL strings with the name Hammer

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

Joined: 28 Mar 2016
Posts: 3

PostPosted: Mon Apr 04, 2016 5:35 pm    Post subject: Simple find and replace ALL strings with the name Hammer Reply with quote

Simple find and replace ALL strings with the name Hammer to Hammer1

i'm using cheat engine 6.5 and tried multiple other lua scripts with no luck Sad
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Mon Apr 04, 2016 5:52 pm    Post subject: Reply with quote

Notepad Replace all.


??????

_________________
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Apr 04, 2016 6:05 pm    Post subject: Reply with quote

If you're talking about strings in memory, it's not that easy.
Sometimes games only reserve enough space for the characters used.
If you want to add another character, you may need to completely move the address and update all references.

Best of luck!
Code:
find = stringToByteTable("Hammer")
find[#find+1] = 0
replace = stringToByteTable("Hammer1")
replace[replace+1] = 0
aob = AOBScan(unpack(find))
for i = 0, aob.Count - 1 do
  writeBytes(aob[i], replace)
end
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