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 


Error compil (cmp [rcx+4C],xmm1)

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

Joined: 01 Jan 2021
Posts: 6

PostPosted: Fri Jan 01, 2021 7:00 pm    Post subject: Error compil (cmp [rcx+4C],xmm1) Reply with quote

Hello, I try to make a godmode and i can't compil it I don't know why.

CODE :
Code:

[ENABLE]

aobscanmodule(godmode,Dungeons-Win64-Shipping.exe,F3 F3 0F 11 49 4C) // should be unique
alloc(newmem,$1000,godmode)

label(code)
label(infhealth)
label(return)

newmem:

infhealth:
  pushf
  cmp [rcx+4C],xmm1
  ji code
  popf
  jmp return

code:
  popf
  movss [rcx+4C],xmm1
  jmp return

godmode:
  jmp newmem
  nop
return:
registersymbol(godmode)

[DISABLE]

godmode:
  db F3 F3 0F 11 49 4C

unregistersymbol(godmode)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: Dungeons-Win64-Shipping.exe+388860

Dungeons-Win64-Shipping.exe+388853: 48 83 C4 20        - add rsp,20
Dungeons-Win64-Shipping.exe+388857: 5F                 - pop rdi
Dungeons-Win64-Shipping.exe+388858: C3                 - ret
Dungeons-Win64-Shipping.exe+388859: CC                 - int 3
Dungeons-Win64-Shipping.exe+38885A: CC                 - int 3
Dungeons-Win64-Shipping.exe+38885B: CC                 - int 3
Dungeons-Win64-Shipping.exe+38885C: CC                 - int 3
Dungeons-Win64-Shipping.exe+38885D: CC                 - int 3
Dungeons-Win64-Shipping.exe+38885E: CC                 - int 3
Dungeons-Win64-Shipping.exe+38885F: CC                 - int 3
// ---------- INJECTING HERE ----------
Dungeons-Win64-Shipping.exe+388860: F3 F3 0F 11 49 4C  - movss [rcx+4C],xmm1
// ---------- DONE INJECTING  ----------
Dungeons-Win64-Shipping.exe+388866: 84 C0              - test al,al
Dungeons-Win64-Shipping.exe+388868: 0F 85 32 89 FF FF  - jne Dungeons-Win64-Shipping.exe+3811A0
Dungeons-Win64-Shipping.exe+38886E: C3                 - ret
Dungeons-Win64-Shipping.exe+38886F: CC                 - int 3
Dungeons-Win64-Shipping.exe+388870: 0F B6 41 38        - movzx eax,byte ptr [rcx+38]
Dungeons-Win64-Shipping.exe+388874: C3                 - ret
Dungeons-Win64-Shipping.exe+388875: CC                 - int 3
Dungeons-Win64-Shipping.exe+388876: CC                 - int 3
Dungeons-Win64-Shipping.exe+388877: CC                 - int 3
Dungeons-Win64-Shipping.exe+388878: CC                 - int 3
}


And when i assigned to my cheat table, an popup tell me : Error compil line 22 (cmp [rcx+4C],xmm1)

I following this tutorial ( Let's Hack: ELEX, Ep. 3 - Infinite Health (Game Hacking with Cheat Engine) ) so maybe i guess i can't cmp xmm ?

Thank.
Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Sat Jan 02, 2021 11:54 am    Post subject: Reply with quote

Try comiss. The xmm register will need to be the first argument.
https://www.felixcloutier.com/x86/comiss

Also ji is not in the list of assembler commands.
https://wiki.cheatengine.org/index.php?title=Assembler:Commands
Back to top
View user's profile Send private message
TheGeogeo
How do I cheat?
Reputation: 0

Joined: 01 Jan 2021
Posts: 6

PostPosted: Sun Jan 03, 2021 11:46 am    Post subject: Reply with quote

sbryzl wrote:
Try comiss. The xmm register will need to be the first argument.

Also ji is not in the list of assembler commands.


WORKS ! ty 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 -> General Gamehacking 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