memory
Used to read game memory
When using the Memory API the info is returned directly from memory. It's strongly advised that these functions are never called within the paint callback. Calling these functions within the paint callback, may cause unexpected performance drops. Querying the game's memory is expensive, and doing it every frame is not optimal.
Functions:
Read Byte
memory.read_byte(address);Performs a read request with the type byte at the specified address.
Read Bool
memory.read_bool(address);Performs a read request with the type bool at the specified address.
Read Float
memory.read_float(address);Performs a read request with the type float at the specified address.
Read Int
memory.read_int(address);Performs a read request with the type int at the specified address.
Read String
memory.read_string(address);Copies a buffer of characters from the specified address and automatically terminates the string at a invalid character.
Read Vector
memory.read_vector3(address);Performs a read request with the type vector at the specified address. Keep in mind vector being the custom type similar to the one accessible via the API.
Read Short
memory.read_short(address);Performs a read request with the type short at the specified address.
Read Double
memory.read_double(address);Performs a read request with the type double at the specified address.
Read Int64
memory.read_int64(address);Performs a read request with the type int64_t at the specified address.
Read Int32
memory.read_int32(address);Performs a read request with the type int32_t at the specified address.
Read Int16
memory.read_int16(address);Performs a read request with the type int16_t at the specified address.
Read Int8
memory.read_int8(address);Performs a read request with the type int8_t at the specified address.
Read Mat4
memory.read_mat4(address);Performs a read request a 4x4 matrix of float values from the specified memory address. The matrix is returned as a two-dimensional array of floats, with 4 rows and 4 columns, representing the structure at that memory location.
Write Byte
memory.write_byte(address, value);Performs a write request with the type byte at the specified address.
Write Bool
memory.write_bool(address, value);Performs a write request with the type bool at the specified address.
Write Float
memory.write_float(address, value);Performs a write request with the type float at the specified address.
Write Int
memory.write_int(address, value);Performs a write request with the type int at the specified address.
Write Vector
memory.write_vector3(address, x, y, z);Performs a write request with the type vector at the specified address. Keep in mind vector being the custom type similar to the one accessible via the API.
Write Short
memory.write_short(address, value);Performs a write request with the type short at the specified address.
Write Double
memory.write_double(address, value);Performs a write request with the type double at the specified address.
Write Int64
memory.write_int64(address, value);Performs a write request with the type int64_t at the specified address.
Write Int32
memory.write_int32(address, value);Performs a write request with the type int32_t at the specified address.
Write Int16
memory.write_int16(address, value);Performs a write request with the type int16_t at the specified address.
Write Int8
memory.write_int8(address, value);Performs a write request with the type int8_t at the specified address.
Last updated