Need help with item duplication

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
CoreFinder1
What is cheating?
What is cheating?
Posts: 2
Joined: Thu Aug 29, 2024 4:22 am
Reputation: 0

Need help with item duplication

Post 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)

PronKill
Expert Cheater
Expert Cheater
Posts: 86
Joined: Mon Sep 25, 2023 6:35 am
Reputation: 39

Re: Need help with item duplication

Post 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.

CoreFinder1
What is cheating?
What is cheating?
Posts: 2
Joined: Thu Aug 29, 2024 4:22 am
Reputation: 0

Re: Need help with item duplication

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users