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 


[HELP] Tutorial Step 7

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

Joined: 12 Jul 2014
Posts: 7

PostPosted: Mon Aug 24, 2015 7:28 pm    Post subject: [HELP] Tutorial Step 7 Reply with quote

So, I have seen a lot of tutorials around the web, and every time I got stuck to this step.
Here is the thing...

I've scanned the initial value (100), decreased (99) and re-scan, catch the address and then, with right click at this, selected "Find out what writes to this address".
(The next step is where the all thing just gets messed.)

With this menu opened I decrease the initial value once more to find out what is writting at the address. The code that appears is ALWAYS something like that:

sub dword ptr [rsi+00000780],01

Following all tutorials, it is supposed to be something like
dec [00045EF1]
which means that the code is decreasing from this address.

Could someone help me out with this?
This is pissing me off. Mad Mad

Well, thank you everyone who at least read the post... Wink
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Aug 24, 2015 7:53 pm    Post subject: Reply with quote

Both of those instructions will successfully subtract 1 from the given address.
You can simply NOP the entire instruction to prevent this behavior.

sub dword ptr [rsi+00000780],01

RSI contains the base address to some game structure.
The value you found is at offset 0x780 from that base.
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Mon Aug 24, 2015 10:16 pm    Post subject: Reply with quote

sub dword ptr [rsi+00000780],01
> sub 4bytes [rsi+00000780],01
>> sub [rsi+00000780],01
>>> sub from [rsi+00000780], 01
>>>> subtract 1 from [rsi+00000780]
>>>>> subtract 1 from this address.

_________________
Back to top
View user's profile Send private message
devlee
How do I cheat?
Reputation: 0

Joined: 12 Jul 2014
Posts: 7

PostPosted: Tue Aug 25, 2015 6:18 pm    Post subject: Reply with quote

wow!!!... really appreciate that

But, just one more question...

If that instruction will subtract 1 from the address and the tutorial asks to change it to increase 2 instead which instruction should I use to it?

When I tried to use "add [rsi+00000780]" the message that appears is
"this instruction cant be compiled" or something like that...

and again, thank you for you help
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Aug 25, 2015 6:25 pm    Post subject: Reply with quote

Add takes two arguments, you need to tell it how much to add.

add [rsi+00000780],2

_________________
Back to top
View user's profile Send private message
devlee
How do I cheat?
Reputation: 0

Joined: 12 Jul 2014
Posts: 7

PostPosted: Tue Aug 25, 2015 6:39 pm    Post subject: Reply with quote

Rydian, I thank you a lot for your help

Just to remember that im talking about the CE Tutorial.

So, here is what I have when use the injection to Tutorial Step 7:

Quote:
alloc(newmem,2048,"Tutorial-x86_64.exe"+2C77B)
label(returnhere)
label(originalcode)
label(exit)

newmem: add[rsi+00000780],02

originalcode:
//sub dword ptr [rsi+00000780],01

exit:
jmp returnhere

"Tutorial-x86_64.exe"+2C77B:
jmp newmem
nop
nop
returnhere:


When I try to run this injection the message is always:
Error line 6 (ffffffffffffffff: add[rsi+00000780],02): this instruction can't be compiled.
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Aug 25, 2015 6:51 pm    Post subject: Reply with quote

You're missing a space...
add[rsi+00000780],02
Should be...
add [rsi+00000780],02

_________________
Back to top
View user's profile Send private message
devlee
How do I cheat?
Reputation: 0

Joined: 12 Jul 2014
Posts: 7

PostPosted: Tue Aug 25, 2015 6:55 pm    Post subject: Reply with quote

Dang it Sad

Added the space
Still the same behavior.

Well, if there is nothing else wrong and I still cant do it
Probly better to give up?

AND AGAIN, thank you a lot!!
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Aug 25, 2015 7:13 pm    Post subject: Reply with quote

Wait, tried putting it on the line after code:?
_________________
Back to top
View user's profile Send private message
devlee
How do I cheat?
Reputation: 0

Joined: 12 Jul 2014
Posts: 7

PostPosted: Tue Aug 25, 2015 7:18 pm    Post subject: Reply with quote

before
Quote:
newmem: add[rsi+00000780],02


after
Quote:
newmem: add [rsi+00000780],02


thats the code with space, isnt right?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Aug 25, 2015 7:53 pm    Post subject: Reply with quote

This is not a tutorial, moved.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Aug 25, 2015 8:04 pm    Post subject: Reply with quote

The instruction likely needs to be on its own line.
Code:
newmem:
add [rsi+00000780],02
Back to top
View user's profile Send private message
devlee
How do I cheat?
Reputation: 0

Joined: 12 Jul 2014
Posts: 7

PostPosted: Tue Aug 25, 2015 8:10 pm    Post subject: Reply with quote

First of all

Sorry atom0s

and...

LOL Zanzer

REALLY??? That was all my problem? Cant belive it........

Thank you again for helping me...

Edit: Solved... then closed??
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