Skip to content

Read Memory Functions

erfg12 edited this page Aug 6, 2018 · 38 revisions

NOTE: You can substitute "string name" with your actual code and leave "string file" empty.

EXAMPLE:

float current_hp = MemLib.readFloat("gamedll_x64_rwdi.dll+0x007F94E8,0x18,0x18,0xF0,0xB0,6BC");
MessageBox.Show("My current HP is: " + current_hp.ToString()); //popup msg with 226.9341431

//OR

float current_hp = MemLib.readFloat("health", codes.ini); //make a codes.ini file
MessageBox.Show("My current HP is: " + current_hp.ToString()); //popup msg with 226.9341431


long readLong(string code, string file = "")

  • Read a long value. Used for 64 bit long values.

float readFloat(string code, string file = "")

  • Read a float value. This can be a decimal or double too.

float readPFloat(UIntPtr address, string code, string file = "")

  • Read a float value from a pointer to the next offset value. Good for reading specific locations from a function within the program's process.

string readString(string code, string file = "")

  • Read a string value.

string readPString(UIntPtr address, string code, string file = "")

  • Read a string value from a pointer to the next offset value. Good for reading specific locations from a function within the program's process.

int readInt(string code, string file = "")

  • Read an integer value.

int readPInt(UIntPtr address, string code, string file = "")

  • Read an integer value from a pointer to the next offset value. Good for reading specific locations from a function within the program's process.

int readIntMove(string code, int moveQty, string file = "")

  • Read integer value, and move a specific quantity to the right. Good for reading arrays. Use this within a loop statement.

Example of an int: –2147483648 to 2147483647

uint readUInt(string code, string file = "")

  • Read a UInteger value.

ulong readUIntMove(string code, int moveQty, string file = "")

  • Read Uinteger value, and move a specific quantity to the right. Good for reading arrays. Use this within a loop statement.

Example of a uint: 0 to 4294967295

int read2ByteMove(string code, int moveQty, string file = "")

  • Read a 2 byte value, and move a specific quantity to the right. Good for reading arrays. Use this within a loop statement.

int read2Byte(string code, string file = "")

  • Read a 2 byte value.

int readByte(string code, string file = "")

  • Read a 1 byte value.

int readPByte(UIntPtr address, string code, string file = "")

  • Read a 1 byte value from a pointer to the next offset value. Good for reading specific locations from a function within the program's process.

int readUIntPtr(UIntPtr code)

  • Read an integer value from a pointer that is not stored in a file.

IntPtr AoBScan(int min, int length, string code, string file = "")