Jump to content
  • -2

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

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

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

 

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