Jump to content
  • -1

Script not work on another device


Moat78

Question

Posted

hello guys, I found a problem. I created a script for rally fury game and it work on 64 bit devices. But the script doesn't work for 32 bit devices. I have done tests on several 32 bit and 64 bit devices. the result is that my script only works on 64 bit devices and doesn't work on 32 bit devices. all of them use Android 10 and GameGuardian version 101.1

2 answers to this question

Recommended Posts

Posted
7 hours ago, Moat78 said:

hello guys, I found a problem. I created a script for rally fury game and it work on 64 bit devices. But the script doesn't work for 32 bit devices. I have done tests on several 32 bit and 64 bit devices. the result is that my script only works on 64 bit devices and doesn't work on 32 bit devices. all of them use Android 10 and GameGuardian version 101.1

So make script for 32

Posted

For example, look at this part of the code, here you can see the main difference between x32 and x64
 

local f = {}
local f1 = 0
local f2 = 0
local f3 = 0
local b = 0
local d2 = '2;h08;h32;h30;h30;h39::'
local d6 = '6;h08;h32;h30;h31;h30::'
local d7 = '7;h08;h32;h30;h31;h33::'
local bytes = 9
gg.setRanges(gg.REGION_ANONYMOUS)

if gg.getTargetInfo().x64 then
    bytes = 13
    gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_OTHER)
end

gg.searchNumber(d2 ..bytes, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 1)
f = gg.getResults(1)
f1 = f[1].address
gg.toast('\nFound data for item #2')
gg.clearResults()

gg.searchNumber(d6 ..bytes, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 1)
f = gg.getResults(1)
f2 = f[1].address
gg.toast('\nFound data for item #6')
gg.clearResults()

gg.searchNumber(d7 ..bytes, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 1)
f = gg.getResults(1)
f3 = f[1].address
gg.toast('\nFound data for item #7')
gg.clearResults()

if gg.getTargetInfo().x64 then
    gg.searchNumber(f1 ..';' ..f2 ..';' ..f3 ..'::24', gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1, 1)
    b = gg.getResultCount()
    if b == 3 then
        gg.refineNumber(f1, gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
        b = gg.getResultCount()
        f = gg.getResults(1)
    end
else
    gg.searchNumber(f1 ..';' ..f2 ..';' ..f3 ..'::12', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 1)
    b = gg.getResultCount()
    if b == 3 then
        gg.refineNumber(f1, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
        b = gg.getResultCount()
        f = gg.getResults(1)
    end    
end
gg.alert('Found first address of items table')

 

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.