Difference between revisions of "Lua:readBytesLocal"

From Cheat Engine
Jump to navigation Jump to search
(Dilber)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''function''' readBytes(''Address'', ''Bytecount'', ''ReturnAsTable'' )
+
[[Category:Lua]]
 +
'''function''' readBytesLocal(''Address'', ''Bytecount'', ''ReturnAsTable'' ) ''':''' (byte, ...) '''-''' table
  
Returns the bytes at the given address
+
Returns the bytes at the given address, in Cheat Engine's memory.
  
Note: The bytes read are from the Cheat Engine process instead of the targeted process
+
Note: The bytes read are from the Cheat Engine process instead of the targeted process.
  
I don't think you can do it directly from a CSV. But, if you imorpt the whole CSV and save it as an HTML table, you can use that table as a Spry Data Source. Here are the steps:1. Import CSV into n HTML table following this tutorial2. Give the table an ID, i.e. id= data 3. Save the file. i.e data.html4. Create a new HTML file and go to Insert->Spry->Spry Data Set5. A three step wizard will launch that will help you with the rest.6. On the last step of the process make sure to click the  Set Up  button, which will help you pick the columns :)I know it's not as simple, but you may like the result!
+
===Function Parameters===
 +
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 +
!align="left"|Parameter
 +
!align="left"|Type
 +
!style="width: 80%;background-color:white;" align="left"|Description
 +
|-
 +
|Address
 +
|[[CEAddressString]] or Integer
 +
|The address to read
 +
|-
 +
|Bytecount
 +
|Integer
 +
|The number of bytes to read
 +
|-
 +
|ReturnAsTable
 +
|Boolean
 +
|Returns a table object instead of multiple return values
 +
|}
  
== See also ==
+
 
* [[readBytes]]
+
{{LuaSeeAlso}}
* [[Lua]]
+
 
 +
=== Related Functions ===
 +
{{ReadWriteMemory}}

Latest revision as of 00:02, 25 January 2018

function readBytesLocal(Address, Bytecount, ReturnAsTable ) : (byte, ...) - table

Returns the bytes at the given address, in Cheat Engine's memory.

Note: The bytes read are from the Cheat Engine process instead of the targeted process.

Function Parameters[edit]

Parameter Type Description
Address CEAddressString or Integer The address to read
Bytecount Integer The number of bytes to read
ReturnAsTable Boolean Returns a table object instead of multiple return values


See also[edit]

Related Functions[edit]