Jump to content
  • 0

SelviaApr_

Question

Helo master help me for pointer search in script, i have four pointer value, i want every pointer get the pointed value ( my main value ) in same time, i am using

This

for i, v in ipairs() do

end

But only last value of pointer get the pointed value

Screenshot_2022-09-23-00-05-55-57_6286c9febaeca36e51a6f011164cd2e8.jpg

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

 
On 9/22/2022 at 7:10 PM, SelviaApr_ said:

 i have four pointer value, i want every pointer get the pointed value ( my main value ) in same time, i am using

This

for i, v in ipairs() do

end

But only last value of pointer get the pointed value

 

On 9/22/2022 at 7:10 PM, SelviaApr_ said:

 

 

Your doing searches one by one. 

So you end up with the last search GG did from that table "t".

You can only search one address at a time. So if you have more then one pointer, assign the values to the key "address" and then use gg.loadResults()

Personally i use something like this if game was like 64bit:

gg.searchNumber("1,591,370,207", gg.TYPE_QWORD)
count = gg.getResultsCount()
val = gg.getResults(count)
for i, v in ipairs(val) do
  v.address = v.address - 0x1C -- offset where is address storing pointer
   -- set appropiate flag
end
val = gg.getValues(val)
for i, v in ipairs(val) do
  -- v.value = v.value & 0xFFFFFFFF -- needed if game is 32 bit
  v.address = v.value
end
gg.loadResults(val)

Check out the following:

[Solved] Negative memory addresses (#3vizownn)

https://gameguardian.net/help/classgg.html#a312c7d90473026e38c67ffd24fd970d7

 

 

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.