Jump to content
  • 0

help lua how add offset diference and edit


Question

Posted (edited)

i generated this search with gameguardian to generate the lua script but it not save when in go to offset and go to the value and change, i want continue this script by go to ADDRESS i search  and  go to there and add offset

F0   and edit in the new address that value, is not possible the generator save thats changes?if not how put in script to go to that address by  offset more F0?thanks

com.shinybox.smash.lua

Edited by nalcwap

Recommended Posts

  • 0
  • Administrators
Posted
16 minutes ago, nalcwap said:

`gg.setValues({{address=_address,flags=gg.Type_DWORD,value=0x1}})`
bad argument for key 'flags': int expected, got nil

gg.Type_DWORD case is matter. All constant must be totally in upper case.

  • 0
Posted (edited)
3 minutes ago, Enyby said:

gg.Type_DWORD case is matter. All constant must be totally in upper case.

thanks, you mean gg.TYPE_DWORD?

Edited by nalcwap
  • 0
Posted (edited)
9 minutes ago, Enyby said:

Yep. Consult with API help if you not sure how write something.

ok thanks, sorry aff update other error

Script terminado:
Talvez este script precise da versão mais recente do GameGuardian. Tente atualizar para a versão mais recente.

Script error: luaj.LuaError: @/storage/emulated/0/Notes/com.shinybox.smasheror.lua:52
`gg.setValues({{address=_address,flags=gg.TYPE_DWORD,value=0x1}})`
bad argument for key 'address': long expected, got nil
level = 1, pc = 126
stack traceback:
    /storage/emulated/0/Notes/com.shinybox.smasheror.lua:52 in main chunk
    [Java]: in ?
    at android.ext.Script.badArg(Script.java:5203)
    at android.ext.Script.checklong(Script.java:5244)
    at android.ext.Script.toItem(Script.java:5117)
    at android.ext.Script$setValues.invoke2(Script.java:3741)
    at android.ext.Script$ApiFunction.invoke(Script.java:1264)
    at luaj.lib.VarArgFunction.call(VarArgFunction.java:58)
    at luaj.LuaValue.callNotNull(LuaValue.java:3246)
    at luaj.LuaClosure.execute(LuaClosure.java:432)
    at luaj.LuaClosure.call(LuaClosure.java:145)
    at android.ext.Script.runScript(Script.java:5513)
    at android.ext.Script$ScriptThread.run(Script.java:5314)

Edited by nalcwap
  • 0
  • Administrators
Posted
50 minutes ago, nalcwap said:

`gg.setValues({{address=_address,flags=gg.TYPE_DWORD,value=0x1}})`
bad argument for key 'address': long expected, got nil

Again, just read message:

_address is nil. But must be long (number).

  • 0
Posted
13 minutes ago, Enyby said:

Again, just read message:

_address is nil. But must be long (number).

sorry i not very good english but  what is the correct fix?sorry and thanks

  • 0
  • Administrators
Posted

Idk. Write code so that that variable cannot be nil when executed here.
Without seeing all the code, nothing specifically can be said.

  • 0
Posted (edited)
4 minutes ago, Enyby said:

Idk. Write code so that that variable cannot be nil when executed here.
Without seeing all the code, nothing specifically can be said.

sorry, but i post the code , here another same

com.shinybox.smasheror (2).lua

Edited by nalcwap
  • 0
  • Administrators
Posted

I do not know if this is the same code, or you have already changed something.

If you change something in the code, then you need to post it again. Because what was previously irrelevant.

  • 0
Posted (edited)
13 minutes ago, Enyby said:

I do not know if this is the same code, or you have already changed something.

If you change something in the code, then you need to post it again. Because what was previously irrelevant.

i only fix the  more and equal to only equal a 0 because is wrong  and changed the  dword upercase no more changes

[added 4 minutes later]
13 minutes ago, Enyby said:

I do not know if this is the same code, or you have already changed something.

If you change something in the code, then you need to post it again. Because what was previously irrelevant.

here all the changes , forget i think i lod the old file the up  file i post , now works without error sorry and thanks, god bless you

com.shinybox.smash (fix).lua

Edited by nalcwap
  • 0
Posted
54 minutes ago, nalcwap said:

i only fix the  more and equal to only equal a 0 because is wrong  and changed the  dword upercase no more changes

[added 4 minutes later]

here all the changes , forget i think i lod the old file the up  file i post , now works without error sorry and thanks, god bless you

com.shinybox.smash (fix).lua 1.84 kB · 0 downloads

now works without error but i made  a change to freeze but i think is wrong because not freezed the value, the script is correct when changes what i want but the line to freeze is wrong, anyone know why the freeze not freeze the value?

com.shinybox.smash (fix2 freezeneed).lua

  • 0
  • Administrators
Posted

Maybe you will read the help? It says how to freeze. And there are examples on the forum.

In particular, it is not enough to set freeze to true.
It is necessary then to add elements to the saved list.

  • 0
Posted
10 hours ago, Enyby said:

Maybe you will read the help? It says how to freeze. And there are examples on the forum.

In particular, it is not enough to set freeze to true.
It is necessary then to add elements to the saved list.

ok thanks

  • 0
Posted
12 hours ago, Enyby said:

Maybe you will read the help? It says how to freeze. And there are examples on the forum.

In particular, it is not enough to set freeze to true.
It is necessary then to add elements to the saved list.

one question the pointer in a real android phone is not same in a pc emulator example the memu emulator?i ask this because the local not same to find, thanks

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.