Page 1 of 1

Need help with item duplication

Posted: Thu Aug 29, 2024 4:32 am
by CoreFinder1
Hi so i've created my very own cheat table for the game Grounded - Steam and it currently only has one option infinite items so item value will freeze and when you drop the item it will not drop obviously you will need at least two of the item for it to work however i've seen that when picking up an item it will freeze the game until I turn the script off here is the code for it and I am also kind of a noob to cheat engine coding and stuff just know little basics

Here is the original code:

Code: Select all

[ENABLE]
Maine-Win64-Shipping.exe+179EF04:
db 90 90 90 90 90 90



[DISABLE]
Maine-Win64-Shipping.exe+179EF04:
db 89 83 40 01 00 00
This is the code that I just made to test to see if picking up an item will work, it didn't

Code: Select all

[ENABLE]

aobscanmodule(INJECT,Maine-Win64-Shipping.exe,89 83 40 01 00 00 E8 51) // should be unique
alloc(newmem,$1000,INJECT)

label(code)
label(return)

newmem:
  sub [rbx+00000140],0
code:
  //mov [rbx+00000140],eax
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db 89 83 40 01 00 00

unregistersymbol(INJECT)
dealloc(newmem)

Re: Need help with item duplication

Posted: Thu Sep 12, 2024 5:13 pm
by PronKill
You should use breakpoints for unexpected results like these. I've found out that the "mov" function is required to place a 0 for the second address which goes through it.

This code is what works for me for picking/dropping stuff.

Code: Select all

[ENABLE]

aobscanmodule(INJECT,Maine-Win64-Shipping.exe,89 83 40 01 00 00 E8 ?1) // should be unique
alloc(newmem,$1000,INJECT)

label(return)

newmem:
  cmp eax,0
  jne return
  mov [rbx+00000140],eax
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db 89 83 40 01 00 00

unregistersymbol(INJECT)
dealloc(newmem)
Also you might see I've placed a "?" near the end of aobscanmodule. The call function probably had the address it calls changed, so I had to make that an unknown number (wouldn't find it otherwise). However that is mostly not an issue if you're making it for yourself only.

Re: Need help with item duplication

Posted: Sun Sep 15, 2024 3:28 pm
by CoreFinder1
PronKill wrote:
Thu Sep 12, 2024 5:13 pm
You should use breakpoints for unexpected results like these. I've found out that the "mov" function is required to place a 0 for the second address which goes through it.

This code is what works for me for picking/dropping stuff.

Code: Select all

[ENABLE]

aobscanmodule(INJECT,Maine-Win64-Shipping.exe,89 83 40 01 00 00 E8 ?1) // should be unique
alloc(newmem,$1000,INJECT)

label(return)

newmem:
  cmp eax,0
  jne return
  mov [rbx+00000140],eax
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db 89 83 40 01 00 00

unregistersymbol(INJECT)
dealloc(newmem)
Also you might see I've placed a "?" near the end of aobscanmodule. The call function probably had the address it calls changed, so I had to make that an unknown number (wouldn't find it otherwise). However that is mostly not an issue if you're making it for yourself only.
Thanks that actually worked