Jump to content
Sign in to follow this  
RogerAngell2018

Offset record scipt

Recommended Posts

Great job with your new feature `record script` devs. It would be awesome if you guys make it to recognize offset. It is great feature to auto because sometimes the value we need to chage is not a constant but nearby values is. @Enyby@d2dyno

Edited by RogerAngell2018

Share this post


Link to post
Share on other sites

Better would be the support of add search results to save list.  Change address location. And recall the save results back into the search. Maybe implement the record feature to work with this?

Share this post


Link to post
Share on other sites

A script entry can not record all of your actions in a portable form. Everything that can not be written in a general form is not recorded.
You can not record the offset, because it should be written in a general form, and so you can not do it.
You can not say - apply an offset to the 3 result of the search, because tomorrow it will not be the third search result. Even on your device or on another device.
If you save the memory address in the script, the script will become useless even after the game is restarted.

In general, writing a script is not intended to make a ready script, it is impossible by definition, but to provide some workpiece, for later manual editing.

Well, or for writing VERY simple scripts. Something like found a group search and replaced / frozen everything.
Not more difficult than this.

_______________________________________________
added 1 minute later

And what you are talking about (shifting) requires a fine and precise work. Cycles, a clear understanding of what is happening, and why.

Share this post


Link to post
Share on other sites
58 minutes ago, Enyby said:

A script entry can not record all of your actions in a portable form. Everything that can not be written in a general form is not recorded.
You can not record the offset, because it should be written in a general form, and so you can not do it.
You can not say - apply an offset to the 3 result of the search, because tomorrow it will not be the third search result. Even on your device or on another device.
If you save the memory address in the script, the script will become useless even after the game is restarted.

In general, writing a script is not intended to make a ready script, it is impossible by definition, but to provide some workpiece, for later manual editing.

Well, or for writing VERY simple scripts. Something like found a group search and replaced / frozen everything.
Not more difficult than this.

_______________________________________________
added 1 minute later

And what you are talking about (shifting) requires a fine and precise work. Cycles, a clear understanding of what is happening, and why.

I know, but im talking of a really nearby address, so the offset is always same.. For exemple, search `x` value and the value that I need to edit is always in [Address(x) -5C]. Even if I restart my game, phone, etc.

Edited by RogerAngell2018

Share this post


Link to post
Share on other sites

This can not be formalized.
The application can not read minds.
Therefore, you can not do this automatically. Learn programming, API and write manually. All good things are always done by hand.

Share this post


Link to post
Share on other sites
3 hours ago, Enyby said:

A script entry can not record all of your actions in a portable form. Everything that can not be written in a general form is not recorded.
You can not record the offset, because it should be written in a general form, and so you can not do it.
You can not say - apply an offset to the 3 result of the search, because tomorrow it will not be the third search result. Even on your device or on another device.
If you save the memory address in the script, the script will become useless even after the game is restarted.

In general, writing a script is not intended to make a ready script, it is impossible by definition, but to provide some workpiece, for later manual editing.

Well, or for writing VERY simple scripts. Something like found a group search and replaced / frozen everything.
Not more difficult than this.

_______________________________________________
added 1 minute later

And what you are talking about (shifting) requires a fine and precise work. Cycles, a clear understanding of what is happening, and why.

I'm not referring to value x out of a series of results, I'm talking all results, shift y distance. Now use these new location as the values you search and edit.

Share this post


Link to post
Share on other sites

Get results into table. loop over table with change address and value. Set values from this table.

In any case all possibility ca not be handled via record. If you need complicated actions you need write script manually.

Share this post


Link to post
Share on other sites
On 9/20/2018 at 10:19 AM, Enyby said:

This can not be formalized.
The application can not read minds.
Therefore, you can not do this automatically. Learn programming, API and write manually. All good things are always done by hand.

I didn't find the offset in the API

Share this post


Link to post
Share on other sites

Try using a brain. Offset is the difference between addresses.

Share this post


Link to post
Share on other sites
11 minutes ago, Enyby said:

