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 


FoundLists

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

Joined: 05 Mar 2016
Posts: 75

PostPosted: Sat Aug 19, 2017 1:17 pm    Post subject: FoundLists Reply with quote

Having a performance problem, I do a lot of math on Addresses found with scans. Is there anyway to get the RAW address from a FoundList or (AOBScan)?

address = GetAddress(foundlist.Address[0])

is 25% slower than

address = 0x0000000000000000
or
address = numaddresslist[0]

Is there something like fl.RawAddress[0], because it seems like the IntToHex() Combined with getAddress seems to be extremely slow?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat Aug 19, 2017 1:23 pm    Post subject: Reply with quote

address=tonumber(0x..foundlist.Address[0])

alternatively, maybe you wish to look into custom types instead

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
dl748
Advanced Cheater
Reputation: 0

Joined: 05 Mar 2016
Posts: 75

PostPosted: Sat Aug 19, 2017 2:00 pm    Post subject: Reply with quote

I'll try that out. How would a custom type help? Addresses are always returned by Hex and not integer.

EDIT: Thanks, that gave me a 15% increase in speed. I'm guessing the symbol lookup is rather slow.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat Aug 19, 2017 3:13 pm    Post subject: Reply with quote

symbol lookup also keep in mind calculations, symbols, and lua variables

a custom type gets thevraw data. there you can decide if it is a valid address by returning a proper value or not (e.g 0 if not)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
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