View previous topic :: View next topic |
Author |
Message |
Urheim How do I cheat?
Reputation: 0
Joined: 03 Mar 2022 Posts: 5
|
Posted: Sun Nov 05, 2023 1:46 pm Post subject: move the value of EBX of the 2nd Script into Xmm3 of 1st |
|
|
//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.
Description: |
|
Filesize: |
32.59 KB |
Viewed: |
1701 Time(s) |

|
Last edited by Urheim on Mon Nov 06, 2023 11:07 am; edited 2 times in total |
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4697
|
Posted: Sun Nov 05, 2023 2:38 pm Post subject: |
|
|
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 |
|
 |
Urheim How do I cheat?
Reputation: 0
Joined: 03 Mar 2022 Posts: 5
|
Posted: Mon Nov 06, 2023 1:20 am Post subject: |
|
|
I tried, but It didn't work.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Nov 06, 2023 5:10 am Post subject: |
|
|
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 |
|
 |
Urheim How do I cheat?
Reputation: 0
Joined: 03 Mar 2022 Posts: 5
|
Posted: Mon Nov 06, 2023 1:58 pm Post subject: |
|
|
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.
Description: |
|
Filesize: |
48.71 KB |
Viewed: |
1591 Time(s) |

|
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4697
|
Posted: Mon Nov 06, 2023 2:21 pm Post subject: |
|
|
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 |
|
 |
|