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 


move the value of EBX of the 2nd Script into Xmm3 of 1st

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Urheim
How do I cheat?
Reputation: 0

Joined: 03 Mar 2022
Posts: 5

PostPosted: Sun Nov 05, 2023 1:46 pm    Post subject: move the value of EBX of the 2nd Script into Xmm3 of 1st Reply with quote

//Edit
Eax was wrong. It's Xmm3

Well, I've tried to solve this before.
The thing is I need to write a line that moves value of ebx into the Xmm3 register. Does anyone know how to do it correctly? Everytime I tried It just didn't work, or Game crashed.

To move the value of EBX of the 2nd Script into the Xmm3 of 1st Script.

Both values are float

The ebx is real time coordinates.
The Xmm3 is coordinates of performed melee.



just how.png
 Description:
 Filesize:  32.59 KB
 Viewed:  1702 Time(s)

just how.png




Last edited by Urheim on Mon Nov 06, 2023 11:07 am; edited 2 times in total
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Sun Nov 05, 2023 2:38 pm    Post subject: Reply with quote

Those use two different injection points: there's no way to do that directly. You have to use some other memory location as an intermediary.
e.g.:
Code:
...
alloc(myValue,4)

myValue:
  dd (float)NaN

script1_newmem:
  // read from value
  movss xmm0,[myValue]
  ucomiss xmm0,xmm0
  jp val_uninitialized
  movss [eax],xmm0
val_uninitialized:
  // original code
...

script2_newmem:
  // write to value
  mov eax,[ebx+30]
  mov [myValue],eax
  // original code
...

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Urheim
How do I cheat?
Reputation: 0

Joined: 03 Mar 2022
Posts: 5

PostPosted: Mon Nov 06, 2023 1:20 am    Post subject: Reply with quote

I tried, but It didn't work.
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 Nov 06, 2023 5:10 am    Post subject: Reply with quote

It might be helpful if you can provide more details.

You may also need to ensure that those instructions are not accessing any other addresses, as well as ensuring that you are moving all associated coordinate axes.
Back to top
View user's profile Send private message
Urheim
How do I cheat?
Reputation: 0

Joined: 03 Mar 2022
Posts: 5

PostPosted: Mon Nov 06, 2023 1:58 pm    Post subject: Reply with quote

I was wrong about eax. Its xmm3.
That holds the value I need to edit.
To move ebx into xmm3.

And these are additional infos.



aaa.png
 Description:
 Filesize:  48.71 KB
 Viewed:  1592 Time(s)

aaa.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Mon Nov 06, 2023 2:21 pm    Post subject: Reply with quote

What I gave was just an example.

Allocate some memory to store the value, write to that memory in one script, and read from that memory in the other. The script that reads the value should make sure the value was initialized first (the `dd (float)NaN`, `ucomiss`, and `jp` do that)

What you do to read or write the values is up to you. If you don't know what the `mov` or `movss` instructions do, look up that first.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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