Try using a brain. Offset is the difference between addresses.

I know this, I want to know if I can provide a calculation method, or do I have to look for it in lua?

Share this post


Link to post
Share on other sites

Subtracting (or adding) two numbers, what could be easier? But you can search for detailed manuals on how to add two numbers in Lua.

Share this post


Link to post
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
Sign in to follow this  

  • Similar Content

    • By Crystal_Mods100x
      Hi everyone im requesting help here because i was making a script for a game and i could not get it to work it requires 20 shotgun ammo then it needs to be refined to 16 then i caculated the 2 numbers to offset and i got 70 (0x46), i entered the number but it does not work (it works when player glides toward the direction they are pointing toward + fast fire rate)
      here is the source code i did not code this all credits go towards > @AKRAMRAZA for coding the script base Thank you 😃
      but here is the problem i keep getting the wrong results and it does not work -Source code
      function test() gg.clearResults() gg.searchNumber("20", gg.TYPE_DWORD) gg.alert('10 seconds to change ammo to 17') gg.sleep(10000) --10 seconds gg.refineNumber("16", gg.TYPE_DWORD) p = gg.getResults(1) local q = {} q[1] = {} q[1].address = p[1].address + 0x46 --address to the offset(ex: -4) to the refined result q[1].flags = gg.TYPE_FLOAT --datatype which i want to edit the value q[1].value = 1 --value i want to edit the glide value to gg.setValues(q) gg.alert('Done') gg.clearResults() end function stop() os.exit() end main = gg.choice({'Glide speed','Exit'}) if main==1 then test() end if main==2 then stop() end But what am i doing wrong? i also dont know how many results only one result comes in for the shotgun ammo is that?
    • By Victorxxnukes
      Hi how do i use the offset calculator and goto in a script?
      So in another Topic we talked about payback 2 the untimate battle sandbox and there is 0 float values under the ammo i searched for a shotgun clearly when i edit them to 1 they give me another gun or inf ammo
       
    • By GoldBocman
      Hello. I need help with edit offset parameter in Game Guardian. I have offset. How i can edit only float value 'distance' in memory editor?

    • By Fallen_Stress
      Hi guys how you feel today ?. For me I am ok.
      I have some problems with offset, i am learning how to use offset properly but it is still difficult for me. I will details you my approach and I want you to tell me what wrong with it.
       
      - First I have searched this two value above.

       
      that I want is to get the 2nd value 50000 from offset using the first value 1100.
       

       
      I have calculated the offset of those two value.
       
      but when I tried to get the 2nd value  mean 50000. But it is not working.
      it is getting me to that value I dont need. the value above.

       
      but when I replace the offset that I calculate by 8 it is working. He is selecting the right value mean 50000.


       
      so and this 8 value for offset I got it randomly i was typing some random value within 1~20 and i magically got it.
      So after reading this can you tell me what wrong with all of this and propose me any solution and help me to understand how offset work. and last thing can you tell me how to use offset in Script?.  
      Anyway thank you all.
    • By Lover1500
      2020_08_17_02_35_45_compress.mp4 @Enyby  Hi sir!
      I'm facing the problem to use pointer search in writing script.As in video, I search -1,358,776,912 in Xa(code system) which will end by 548 in addresses.And I will get the only one address.I copy its address and paste in search box.
      I have to change a little bit.If the address is ?????548,
      I'll have to search ?????549h.Otherwise nothing found.
       
      After I search ?????549h, I'll have two addresses.In this case I have to choose the one which offset end is B0.
      I copy it again and search.Then the only one will be found(pointer).
      That address + 94(offset) == my willing things.
      How can I do this process in script?
      Espectially I dont know how to copy and search those addresses in script.
      Help me pls and Thanks everybody in advance!
      (Forgive me for my bad english)
      (I think if the pointer and offset work perfectly as video we can use gg like cheat engine which can point the one by offsets)
      I like New features and updates of gg

      2020_08_17_02_35_45_compress.mp4
×
×
  • Create New...