Joined: 12 Jan 2017
|Posted: Mon Feb 20, 2017 9:21 pm Post subject: Adding Hex numbers to Base Address?
|Trying to convert my trainer to an AoB-based code instead of static addresses since I've noticed the statics are changing when the game updates.
I'd planned to find an AoB, get its address and then add offsets for all the 12 or so other address that I need.
So far, this is what I have:
local AoB = AOBScan("big long string of bytes")
local BaseAddress = AoB
writeInteger(BaseAddress,0) --This works fine.
readInteger(BaseAddress-0x45B64) --This doesn't work at all
That's a stripped version of the general idea, but for the life of me I can't figure out why the readInteger isn't working. I've tried putting it in quotes, brackets, removing the 0x, converting it to decimal, assigning a separate variable (i.e. NewAddress=BaseAddress-0x45B64) and using that (i.e. readInteger(NewAddress)) but nothing's working.
Printed values keep telling me that BaseAddress-0x45B64 is 1.#INF... which I know isn't right.
So, what IS the correct syntax?