Jump to content


  • Content Count

  • Donations

  • Joined

  • Last visited

  • Days Won


CmP last won the day on August 20

CmP had the most liked content!

Community Reputation

359 Boss

About CmP

  • Rank
    Experienced Member

Additional Information

  • Android
    7.x (Nougat)
  • Device
    Xiaomi Redmi Note 4X

Recent Profile Visitors

8,822 profile views
  1. In "offset" function: And right after the call to it: Instead of adding table of tables to "vPool" table, add just tables that contain info about a particular memory item. For example, in your code instead of addItem(vPool, r) do addItem(vPool, r[1])
  2. To fix what? You forgot to describe the problem. From the screenshot you attached it is in no way obvious what the problem is. If you wonder why second and third elements of "vPool" table are references to the same table, that's because your code calls "addItem" function with the same arguments twice.
  3. In case of modifying value by freezing it to a new value "addListItems" can be used, but in case of just changing value without freezing it "setValues" function is the one to use. Generally, you shouldn't use "addListItems" on values that you don't want to be added to saved list. Values that are needed to be frozen is exception, because in GG a value can't be frozen without it being added to saved list.
  4. That's because you use "setValues" function. "addListItems" is the one you need to use to freeze a value.
  5. You don't need a loop here. Extract the code from loop body and change all references to "v" to "vPool" and it might work as you expect.
  6. To change values of all elements in saved list it's enough to do the following: local items = gg.getListItems() for i, v in ipairs(items) do v.value = '123' -- new value end gg.setValues(items)
  7. The answer above from @SAGEPAPI is exactly what you wanted to know. 5th and 6th parameters of "searchNumber" function are used to set lower and upper bound of range of addresses to perform search in. This is written in the documentation to the function which can be found here. Don't hesitate to check the documentation when you have GG API-related questions.
  8. Don't forget to call "gg.clearResults" function before each call to "gg.searchNumber" if you want new search, because when search results list is not empty, refine search is performed.
  9. CmP


    Just check if table returned by "getListItems" function contains any elements. local t = gg.getListItems() if #t == 0 then print('Saved list is empty') else print('Saved list is not empty') end
  10. This way the values won't be frozen. Need to call "addListItems" function after the loop that sets "freeze" field to "true".
  11. "freezeType" parameter has default value of "gg.FREEZE_NORMAL", so it's not necessary to explicitly specify it. However, you are absolutely correct about missing call to "addListItems" function that is required to save values to saved list.
  12. CmP

    Cheat Engine server

    It is needed in all cases if you want to use Cheat Engine from PC as client to the server that is running on your android device. Here you can find the description of what the command does: https://developer.android.com/studio/command-line/adb#forwardports
  13. Then you should be grateful that someone who can see the comments pointed you to the answer to your question, shouldn't you? And the explanation may be still useful for someone else.
  14. CmP

    Find nearby

    If address of target value is 0x22446688 and you want to search for dword values that are located within 0x100 distance from target value, the following code can be used: gg.clearResults() gg.startFuzzy(gg.TYPE_DWORD, 0x22446588, 0x22446788) Also there is a brief explanation of how nearby search works in the following post: 96.0: Added nearby search - GameGuardian (#bese6m2m)
  15. CmP


    If "spam a text" means "repeat text certain amount of times", then you need to: 1. construct string in which desired text is repeated desired amount of times; 2. pass it as argument to "alert" function. First step can be done using loop or "string.rep" function. Examples: -- Using loop local str = '' for i = 1, 10 do str = str .. 'text to repeat\n' end -- Using string.rep function local str = string.rep('text to repeat\n', 10) Second step is just to call "alert" function and pass constructed string to it as argument. Example: gg.alert(str) No, there is no function for pasting clipboard contents in GG API, because it's not something that is needed (or even applicable) for GG scripts. And after all, you can paste copied text to text fields manually.
  • Create New...