Jump to content

Recommended Posts

Posted (edited)

SIMPLE SCRIPT EASY TO UNDERSTAND HOW TO USE OFFSET WITH GAME GUARDIAN 

gg.setValues({{address=gg.getRangesList("libexample.so")[1].start+0xABC123,flags=gg.TYPE_FLOAT,value=345}})

 

Script Breakdown

 

1. gg.setValues(): This function is used to set new values in the memory of the application being modified by GameGuardian. It allows you to specify what memory address you want to change and what value you want to set there.

 

2. {{address=gg.getRangesList("libexample.so")[1].start+0xABC123, flags=gg.TYPE_FLOAT, value=345}}: This argument to `gg.setValues()` is a table (in Lua, tables are used to represent arrays and objects). Let’s dissect this table:

 

   gg.getRangesList("libexample.so"): This function retrieves a list of memory ranges associated with the specified library, in this case, `"libexample.so"`. The returned list includes information about different segments of memory related to this library.

 

   [1]: Accesses the first range/address(base Address) from the list. This typically refers to the main segment where the library’s data is stored.

 

   start: This property of the memory range object gives the starting address of the memory segment for `"libexample.so"`.

 

   +0xABC123: Adds an offset to the starting address. The offset `0xABC123` is a hexadecimal number which represents the specific location within the library’s memory where you want to make the change.

 

   flags=gg.TYPE_FLOAT: Specifies the type of data being modified at the target address. In this case, `gg.TYPE_FLOAT` indicates that the value being set is a floating-point number.

 

   value=345: This is the new value that will be set at the calculated address. Since `flags=gg.TYPE_FLOAT`, `345` will be interpreted as a floating-point number.

Summary

 

This script sets a floating-point value (`345`) at a specific address in the memory of the game or application. The exact address is determined by adding an offset (`0xABC123`) to the starting address of the memory range for the `"libexample.so"` library. This could be used to modify game behavior or data dynamically.

Edited by Hamzabbas
Type Error

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.