Memory¶
Functions to read and write the game's memory directly.
Danger
These functions do not check anything. An invalid address crashes the game. Prefer the
Engine API, which covers tags, objects and players safely.
Functions¶
| Function | Description |
|---|---|
Balltze.memory.readInt8(address), readInt16, readInt32, readInt64 |
Reads a signed integer of 8, 16, 32 or 64 bits. |
Balltze.memory.readUInt8(address), readUInt16, readUInt32 |
Reads an unsigned integer of 8, 16 or 32 bits. |
Balltze.memory.writeInt8(address, value), writeInt16, writeInt32, writeInt64 |
Writes a signed integer of 8, 16, 32 or 64 bits. |
Balltze.memory.writeUInt8(address, value), writeUInt16, writeUInt32 |
Writes an unsigned integer of 8, 16 or 32 bits. |
Balltze.memory.readFloat(address), readDouble(address) |
Reads a 32 or 64 bit floating point number. |
Balltze.memory.writeFloat(address, value), writeDouble(address, value) |
Writes a 32 or 64 bit floating point number. |
Balltze.memory.readString8(address) |
Reads a null terminated ASCII string. |
Balltze.memory.writeString8(address, value) |
Writes a null terminated ASCII string. |
Balltze.memory.readBit(address, bit) |
Reads bit bit (0 to 31) of the 32 bit value at address. Returns 0 or 1. |
Balltze.memory.writeBit(address, bit, value) |
Sets or clears bit bit (0 to 31). value is 0, 1 or a boolean. |