Getting unexpected value when reading Integer
Posted: Sat Dec 18, 2021 10:30 pm
Hello. I wanted to learn more about Lua and Cheat engine so I got a Lua book yesterday and started learning a little on my own.
As a basic first test ever I am simply trying to get the 2 byte value at the address 009188A4 which cheat engine shows as 2400 on the address list but when using ReadSmallInteger I get 1024 instead.
Can someone let me know what I am doing or expecting wrong?
As a basic first test ever I am simply trying to get the 2 byte value at the address 009188A4 which cheat engine shows as 2400 on the address list but when using ReadSmallInteger I get 1024 instead.
Code: Select all
testaddress = ("[bio4.exe+8388A4]")
value1 = ReadSmallInteger(testaddress)
value2 = ReadInteger(testaddress)
value3 = ReadQword(testaddress)
value4 = ReadFloat(testaddress)
value5 = ReadDouble(testaddress)
value6 = ReadBytes(testaddress)
print("Read Small Integer: ".. value1.."\n","Read Integer: "..value2.."\n","Read Qword: "..value3.."\n","Read Float: ".. value4.."\n","Read Double: "..value5.."\n","Read bytes: ".. value6)