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 


Need help with Auto Assemble

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
raziel240
Newbie cheater
Reputation: 0

Joined: 07 Aug 2015
Posts: 20

PostPosted: Wed Nov 20, 2019 3:37 am    Post subject: Need help with Auto Assemble Reply with quote

Hi folks, so I'm a veteran when it comes to finding values but I'm still a beginner when it comes to Auto Assemble. As of right now I'm playing Don't Starve solo and I found the value of a tree HP. So I select Find out what writes this address and then hit the tree with the axe again. So far so good. Now here comes the part where I don't have experience with.

In those games I used this on I got Opcodes like add and sub. Pretty standard with those as I know I can just change the value at the end of the Opcode to either increase or decrease depending on situation.

But here in Don't Starve I got the Opcode with mov which I don't really know what to do with.

Code:
code:
  mov [ecx+04],edx
  mov edx,[eax+08]
  jmp return

onehit:
  jmp newmem
  nop
return:
registersymbol(onehit)


As you can see in the code I want it to be a onehit script but also as said, I don't really know how to do it and I'm afraid if I change anything with my logic it will definitely crash the game.
If anyone can explain how I can go on from there without letting the script crash the game I'd appreciate it. And would said solution also work on other mov codes or is there a specific way to determine how to change the code?
Thanks in advance and if you need more information let me know.
Back to top
View user's profile Send private message
DanyDollaro
Master Cheater
Reputation: 3

Joined: 01 Aug 2019
Posts: 334

PostPosted: Wed Nov 20, 2019 7:18 am    Post subject: Reply with quote

Put like that, I can only suggest this:
Code:
code:
  xor edx, edx
  mov [ecx+04],edx
  mov edx,[eax+08]
  jmp return

onehit:
  jmp newmem
  nop
return:
registersymbol(onehit)
Back to top
View user's profile Send private message
raziel240
Newbie cheater
Reputation: 0

Joined: 07 Aug 2015
Posts: 20

PostPosted: Wed Nov 20, 2019 10:20 am    Post subject: Reply with quote

Hey thanks for the suggestion but unfortunately the moment I tick the box it crashes the game into desktop
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4302

PostPosted: Wed Nov 20, 2019 10:33 am    Post subject: Reply with quote

Right click "mov [ecx+04],edx" in the disassembler (top half of the memory view window) and select "Find out what addresses this instruction accesses". Play the game for a bit and see if it accesses anything else besides the address you want. If it does access another address, completing step 9 of the CE tutorial may help you.

The code around (especially above) the injection point and the entire script (not just your code) might also help us.

_________________
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
raziel240
Newbie cheater
Reputation: 0

Joined: 07 Aug 2015
Posts: 20

PostPosted: Wed Nov 20, 2019 2:24 pm    Post subject: Reply with quote

Thanks for the suggestion, I'll try it next time. And as of right now I can't post any images but as soon as I'm back at it I will try my best to give more accurate details.
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