Page 1 of 1

Lua Question

Posted: Sat Feb 03, 2018 5:40 pm
by MangaDrawing
Hi.
I want to remove a decimal values from values founds list(no address list) for when i searching between two numbers.
How do with lua?

Re: Lua Question

Posted: Sun Feb 04, 2018 4:20 pm
by FreeER
You can use some custom types like these to only show floating point values that do not have a fractional value
[Link]
[Link]

Thanks to mgr.inz.Player and ParkourPenguin on the CE forums.

I suppose you could implement those in lua rather than asm as well but lua is far far slower at scanning than assembly, so... don't :D

AFAIK there's no provided way to change the actual found list of addresses in a scan from lua... you could do a memscan and copy addresses from the found list to your own table if they are whole numbers but that's about the best you have. To rescan you'd have to continue using the original found list or implement scanning yourself by looping over your table and doing the scans. Much simpler and quicker to use a custom type in asm.