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.luaFetching info...

Edited by nalcwap

Recommended Posts

  • 0
  • Administrators
Posted
  On 6/27/2019 at 3:50 AM, nalcwap said:

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

Expand  

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

  • 0
Posted (edited)
  On 6/27/2019 at 4:07 AM, Enyby said:

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

Expand  

thanks, you mean gg.TYPE_DWORD?

Edited by nalcwap
  • 0
Posted (edited)
  On 6/27/2019 at 4:18 AM, Enyby said:

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

Expand  

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
  On 6/27/2019 at 4:21 AM, nalcwap said:

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

Expand  

Again, just read message:

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

  • 0
Posted
  On 6/27/2019 at 5:12 AM, Enyby said:

Again, just read message:

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

Expand  

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
  • 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)
  On 6/27/2019 at 5:40 AM, 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.

Expand  

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]
  On 6/27/2019 at 5:40 AM, 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.

Expand  

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).luaFetching info...

Edited by nalcwap
  • 0
Posted
  On 6/27/2019 at 5:44 AM, 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

Expand  

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).luaFetching info...

  • 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
  On 6/27/2019 at 10:47 AM, 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.

Expand  

ok thanks

  • 0
Posted
  On 6/27/2019 at 10:47 AM, 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.

Expand  

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.