Difference between revisions of "Lua:readInteger"

From Cheat Engine
Jump to navigation Jump to search
(Added clarification on the optional flag)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''function''' readInteger(''Address'') ''':''' integer
+
[[Category:Lua]]
 +
'''function''' readInteger(''Address'' [ , ''Flag'']) ''':''' integer
  
 
Reads a DWORD (4 bytes) at the given address and interprets them as an integer
 
Reads a DWORD (4 bytes) at the given address and interprets them as an integer
Line 12: Line 13:
 
|[[CEAddressString]] or Integer
 
|[[CEAddressString]] or Integer
 
|The address to read
 
|The address to read
 +
|-
 +
|Flag
 +
|[[Boolean]]
 +
|If 'true', CE will interpret value as signed. If false or missing, CE will interpret value as unsigned.
 
|}
 
|}
  
  
== See also ==
+
{{LuaSeeAlso}}
* [[Lua]]
 
* [[Help_File:Script engine|Script engine]]
 
  
 
=== Related Functions ===
 
=== Related Functions ===
* [[readBytes]]
+
{{ReadWriteMemory}}
* [[readQword]]
 
* [[readPointer]]
 
* [[readFloat]]
 
* [[readDouble]]
 
* [[readString]]
 
* [[writeBytes]]
 
* [[writeInteger]]
 
* [[writeQword]]
 
* [[writeFloat]]
 
* [[writeDouble]]
 
* [[writeString]]
 
* [[readBytesLocal]]
 
* [[readIntegerLocal]]
 
* [[readQwordLocal]]
 
* [[readPointerLocal]]
 
* [[readFloatLocal]]
 
* [[readDoubleLocal]]
 
* [[readStringLocal]]
 
* [[writeBytesLocal]]
 
* [[writeIntegerLocal]]
 
* [[writeQwordLocal]]
 
* [[writeFloatLocal]]
 
* [[writeDoubleLocal]]
 
* [[writeStringLocal]]
 
* [[wordToByteTable]]
 
* [[dwordToByteTable]]
 
* [[qwordToByteTable]]
 
* [[floatToByteTable]]
 
* [[doubleToByteTable]]
 
* [[stringToByteTable]]
 
* [[wideStringToByteTable]]
 
* [[byteTableToWord]]
 
* [[byteTableToDword]]
 
* [[byteTableToQword]]
 
* [[byteTableToFloat]]
 
* [[byteTableToDouble]]
 
* [[byteTableToString]]
 
* [[byteTableToWideString]]
 

Latest revision as of 21:27, 29 May 2025