Jump to content
  • 0

gg.searchPointer() doesnt follow gg.setRanges


Lover1500

Question

Hello gg devs, I am using gg latest version (101.1).

I search some values in Ca and A region. After i search, I manually change memory range to Cd and Cb region only. And i run this code in script.

--Code(1)
gg.searchPointer(500)

It give me pointers in Cd and Cb region. So it can be considered as gg.searchPointer() searches pointers according to gg.setRanges for script.

 

Now i clear all results. search value in Ca and A. Now i dont change memory range now. I'll use this code in script

--Code(2)
gg.setRanges(gg.REGION_C_DATA| gg.REGION_C_BSS)
gg.searchPointer(500)

script only search pointers in Ca and A region. No in Cd and Cb which i set in script.

 

But its not fully true that gg.searchPointer() doesnt follow any setRanges() in script.

I manually change memory range to other('O' region). And i run this code

--Code(3)
gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber(123, 4)
res=gg.getResults(99999)

gg.setRanges(gg.REGION_C_BSS | gg.REGION_C_DATA)
gg.searchPointer(500)

script doesnt give me pointers in Cd and Cb which second setRanges().but give me pointers in A region which set by first setRanges().

 

But gg.searchPointer() do right when i use gg.loadResults() like this

--Code(4)
gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber(123, 4)
res=gg.getResults(99999)

gg.clearResults()--added
gg.setRanges(gg.REGION_C_BSS | gg.REGION_C_DATA)
gg.loadResults(res)--added
gg.searchPointer(500)

It give me pointers in Cd and Cb.

 

What crazy is, if i change Code(4) like this,

--Code(5)
gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber(123, 4)
res=gg.getResults(99999)

gg.clearResults()
gg.loadResults(res)--from bottom to top
gg.setRanges(gg.REGION_C_BSS | gg.REGION_C_DATA)--from top to bottom
gg.searchPointer(500)

It give me pointers in A region. not pointers in Cd and Cb.

 

Hope this bug will be fixed in next gg update.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.