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 would i add a list of Addresses using LUA?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
drewfist98
Newbie cheater
Reputation: 0

Joined: 24 Mar 2015
Posts: 11

PostPosted: Sun Feb 28, 2021 3:42 pm    Post subject: How would i add a list of Addresses using LUA? Reply with quote

Lets say i have multiple addresses that i would like to add to address list.
How would could i use lua to automatically add them?

for example, lets say i had 3 address: 00000001,00000002,00000003

i could turn it into a list: list = [00000001,00000002,00000003]


and have lua automatically add them to my cheat list
make them all float value, no description
Back to top
View user's profile Send private message
ByTransient
Expert Cheater
Reputation: 1

Joined: 05 Sep 2020
Posts: 122

PostPosted: Wed Apr 07, 2021 7:39 pm    Post subject: Reply with quote

EDIT:

This is where "vtFloat" defines a byte value.
If you do "Add.Type = vtSingle" or Add.Type = 4 "instead, it will result in" Float ".

Code:
MaxAddressAdd = 3

UPNP = 0x00000001

Relative = 0x00

local al = getAddressList()
for i = 0,MaxAddressAdd-1 do
local Listener = string.format("+%8X", i + UPNP + Relative)
local Add = al.createMemoryRecord()
Add.Description = "Annunnakis"..i
Add.Type = 4
Add.Address = Listener
end


Here are the CE.Defines descriptions:
Code:
--Variable types
vtByte=0
vtWord=1
vtDword=2
vtQword=3
vtSingle=4
vtDouble=5
vtString=6
vtUnicodeString=7 --Only used by autoguess
vtWideString=7
vtByteArray=8
vtBinary=9
vtAll=10
vtAutoAssembler=11
vtPointer=12 --Only used by autoguess and structures
vtCustom=13
vtGrouped=14
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