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 


AOB script freezing my computer

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

Joined: 07 Feb 2018
Posts: 4

PostPosted: Sun Feb 11, 2018 4:23 am    Post subject: AOB script freezing my computer Reply with quote

Hi everybody, quick question:
What is wrong with my script?
Code:

[ENABLE]
aobscan(lifesub, 96 04 00 08 17 08 17 1c 51 ?? 96 02 00 08 17 1c 96 09 00 06 00 00 00 00 00 00 00 00)
lifesub:
  db 96 04 00 08 17 08 17 1c 51 02
[DISABLE]
lifesub:
  db 96 04 00 08 17 08 17 1c 51 1d

It fails to disable, and sometimes it freezes my whole computer, also freezes when activating if the value is not found.

More background information:
This AOB is always present after the game started, and the default value for the wildcard is always 1d, so when disabling I'm not breaking the program, the only reason I'm currently using wildcard is to try to work around the disable issue!


Last edited by andercoder on Sun Feb 11, 2018 5:52 am; edited 2 times in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Sun Feb 11, 2018 4:37 am    Post subject: Reply with quote

Code:
[ENABLE]
aobscan(lifesub, 96 04 00 08 17 08 17 1c 51 ?? 96 02 00 08 17 1c 96 09 00 06 00 00 00 00 00 00 00 00)
registersymbol(lifesub)

lifesub:
db 96 04 00 08 17 08 17 1c 51 02

[DISABLE]
lifesub:
db 96 04 00 08 17 08 17 1c 51 1d


About frozen CE window. You can enable this option:

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

Joined: 07 Feb 2018
Posts: 4

PostPosted: Sun Feb 11, 2018 6:00 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Code:
[ENABLE]
aobscan(lifesub, 96 04 00 08 17 08 17 1c 51 ?? 96 02 00 08 17 1c 96 09 00 06 00 00 00 00 00 00 00 00)
registersymbol(lifesub)

lifesub:
db 96 04 00 08 17 08 17 1c 51 02

[DISABLE]
lifesub:
db 96 04 00 08 17 08 17 1c 51 1d


About frozen CE window. You can enable this option:

Wow it worked! Thank you so much!
But can you explain to me why? I'm only using the label inside the script, why would I have to register it? This is so confusing...
Also why does it take so long to load the script and when I manually search the array of bytes it shows up instantly?
[edit: I deleted temp files + CE regedit entry and now it is activating instantly, but I still don't understand why I have to registersymbol Sad]
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Sun Feb 11, 2018 6:52 am    Post subject: Reply with quote

You have to treat DISABLE part as a separate script, kind of.

This is why we have to use registersymbol inside ENABLE part, and unregistersymbol inside DISABLE part (which I forgot to add because I was in a hurry while typing first reply). This command registers that variable globally.

Code:
[ENABLE]
aobscan(lifesub, 96 04 00 08 17 08 17 1c 51 ?? 96 02 00 08 17 1c 96 09 00 06 00 00 00 00 00 00 00 00)
registersymbol(lifesub)

lifesub:
db 96 04 00 08 17 08 17 1c 51 02

[DISABLE]
lifesub:
db 96 04 00 08 17 08 17 1c 51 1d

unregistersymbol(lifesub)



aobscan command used in AutoAssemble script will search all memory regions: writable memory or not, executable memory or not, copy-on-write or not.
If you try something like this, you will get the same (slow) result:


Also, there are memory region types: MEM_PRIVATE, MEM_IMAGE and MEM_MAPPED.

MEM_MAPPED is the slowest one. By default, CE doesn't scan this type.

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

Joined: 07 Feb 2018
Posts: 4

PostPosted: Sun Feb 11, 2018 6:09 pm    Post subject: Reply with quote

Oh, I see now... Thank you very much!
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