Jump to content

CyrA

Members
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    1

CyrA last won the day on March 10

CyrA had the most liked content!

Additional Information

  • Android
    6.x (Marshmallow)
    7.x (Nougat)
    8.x (Oreo)
    9.x (Android P)
  • Device
    android studio;Moto G;Mi A1;etc.
  • Service provider
    Other

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CyrA's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

7

Reputation

    This script is just a scam for script-kiddies. NB: working hacks use to : Not ask for bucks (as the aim is often to save time and money when playing). Don't encourage to contact the "author", as real hackers prefer to spend their time hacking rather than scamming.
  1. Thx a lot. For now I didn't need to refine to take care of this hint. Maybe the documentation could be more explicit, eg: put a gg.clearResults in the "see also" and in the example + write in comment when gg.searchNumber will do a new search or a refine.
  2. Ok, I also rename 'f' to 't' (just in case of some lua secret magic like ( cf. getn() ) : function searchNSave(input) gg.searchNumber(input.search, gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) local r = gg.getResults(input.maxresults, nil, nil, nil, nil, nil, nil, nil, nil) local str = '' local t = {} local j = 1 for i,v in ipairs(r) do if v.value ~= input.stars and v.value > 0.9 and v.value < 5.1 then t[j] = {} t[j].address = v.address t[j].flags = v.flags t[j].name = input.name..' ('..i..') '..v.value j = j +1 str = str ..' '.. v.value end end print(t, gg.addListItems(t)) local v = gg.getListItems() print(#t, #v) gg.toast(input.name..':'..str) end And the list I like too add seems correct:
  3. I have improve my function as you recommended : function searchNSave(input) gg.searchNumber(input.search, gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) local r = gg.getResults(input.maxresults, nil, nil, nil, nil, nil, nil, nil, nil) local str = '' local f = {} local j = 1 for i,v in ipairs(r) do if v.value ~= input.stars and v.value > 0.9 and v.value < 5.1 then f[j] = {} f[j].address = v.address f[j].flags = v.flags f[j].name = input.name..' ('..i..') '..v.value j = j +1 str = str ..' '.. v.value end end gg.addListItems(f) local v = gg.getListItems() print(#f, #v) gg.toast(input.name..':'..str) end But the result is the same :
  4. I have re-install last version (70.2) and add a print in my function : function searchNSave(input) gg.searchNumber(input.search, gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) local r = gg.getResults(input.maxresults, nil, nil, nil, nil, nil, nil, nil, nil) local str = '' for i,v in ipairs(r) do if v.value ~= input.stars and v.value > 0.9 and v.value < 5.1 then local f = {} f[1] = {} f[1].address = v.address f[1].flags = v.flags f[1].name = input.name..' ('..i..') '..v.value gg.addListItems(f) str = str ..' '.. v.value local v = gg.getListItems() print(#f, #v) end end gg.toast(input.name..':'..str) end And i get:
  5. View File freeze HP/MP in any Lua games -- Script to search and freeze up to 5 decreasing values (eg: hp, mp, etc.) -- in games written also in Lua language. -- This script use the fact that lua numbers are always stored as double -- and followed by 3D, cf. src/lua.h in its source code. -- Sometimes you won't find the exact value your are looking for (eg: there are different way to write the same double value or the value displayed is truncated). -- Then you can also set a margin for each one of the 5 values. How to use: look for the values you would like to freeze (eg. health points or mana points indicated in your game) pause the game (u may use autopause from the game guardian's main menu) store these values through the edit menu restart the script and select search and freeze. Once the search are finished go back to your game and play : script will auto detect and freeze the values you registered before. Submitter CyrA Submitted 12/26/18 Category Tools
  6. Version 1.2.0

    6,084 downloads

    -- Script to search and freeze up to 5 decreasing values (eg: hp, mp, etc.) -- in games written also in Lua language. -- This script use the fact that lua numbers are always stored as double -- and followed by 3D, cf. src/lua.h in its source code. -- Sometimes you won't find the exact value your are looking for (eg: there are different way to write the same double value or the value displayed is truncated). -- Then you can also set a margin for each one of the 5 values. How to use: look for the values you would like to freeze (eg. health points or mana points indicated in your game) pause the game (u may use autopause from the game guardian's main menu) store these values through the edit menu restart the script and select search and freeze. Once the search are finished go back to your game and play : script will auto detect and freeze the values you registered before.
  7. 1&2 : So u would like to have a script to test bug 1 and 2. Eg a non-regression or unitary test. Have you already some of them somewhere (so I may improve them) ? (I don't know how to make lua script using arbitrary written memory region instead of those of a running game). 3. I understand very well that the search string is directly parsed and executed, and that is not a light feature request. Maybe you could let my contribute to GG (and give me a partial git access) ? ps. Thanks, going back looking for it.
  8. Hello, I would like to Open 3 issues : one critical bug in last version, one major bug in all tested version, and one request for explication and improvement. All of this is related with the following lua script for gg : function searchNSave(input) gg.searchNumber(input.search, gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1) local r = gg.getResults(input.maxresults, nil, nil, nil, nil, nil, nil, nil, nil) local str = '' for i,v in ipairs(r) do if v.value ~= input.stars and v.value > 0.9 and v.value < 5.1 then local f = {} f[1] = {} f[1].address = v.address f[1].flags = v.flags f[1].name = input.name..' ('..i..') '..v.value gg.addListItems(f) str = str ..' '.. v.value end end gg.toast(input.name..':'..str) end local heros = {} local nb = 0 nb = 1 heros[nb] = {} heros[nb].name = 'Alice' heros[nb].stars = 3 heros[nb].search = '12;249;3;56;1;1;1;7;12;56;223;244;12;1;56;226;12;247;56;184;1;12;56:1057' heros[nb].maxresults = 23 nb = 2 heros[nb] = {} heros[nb].name = 'Bob' heros[nb].stars = 3 heros[nb].search = '8;3;197;3;56;3;4;7;56;319;182;58;1;246;70201;56;8;247;56;153;1;240;58;56:1121' heros[nb].maxresults = 25 nb = 3 heros[nb] = {} heros[nb].name = 'Carol' heros[nb].stars = 3 heros[nb].search = '8;3;197;3;56;3;5;7;440;56;221;58;1;220201;261;56;319;58;247;56;68;3;58;56:1121' heros[nb].maxresults = 25 nb = 4 heros[nb] = {} heros[nb].name = 'Dave' heros[nb].stars = 3 heros[nb].search = '8;3;209;3;56;3;7;56;221;58;1;20201;219;56;58;247;56;15;3;58;56:1025' heros[nb].maxresults = 22 for i,hero in ipairs(heros) do -- gg.clearResults() gg.toast(i..'/'..nb..': '..hero.name..' (stars='..hero.stars..')...') searchNSave(hero) gg.sleep(500) end 1st issue; critical bug: This script worked fine with version 8.69.1 but with th last version (70.2) the call "gg.addListItems(f)" in the "searchNSave" function do nothing ! (Then i have had to downgrade to 8.69.1). 2nd issue, major bug: If "gg.clearResults()" is uncommented, the following "gg.searchNumber()" will do nothing exactly half of the time. Always calling gg.clearResult() before gg.searchNumber() is an undocumented workaround to avoid this bug which could be easily fixed by including gg.clearResults() in the beginning of gg.searchNumber(). 3rd issue, request for explication/improvment: The "search" strings are generated by an other (bash) script who extract data from some files written by the game. Then we notice they may contain the same value more than once. I have notice it may not be useful as gg always result all occurrences of a searched value in its range, and it seems to only increase the time of search. Is is exact ? May you improve the group search feature by introducing eventual {} for each number, to permit to precise the (range of) occurrence of a searched value in the range. eg: '8{3};15;2014{2~5}:1025' will search for exactly 3 times a '8', any numbers of '15' (default = {1~} = from 1 to infinite), and beetween 2 and 5 times a '2014'. Then you may improve this feature to always rewrite search string to it's optimized form, eg: '2;56;7;56;220201;56;311{1~5};203;56;311;56:801' -> '2;7;56{4~};203;311{2~5};220201:801' That's all. PS: where to submit my lua scripts to hack games with GG ?
×
×
  • 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.