Jump to content


  • Content Count

  • Donations

  • Joined

  • Last visited

  • Days Won


CmP last won the day on April 26

CmP had the most liked content!

Community Reputation

355 Boss

About CmP

  • Rank
    Experienced Member

Additional Information

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

Recent Profile Visitors

8,532 profile views
  1. 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
  2. This way the values won't be frozen. Need to call "addListItems" function after the loop that sets "freeze" field to "true".
  3. "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.
  4. 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
  5. 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.
  6. 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)
  7. 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.
  8. You can use group search of bytes. Search string for your case may look like the following: "0;0;0;70h~7Fh;0~~0;0~~0;0Eh~FEh;98h::8" With this search string and selected "Byte" type it should find all sequences of bytes that match your pattern. However, it can also find some sequences that don't match the pattern fully. This is because it's not possible to specify a range for finding a byte of pattern "?E", but one can specify a range that includes all of the values that match the pattern. This alone is enough to eliminate some non-matching bytes, including the most frequent value in memory - 0. To exclude results that are not full matches of the pattern, you need to check 7th byte of every found byte sequences. If it doesn't match the pattern "?E", delete currently checked sequence from search results.
  9. This question is answered in the comment above yours, but it seems that you don't understand how nearby search works, so I will try to clarify. Nearby search works just like normal search, but it only searches for values at within certain distance before and/or after target value. For example, target value's address is 12345000 in hex. If you choose distance 1000 (also in hex) and select "Before" and "After", then the search will be performed only in the following range of addresses: [12345000 - 1000; 12345000 + 1000], i.e. from 12344000 to 12346000. You can achieve the same effect by inputting these numbers in "From" and "To" fields of the normal search dialog. At this point it should be obvious, how can you use this feature in script. If it's not, read the comment above yours, then try to find the answer in documentation for "searchNumber" function.
  10. I did not mean it and why do you think that he did it wrong? The only mistake in the code from the message you quoted was pointed out by Enyby several posts above. As per my suggestion, he did exactly what I described.
  11. You don't need to search for values each time, so move the code for searching values (and the call to "getResults" function) outside the function. It should be executed once before the first call to "doAction" function, so you can insert it, for example, right before the line with "while true do" code.
  12. There is an example of the code for performing an action by clicking on GG icon: Examples of Lua scripts (#d2j0lrom) It's not a complete solution for your task, but may be a good starting point.
  13. You can do it identically to the following example of freezing values: Examples of Lua scripts (#719ibioj)
  14. Use numeric for loop: for i = 1, 100, 1 do print(i) end More info about it can be found in Lua reference manual: https://www.lua.org/manual/5.3/manual.html#3.3.5
  15. You need to call "getResults" function to store results list in a variable. For example: gg.searchNumber('300', gg.TYPE_DWORD) local r = gg.getResults(100) Then, when results list has been cleared and you want to restore saved results, just use "loadResults" function: gg.loadResults(r)
  • Create New...