Jump to content

CmP

Contributor
  • Posts

    663
  • Joined

  • Last visited

  • Days Won

    49

Community Answers

  1. CmP's post in gg.setValues() is very slow? (on the magnitude of 50ms/per call) was marked as the answer   
    Try hiding GG interface (gg.setVisible(false)) before setting values.
  2. CmP's post in How to offset calculator in lua script? was marked as the answer   
    If what you mean is to add 0x14 to address of each found value and load the values to search results or saved list, then the following example based on your code shows how to do that: 
    -- Define the address to search for (in hexadecimal format) local targetAddressHex = "7AF6EF6780" -- Replace with your specific hexadecimal address -- Set the search parameters and search gg.clearResults() gg.searchNumber(targetAddressHex .. "h", gg.TYPE_QWORD) -- Get the search results local results = gg.getResults(500) -- Create table for target values from results by adding offset local targetValues = {} for i, v in ipairs(results) do targetValues[i] = {address = v.address + 0x14, flags = gg.TYPE_FLOAT} end gg.loadResults(targetValues) -- to set search results to target values gg.addListItems(targetValues) -- to add target values to saved list
  3. CmP's post in Calculation error was marked as the answer   
    Make first operand floating-point by multiplying 1.0 by it, that way all calculations will be with floating-point values and you will get approximate result.
    mpy = 1.0 * tonumber(input[1]) * tonumber(input1[1])
  4. CmP's post in libil2cpp.so in region Xs was marked as the answer   
    This merely means that GG hasn't correctly identified that libraries belong to the application, process of which is selected. It doesn't affect anything other than how GG classifies the regions. The regions can still be found manually and from script just fine without relying on region being classified as "Xa", "Cd", etc.
  5. CmP's post in ARM LDR was marked as the answer   
    There are 12 bits in the instruction that are used for encoding offset from PC in bytes, so the limit is from -4095 to 4095.
    Reference: https://developer.arm.com/documentation/ddi0406/cb/Application-Level-Architecture/Instruction-Details/Alphabetical-list-of-instructions/LDR--literal-?lang=en
×
×
  • 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.