Jump to content


  • Content Count

  • Donations

  • Joined

  • Last visited

  • Days Won


Everything posted by Enyby

  1. This information is not public. The structure can be changed at any time. You should not rely on it.
  2. Yes. Only via macro record apps. HiroMacro for example.
  3. Use a game that has x86 libraries and they are not installed on the x86 device. [added 0 minutes later] Also need use latest GG.
  4. Enyby

    GG's been detected

    The solution exists in the help of GameGuardian.
  5. gg.addListItems
  6. Enyby

    delete file lua scrpit

    Use known part of file as mask: rm *etc.lua [added 1 minute later] Or rename it: mv *etc.lua 123.lua If you still want use this script.
  7. Depends on the specific situation. For example, if the code needs to be executed within a certain time frame or 30 such code sections must be executed. In this case, even for 100 elements there can be a noticeable difference.
  8. You can make it is faster, by cache get 'value' from inner table: local results = gg.getResults(5000) for i, v in ipairs(results) do local value = v.value if value == 1014350479 then v.value = 1011011011 elseif value == 1050253722 or value == 1031127695 then v.value = 1 else results[i] = nil end end gg.setValues(results) results = nil
  9. No. Any loop work one-by-one. But you do same work again and again. You can compile both examples to LASM and compare count of instructions. You will be unpleasantly surprised by the number of instructions in your code. for i = 1 ,#t1 do if(t1[i].value==1014350479)then -- get t1[i] t1[i].value = 1011011011 -- get t1[i] again elseif(t1[i].value==1050253722 or t1[i].value ==1031127695)then -- get t1[i] two times t1[i].value = 1 -- get t1[i] again end end Lua do not optimize any code. So if you write get same value few times - lua do it for you. With decrease performance, because it is pointless work.
  10. By the way, for this reason, this code: local t = {1, 2, 3, ..., 1000} much faster than this: local t = {} t[1] = 1 t[2] = 2 t[3] = 3 ... t[1000] = 1000 For the table, an array of the right size is immediately allocated, and not reallocated repeatedly as it is populated. Although, again, this is true when the number of elements is thousands and tens of thousands, and not when there are hundreds of them. In this case, there will be no apparent difference.
  11. this line erase element from table. So setValues do not re-set values and we avoid possibility erase changed value with old one. Also this operation really fast if run on list table (array-like table, called sequence in lua manual). And this is not rebuild table or reallocate memory, just exclude one value. So this way really fast. But if you try (after few remove) add to table some new value, or remove value from hash part - it can call rebuild table with memory reallocation, which is slow.
  12. better use ipairs for speed. or you need make local variable for store t[i] . Index over table is not a free. Better use it one time per loop iteration if it is possible. for i, v in ipairs(results) do Already do it for you.
  13. Strictly speaking fastest is reuse results table: local results = gg.getResults(5000) for i, v in ipairs(results) do if v.value == 1014350479 then v.value = 1011011011 elseif v.value == 1050253722 or v.value == 1031127695 then v.value = 1 else results[i] = nil end end gg.setValues(results) results = nil
  14. better: v.value = 1011011011 edited[#edited + 1] = v do not waste time and memory for duplicate same table.
  15. Search not ordered, so order can be any and this code not work properly. This is not even taking into account the fact that there may be duplicates of the same values in a row. [added 1 minute later] Iterate over results, build table and pass it to setValues. Best solution if you have small amount of results.
  16. Use record feature for get script. After that compare results with your code. Your code doing something wrong. [added 2 minutes later] gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('30', gg.TYPE_DWORD) gg.stResults(10000) -- stResults is nil gg.sleep(100) gg.editAll('10000000', gg.TYPE_DWORD) g.searchNumber("0.15", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) -- g is nil, no clear previuos search resulta gg.getResults(2000, nil, nil, nil, nil, nil, nil, nil, nil) gg.editAll("0.005", gg.TYPE_FLOAT) gg.toast('Firerate hacked')
  17. This "not working" because you not provide text of error or clear description what happens instead of what you want. Nobody play with you on guessing game. http://www.catb.org/~esr/faqs/smart-questions.html#idm573
  18. No. No. You need read API help. Do some small examples, use record script feature and so on. Al of these described in help and on forum.
  19. Common errors in help requests (#3mwioa3r) No errors, text on images... You definitely not want help.
  20. Dot decimal separator. So '1.014.350.479' is not a valid number. For change one value from group search need do refine search and editAll after that. Or load all values and work with it in loop. Use 'if' and 'setValues'.
  21. Enyby

    delete file lua scrpit

    Try rename first. In terminal for example.
  22. No. Use gdb. It is not a feature for memory editor.
  • Create New...