View previous topic :: View next topic |
Author |
Message |
QuarryTen Newbie cheater Reputation: 0
Joined: 25 Aug 2019 Posts: 19
|
Posted: Sun Aug 23, 2020 10:18 am Post subject: Weird instruction - vcvttss2si |
|
|
For some reason, when I try to compile a script that originally had this instruction included, I get a cannot compile error. Is there any other way around this?
Here's the code:
Code: | [ENABLE]
assert(address,bytes)
alloc(newmem,$1000,TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MissionAgentStatusVM::UpdateAgentAndMountStatuses+41)
label(code)
label(return)
label(char_1)
registersymbol(char_1)
newmem:
code:
vcvttss2si edx,xmm0,[rdx+0000014C]
mov [char_1],rdx
jmp return
char_1:
dq 0
address:
jmp newmem
nop 4
return:
|
And it's a mono game. |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Sun Aug 23, 2020 12:18 pm Post subject: |
|
|
try vcvttss2si edx,[rdx+0000014C] _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
QuarryTen Newbie cheater Reputation: 0
Joined: 25 Aug 2019 Posts: 19
|
Posted: Sun Aug 23, 2020 7:00 pm Post subject: |
|
|
Dark Byte wrote: | try vcvttss2si edx,[rdx+0000014C] |
Thanks, DB. That worked; the script was able to compile and I was able to successfully copy the rdx register into char_1. In order to get the script to do what I intended, I had to place the mov instruction before the complicated instruction, not after.
A new problem has occurred though. Due to the changed instruction, as one might expect, the game crashes upon disabling the script. Is there any way around this? I've tried injecting the script to the instruction prior to this one but that yields to results a little too complicated for me to work around. |
|
Back to top |
|
|
|