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 


Quick Memory View Question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Sat Oct 15, 2016 10:50 am    Post subject: Quick Memory View Question Reply with quote

Code:
mov [rcx],eax


Question number one, If I would edit this address for example as this:

Code:
mov [rcx],#9999999


Would that be the right thing to do?

Question number two, Above that address there is a:

Code:
sub eax,ecx


This code is related to the address I mentioned above:

I would say the best way to do it is that:

Code:
sub eax,#9999999


To write a new value that will store in eax and the first address I mentioned above will write #9999999 into my current value am I right?


FULL CODE:

Code:
[ENABLE]

aobscanmodule(aobCash,mafia3.exe,2B C2 89 01 B0 01) // should be unique
alloc(newmem,$100,"mafia3.exe"+21BEF09)

label(code)
label(return)

newmem:

code:
  //sub eax,edx
  mov eax,#9999999
  mov [rcx],eax
  mov al,01
  jmp return

aobCash:
  jmp newmem
  nop
return:
registersymbol(aobCash)

[DISABLE]

aobCash:
  db 2B C2 89 01 B0 01

unregistersymbol(aobCash)
dealloc(newmem)
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Oct 15, 2016 12:15 pm    Post subject: Reply with quote

There are several ways to skin a cat, as they say, and the same can be said for how you choose to write your scripts. Some may argue that one way is better than another due to error mitigation, efficiency, personal preference, flow and appearance etc., but if it gets the job done...
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Sat Oct 15, 2016 12:18 pm    Post subject: Reply with quote

Yes that's what I ask if this is like one of many ways to access this, like just wondering if someone happens to saw this before and if the way I'm doing it is right.

It works yes but Crashes the game, I would do Pointer for now as it's just Cash and It's proffered for Mafia III.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Oct 15, 2016 12:24 pm    Post subject: Reply with quote

If the target is crashing, you may unknowingly be changing values other than cash, so you may need to find a more ideal injection location, or, filter out the unwanted addresses so that they are not affected.
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Sat Oct 15, 2016 12:27 pm    Post subject: Reply with quote

Hmm I understand thank you
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