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 


Batch update invalid script addresses

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

Joined: 09 Feb 2021
Posts: 83

PostPosted: Fri Aug 05, 2022 7:37 am    Post subject: Batch update invalid script addresses Reply with quote

This can be used for update script that address invalidation but relatively offset not change.

Code:

local list = getAddressList()
 for n = 0, list.Count - 1 do
  local rec = list[n]
  if rec.OffsetCount > 0 then
  py = rec.Offset[0] + 0x26D9B4
  rec.setAddress("0x123")--Change here to target
  rec.setOffsetCount(2)
  rec.setOffset(0, py)
  rec.setOffset(1, 0x678)
 end
end


Batch modify the addresses whose value is not 0 in the script

Code:

local list = getAddressList()
 for n = 0, list.Count - 1 do
 local rec = list[n]
 cp = tonumber(rec.value)
 if  cp ~= nil
  then
 if cp > 0 then
 rec.value = 999
end
end
end



what level can upload a gif image of the function demonstration?
What caused it? this ——Upload Error: Could not upload Attachment to ./files/gif03_847.gif.
how he do this ?
https://forum.cheatengine.org/viewtopic.php?t=619620
the gif link is https://forum.cheatengine.org/files/structurepicker....


Last edited by etioplmld on Tue Aug 23, 2022 10:14 am; edited 2 times in total
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sat Aug 06, 2022 1:50 am    Post subject: Reply with quote

Upload the gif to an alternative site. Gifyu or something similar.
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