 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
frogsaucer How do I cheat?
Reputation: 0
Joined: 03 Feb 2024 Posts: 7
|
Posted: Fri Feb 23, 2024 8:17 pm Post subject: Need help with multiple address pulling please |
|
|
I'm trying to make a free cam, and I've done most of it correctly. I can move the camera myself with hotkeys, but I wanted a more consistent address structure. So I did what the guy said in the video and made a camera structure, and everything alinged perfectly, but I'm having a problem. I know what it is, but I don't know how to fix it.
Here is the code:
Code: |
[ENABLE]
assert("nmh.exe"+65836E,F3 0F 11 7F 0C)
define(camStruct,"nmh.exe"+65836E)
registersymbol(camStruct)
alloc(camStructMem,$1000,"nmh.exe"+65836E)
registersymbol(camStructMem)
define(pCamStruct,camStructMem+100)
registersymbol(pCamStruct)
label(code)
label(return)
pCamStruct:
dq 0
camStructMem:
code:
mov [pCamStruct],edi
movss [edi+0C],xmm7
jmp return
camStruct:
jmp camStructMem
return:
[DISABLE]
camStruct:
db F3 0F 11 7F 0C
unregistersymbol(camStructMem)
unregistersymbol(pCamStruct)
unregistersymbol(camStruct)
dealloc(camStructMem)
{
// ORIGINAL CODE - INJECTION POINT: nmh.C_MTXLookAt+1AE
nmh.C_MTXLookAt+182: F3 0F 5C D8 - subss xmm3,xmm0
nmh.C_MTXLookAt+186: F3 0F 59 4E 08 - mulss xmm1,[esi+08]
nmh.C_MTXLookAt+18B: F3 0F 59 3E - mulss xmm7,[esi]
nmh.C_MTXLookAt+18F: F3 0F 59 76 04 - mulss xmm6,[esi+04]
nmh.C_MTXLookAt+194: F3 0F 11 5F 18 - movss [edi+18],xmm3
nmh.C_MTXLookAt+199: F3 0F 11 6F 10 - movss [edi+10],xmm5
nmh.C_MTXLookAt+19E: F3 0F 58 FE - addss xmm7,xmm6
nmh.C_MTXLookAt+1A2: F3 0F 11 67 14 - movss [edi+14],xmm4
nmh.C_MTXLookAt+1A7: F3 0F 58 F9 - addss xmm7,xmm1
nmh.C_MTXLookAt+1AB: 0F 57 FA - xorps xmm7,xmm2
// ---------- INJECTING HERE ----------
nmh.C_MTXLookAt+1AE: F3 0F 11 7F 0C - movss [edi+0C],xmm7
// ---------- DONE INJECTING ----------
nmh.C_MTXLookAt+1B3: F3 0F 10 0E - movss xmm1,[esi]
nmh.C_MTXLookAt+1B7: F3 0F 10 46 04 - movss xmm0,[esi+04]
nmh.C_MTXLookAt+1BC: F3 0F 59 5E 08 - mulss xmm3,[esi+08]
nmh.C_MTXLookAt+1C1: F3 0F 59 CD - mulss xmm1,xmm5
nmh.C_MTXLookAt+1C5: F3 0F 59 C4 - mulss xmm0,xmm4
nmh.C_MTXLookAt+1C9: F3 0F 58 C8 - addss xmm1,xmm0
nmh.C_MTXLookAt+1CD: F3 0F 10 45 F4 - movss xmm0,[ebp-0C]
nmh.C_MTXLookAt+1D2: F3 0F 11 47 24 - movss [edi+24],xmm0
nmh.C_MTXLookAt+1D7: F3 0F 58 CB - addss xmm1,xmm3
nmh.C_MTXLookAt+1DB: F3 0F 10 5D F8 - movss xmm3,[ebp-08]
}
|
Now in the main tab of cheat engine, it loads the address correctly, because I added a new address manually called [pCamStruct]+0C which is the X coordinate, but when I go to check what addresses this instruction accesses, there's two. It only loads the first one in, which when I change the value it does nothing, the 2nd address on the list does change the camera coordinate.
So my question is, how do I have it load both addresses together, instead of CE just picking one that doesn't work? I'm not sure how to do a pointer scan correctly, as im still learning cheat engine, so any help would be immensely appreciated since this is the only thing I'm stuck on.
I hope this makes some sort of sense, I'm still new.
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Fri Feb 23, 2024 11:05 pm Post subject: |
|
|
frogsaucer wrote: | when I go to check what addresses this instruction accesses, there's two. | I hope you're referring to the instruction `movss [edi+0C],xmm7`.
frogsaucer wrote: | how do I have it load both addresses together, instead of CE just picking one that doesn't work? | One address can only store one value at a time. Here, you're responsible for picking which value is the correct one.
See step 9 of the CE tutorial. There's plenty of videos going over it.
Or find some other injection point that doesn't access multiple addresses.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
frogsaucer How do I cheat?
Reputation: 0
Joined: 03 Feb 2024 Posts: 7
|
Posted: Fri Feb 23, 2024 11:09 pm Post subject: |
|
|
Yeah when I click on what addresses it acesses, theres 2 addresses, and only the 2nd one changes the camera coords, the other one does nothing, but since it's the first one it lists it choooses that one. Is there a way for CE to select the last one instead?
Besides that, I can't seem to find another injection point that can move the camera that has a singular address connection. I can take a look I suppose.
EDIT: They are both the same number value, but only one moves the camera.
I'll be doing the cheat engine tutorial step as well.
EDIT2: Hey so I figured it out I think. I had to make a pointer and now I have a basic idea on how to use them (from video tutorial). Thanks for nudging me in that direction lol. It seems to work now, even after i restart the game and computer.
|
|
Back to top |
|
 |
|
|
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
|
|