Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Problem with my teleport script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MadDog84
Newbie cheater
Reputation: 0

Joined: 08 Sep 2015
Posts: 16

PostPosted: Mon Jul 31, 2023 8:06 am    Post subject: Problem with my teleport script Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Jul 31, 2023 9:35 am    Post subject: Re: Problem with my teleport script Reply with quote

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
View user's profile Send private message
MadDog84
Newbie cheater
Reputation: 0

Joined: 08 Sep 2015
Posts: 16

PostPosted: Tue Aug 01, 2023 1:53 am    Post subject: Re: Problem with my teleport script Reply with quote

++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 Smile

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Aug 01, 2023 6:23 am    Post subject: Re: Problem with my teleport script Reply with quote

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
View user's profile Send private message
MadDog84
Newbie cheater
Reputation: 0

Joined: 08 Sep 2015
Posts: 16

PostPosted: Tue Aug 01, 2023 9:00 am    Post subject: Re: Problem with my teleport script Reply with quote

++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 Smile

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Aug 01, 2023 9:19 am    Post subject: Reply with quote

Look at how many bytes you are comparing.
Back to top
View user's profile Send private message
MadDog84
Newbie cheater
Reputation: 0

Joined: 08 Sep 2015
Posts: 16

PostPosted: Tue Aug 01, 2023 9:22 am    Post subject: Reply with quote

Thanks i'll try that Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites