Jump to content
  • 0

offset in script is diffrent than the offset from gg when goto


karbiner98O

Question

Posted

gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("1,065,353,216;0;-1,086,828,052;0:13", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.searchNumber("1,065,353,216",gg.TYPE_DWORD)
r = gg.getResults(1)


local t = {}
t[1] = {}
t[1].address = r[1].address + -24
t[1].flags = gg.TYPE_FLOAT
t[1].value = 50
t[1].freeze = false
gg.setValues(t)
gg.addListItems(t)

---------------------------------------------------

more explanation i set the offset above to -18 but after execute it edits the offset -12 not -18. i summed up 6 so that it edits the value of offset -18 .

offset -18 goes to -12 (from script only)

offset -24 goes to -18( from script only)

6 answers to this question

Recommended Posts

Posted

Difference between dec and hex. 

2 hours ago, karbiner98O said:

t[1].address = r[1].address + -24

The way u use is using decimal. 

Decimal 18 is Hexadecimal 12.

In goto interface,gg shows u offsets by hex. Not dec. If gg show 1c, u need to use dec 28.

If you dont want use decimal 28, use 0x1c as hex.

2 hours ago, karbiner98O said:

offset -18 goes to -12 (from script only)

offset -24 goes to -18( from script only)

t[1].address= t[1].address - 0x12

--0x12(hex) is 18(decimal)

Posted
1 minute ago, Lover1500 said:

Difference between dec and hex. 

The way u use is using decimal. 

Decimal 18 is Hexadecimal 12.

In goto interface,gg shows u offsets by hex. Not dec. If gg show 1c, u need to use dec 28.

If you dont want use decimal 28, use 0x1c as hex.

t[1].address= t[1].address - 0x12

--0x12(hex) is 18(decimal)

ok if i want to manually search two values like 0;256 with their offset at end, how do i put the hexadecimal offset there in gg search

Posted
24 minutes ago, karbiner98O said:

0;256

The end is size of group search. 

Each one byte away increases size 1.

You'll understand them after you test it. 

 

 

 

Posted

i know whats group search. what i meant if its possible to do this 0;256:0x12 i know it gives error if searched but just an example like telling gg that those 2 values are this distance away from each other and search

 

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.