Jump to content

Archived

This topic is now archived and is closed to further replies.

LoveGameguadian

How to search and edit saved values ​​in a .cfg file with the lua script

Recommended Posts

Someone please help me !!! I want to search or edit a value saved to the .cfl file from before, what should I do ???

For example :

searchNumber How To??? 

Quote

function SearchRandom()
local configFile = gg.EXT_CACHE_DIR .. "/" .. gg.getFile():match("[^/]+$") .. ".cfg"
local data = loadfile(configFile)
if data ~= nil then
  data = data()
end
local input = gg.prompt({'Please input something .'},data, {"number"})
gg.saveVariable(input, configFile)

gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber("How To??? ", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
local r = gg.getResults(45)
gg.removeResults(r)
gg.getResults(1)
gg.editAll("How To??? ", gg.TYPE_FLOAT)
end

 

Share this post


Link to post
Share on other sites


  • Similar Content

    • By RobertFPY
      Anyone know how to hack this game with gg or http canary? Plz help me!
    • By MrXnuv3r
      help me to find more than one value
      I mean, if I look for the value "25" and there are no results, then continue to look for the second value "20".
      but if I look for the value "25" and there are results, then don't look for the second value "20"
      I tried writing the script but GG always read i search value "5"
      sorry for my english
      I hope you understand what I mean
       
    • By Nothin2cee
      I've been using game guardian to modify values in Tap Sports Baseball for a couple years now, the security has gotten better and better since I started including flagging for certain virtual spaces (parallel, xposed, calc). We figured out that vmos would work so we used that and the code was the same as always.
      Now parallel space works again and its a much better app than vmos but for some reason the code in PS is different than vmos. I believe this is due to 32 bit vs 64 bit? But I'm no expert.
      Why would the code change like this? In vmos it uses mainly dword (99% of the time) but in PS we are getting more qword results as well as additional lines of code (127D) where there never used to be code.
       
      Any insight would be appreciated!
    • By GameCrasher
      I want to create a text file using lua but I'm not sure how.
×
×
  • Create New...