Jump to content
  • 0

How to Add Search Nearby after searching the main value


GeorgeMonkey

Question

Hello how can i Search nearby after a value had Been Searched 

Example: lua script 

 gg.setRanges(gg.REGION_C_ALLOC)

gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT)

gg.getResults(999)

gg.refineNumber("1058642330", gg.TYPE_DWORD)

gg.getResults(999)

gg.editAll("1092616192", gg.TYPE_DWORD)

After it edit it will search nearby on all Of the value to get -1 Float Or Something when im going to search again

Then I want The Next search to be Searching every single of the value nearby 1 by 1 

 

Anyone Know?? 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

16 hours ago, GeorgeMonkey said:

Hello how can i Search nearby after a value had Been Searched 

Example: lua script 

 gg.setRanges(gg.REGION_C_ALLOC)

gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT)

gg.getResults(999)

gg.refineNumber("1058642330", gg.TYPE_DWORD)

gg.getResults(999)

gg.editAll("1092616192", gg.TYPE_DWORD)

After it edit it will search nearby on all Of the value to get -1 Float Or Something when im going to search again

Then I want The Next search to be Searching every single of the value nearby 1 by 1 

 

Anyone Know?? 

I don't understand why, Max group size with GG is ::65536, while you only want 5000. But i guess you want to do your method because your using refine. Perhaps include all the values you want to search with your method in one group search. As @under_score his example, then edit all the values from the result list directly. 

Perhaps this works. example:

gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("1058642330D;180D;-1F::65536", gg.TYPE_FLOAT)
t = gg.getResults(gg.getResultsCount())
for i, v in ipairs(t) do
  if v.value == 1058642330 then
    v.value = 1092616192
  elseif v.value == 180 then
    v.value = 1000
  elseif v.value == -1.0 then
    v.value = 500
  end
end
gg.setValues(t)
gg.loadResults(t)

Or do you have that much values to look for using your method that it would exceeds the size of ::65536 ?

Also check this for more info on group searches: https://gameguardian.net/help/help.html#help_group_search_

Link to comment
Share on other sites

After you find your value, you can get that value address then make a new search by limiting the memory address

for example you found this value

local v = {
  value = 50,
  flags= gg.TYPE_DWORD,
  address=5228520
}

now you can take the address
 

local addr = v.address

then then all you have to do is to offset that address before and after depending on the radius how far you want to search

local memoryFrom = addr - 0x100
local memoryTo = addr + 0x140

then you can make your search that will act like a search nearby

local results = gg.searchNumber("40", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, memoryFrom, memoryTo, 0)

 

Link to comment
Share on other sites

17 minutes ago, GeorgeMonkey said:

Hello how can i Search nearby after a value had Been Searched 

Example: lua script 

 gg.setRanges(gg.REGION_C_ALLOC)

gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT)

gg.getResults(999)

gg.refineNumber("1058642330", gg.TYPE_DWORD)

gg.getResults(999)

gg.editAll("1092616192", gg.TYPE_DWORD)

After it edit it will search nearby on all Of the value to get -1 Float Or Something when im going to search again

Then I want The Next search to be Searching every single of the value nearby 1 by 1 

 

Anyone Know?? 

gg.searchNumber("1058642330D;180;-1F", gg.TYPE_FLOAT)

Link to comment
Share on other sites

2 minutes ago, GeorgeMonkey said:

U dont get it either But thanks for helping me briefly

 

gg.setRanges(gg.REGION_C_ALLOC)

gg.searchNumber("1058642330D;180", gg.TYPE_FLOAT)

gg.getResults(999)

gg.refineNumber("1058642330", gg.TYPE_DWORD)

local t=gg.getResults(1)

gg.getResults(999)

gg.editAll("1092616192", gg.TYPE_DWORD)

gg.searchNumber("-1",gg.TYPE_FLOAT,memoryFrom=t, memoryTo=t+5000)

 

 

Link to comment
Share on other sites

Archived

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

×
×
  • 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.