| View previous topic :: View next topic |
| Author |
Message |
MadDog84 Newbie cheater
Reputation: 0
Joined: 08 Sep 2015 Posts: 16
|
Posted: Mon Jul 31, 2023 8:06 am Post subject: Problem with my teleport script |
|
|
Hi ! Im currently working on the game "Grounded" to learn gamehacking.
I managed to find my coord, made an injection copy and made a teleport script that works like a charm, then i made another one to teleport my friend to me !
The script works when we are 2 but when another friend join in, my script either teleport the player 2 or 3 its random ! Is this because the opcode is shared ?
I tried to scan for commonalities but got no chance, tried to compare the register between me(host) and the 2 other players, i've found register adresses that differ but nothing like "0000002" "0000003" etc ...
Nothing like 02 is the player 2 and 03 for the player 3 like in the CE tut.
Can someone hint me for this ? Thanks ! |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Jul 31, 2023 9:35 am Post subject: Re: Problem with my teleport script |
|
|
| MadDog84 wrote: | | The script works when we are 2 but when another friend join in, my script either teleport the player 2 or 3 its random ! Is this because the opcode is shared ? | -Most likely, yes. You can right-click on the instruction in memory viewer and see what other addresses it accesses in order to find out.
| MadDog84 wrote: | | I tried to scan for commonalities but got no chance ... Nothing like 02 is the player 2 and 03 for the player 3 like in the CE tut. | -You will seldom see things so simple in real games. The CE Tutorial can help you to understand the process, but what you see in the tutorial is made simple on purpose; the processes can still work, though. |
|
| Back to top |
|
 |
MadDog84 Newbie cheater
Reputation: 0
Joined: 08 Sep 2015 Posts: 16
|
Posted: Tue Aug 01, 2023 1:53 am Post subject: Re: Problem with my teleport script |
|
|
| ++METHOS wrote: | | MadDog84 wrote: | | The script works when we are 2 but when another friend join in, my script either teleport the player 2 or 3 its random ! Is this because the opcode is shared ? | -Most likely, yes. You can right-click on the instruction in memory viewer and see what other addresses it accesses in order to find out.
| MadDog84 wrote: | | I tried to scan for commonalities but got no chance ... Nothing like 02 is the player 2 and 03 for the player 3 like in the CE tut. | -You will seldom see things so simple in real games. The CE Tutorial can help you to understand the process, but what you see in the tutorial is made simple on purpose; the processes can still work, though. |
I know i will rarely get simple thing like in the tut aha
For exemple the only difference i've found is the rbx register, is there a way to create a condition like "if rbx = 13456AEB" or something like that ? |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Aug 01, 2023 6:23 am Post subject: Re: Problem with my teleport script |
|
|
| MadDog84 wrote: | | is there a way to create a condition like "if rbx = 13456AEB" or something like that ? | -Yes. You can create a compare inside of your script to filter out unwanted addresses:
| Code: | newmem:
cmp rbx,13456AEB
jne originalcode
//manipulation code here
originalcode:
//original code here |
|
|
| Back to top |
|
 |
MadDog84 Newbie cheater
Reputation: 0
Joined: 08 Sep 2015 Posts: 16
|
Posted: Tue Aug 01, 2023 9:00 am Post subject: Re: Problem with my teleport script |
|
|
| ++METHOS wrote: | | MadDog84 wrote: | | is there a way to create a condition like "if rbx = 13456AEB" or something like that ? | -Yes. You can create a compare inside of your script to filter out unwanted addresses:
| Code: | newmem:
cmp rbx,13456AEB
jne originalcode
//manipulation code here
originalcode:
//original code here |
|
Thanks for your reply
I remember that I tried to do the "cmp rbx, 123456AEB" and i can't remember exactly but i think i got a message that told me the script can't be compiled
I tried to do "cmp rbx,01" just to test and now it compile. Why it wont let me put an adress after the "," ?
Sorry for these noobish question and it doesn't help that English is not my native language and i can't explain myself like i would ^^' |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Aug 01, 2023 9:19 am Post subject: |
|
|
| Look at how many bytes you are comparing. |
|
| Back to top |
|
 |
MadDog84 Newbie cheater
Reputation: 0
Joined: 08 Sep 2015 Posts: 16
|
Posted: Tue Aug 01, 2023 9:22 am Post subject: |
|
|
Thanks i'll try that  |
|
| Back to top |
|
 |
|