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 


"Registersymbol" in assembly.
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat Nov 12, 2016 4:13 pm    Post subject: "Registersymbol" in assembly. Reply with quote

I was studying the assembly code in a CT made by Zanzer. He posts the CT in the "Table" session. I hope Zanzer won't feel offended when he sees this post. I just want to learn. Smile

So, please take a look at the screenshot. My question is: why "health" is registered as a symbol under "return"? I usually register all the symbols at the beginning of [ENABLE]. Is there a specific reason for Zanzer to do that?

Thanks a lot.



Capture.JPG
 Description:
 Filesize:  42.95 KB
 Viewed:  14837 Time(s)

Capture.JPG


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 Nov 12, 2016 4:15 pm    Post subject: Reply with quote

CE auto-builds scripts this way now for AOB injection template. You can use custom scripts, though, to change this.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat Nov 12, 2016 4:18 pm    Post subject: Reply with quote

++METHOS wrote:
CE auto-builds scripts this way now for AOB injection template. You can use custom scripts, though, to change this.


Thanks, ++METHOS. Smile
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Nov 12, 2016 5:58 pm    Post subject: This post has 1 review(s) Reply with quote

I feel so offended!
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sat Nov 12, 2016 9:50 pm    Post subject: Reply with quote

Zanzer wrote:
I feel so offended!


Oh no Sad I'm sorry!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Nov 12, 2016 10:21 pm    Post subject: Reply with quote

actually, some AA commands can be placed at any line inside block. First, last, in the middle.

registersymbol - anywhere in the block
label - anywhere in the block, but must be before the first usage

Code:
[ENABLE]
aobscan(health,0F B6 87 A8 00 00 00)
alloc(newmem,$1000)

label(return)

newmem:
  cmp [edi+68],0
label(code)
  je code
  xor eax,eax
  jmp return
code:
  movzx eax,byte ptr [rdi+000000A8]
registersymbol(health)
  jmp return

health:
  jmp newmem
  nop
  nop
return:



registersymbol can be placed between nops too:
Code:
health:
  jmp newmem
  nop
registersymbol(health)
  nop
return:

_________________
Back to top
View user's profile Send private message MSN Messenger
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sun Nov 13, 2016 5:36 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
actually, some AA commands can be placed at any line inside block. First, last, in the middle.

registersymbol - anywhere in the block
label - anywhere in the block, but must be before the first usage

Code:
[ENABLE]
aobscan(health,0F B6 87 A8 00 00 00)
alloc(newmem,$1000)

label(return)

newmem:
  cmp [edi+68],0
label(code)
  je code
  xor eax,eax
  jmp return
code:
  movzx eax,byte ptr [rdi+000000A8]
registersymbol(health)
  jmp return

health:
  jmp newmem
  nop
  nop
return:



registersymbol can be placed between nops too:
Code:
health:
  jmp newmem
  nop
registersymbol(health)
  nop
return:


Thanks for the info, mrg.inz.Player. That's interesting. Smile
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Sun Nov 13, 2016 9:22 pm    Post subject: Reply with quote

check out mgr.inz's Custom AA Templates lua extension, so you don't have to manually move around the registersymbol() and other commands everytime you generate a template.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Sun Nov 13, 2016 9:37 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
actually, some AA commands can be placed at any line inside block. First, last, in the middle.

registersymbol - anywhere in the block
label - anywhere in the block, but must be before the first usage


Nope.

In CE Autoassemble, you can't put it in [disable] block. I mean you can but it will fail to add it to symbollist (until you try to deactivate the script)- you can still activate the script but it won't disable.

For CE Autoassemble, you have to keep in mind that CE works like this

Code:
[ENABLE] block is considered separate from [DISABLE] block. Code in [ENABLE] is executed when you try to activate a script, code in [DISABLE] is executed when you try to disable a script.

[ENABLE] block is considered separate from [DISABLE] block. Code in [ENABLE] is executed when you try to activate a script, code in [DISABLE] is executed when you try to disable a script.

 and so on

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Nov 14, 2016 4:58 am    Post subject: This post has 1 review(s) Reply with quote

A bit pedantic? Very Happy
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Nov 14, 2016 7:30 am    Post subject: Reply with quote

@STN, nice try, but, there's not a single word about moving AA command from one block to another.


@++METHOS, not pedantic. He's just upset. Because of this post

_________________
Back to top
View user's profile Send private message MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Nov 14, 2016 8:18 am    Post subject: Reply with quote

Yes, I saw. I should give STN credit for trying, though...cause correcting you on something is not easy. Very Happy
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 Nov 14, 2016 9:36 am    Post subject: Reply with quote

Can we consider a sudden realization the same as correcting him?
http://forum.cheatengine.org/viewtopic.php?p=5696591#5696591
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Nov 14, 2016 10:58 am    Post subject: Reply with quote

No. Mr. Green
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 Nov 14, 2016 11:03 am    Post subject: Reply with quote

Correct answer was "Nope."
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
Goto page 1, 2  Next
Page 1 of 2

 
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