Jump to content
  • 0

SelviaApr_
 Share

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

Edited by SelviaApr_
Missing tags
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
 
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

 

 

Edited by Platonic
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

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