Jump to content
  • 0

help lua how add offset diference and edit


nalcwap
 Share

Question

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
Link to comment
Share on other sites

Recommended Posts

  • 0
  • Administrators
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.

Link to comment
Share on other sites

  • 0
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
Link to comment
Share on other sites

  • 0
  • Administrators
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).

Link to comment
Share on other sites

  • 0
  • Administrators

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.

Link to comment
Share on other sites

  • 0
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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 0
  • Administrators

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
 Share

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