View previous topic :: View next topic |
Author |
Message |
andercoder How do I cheat? Reputation: 0
Joined: 07 Feb 2018 Posts: 4
|
Posted: Sun Feb 11, 2018 4:23 am Post subject: AOB script freezing my computer |
|
|
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Feb 11, 2018 4:37 am Post subject: |
|
|
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 |
|
|
andercoder How do I cheat? Reputation: 0
Joined: 07 Feb 2018 Posts: 4
|
Posted: Sun Feb 11, 2018 6:00 am Post subject: |
|
|
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 ]
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Feb 11, 2018 6:52 am Post subject: |
|
|
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 |
|
|
andercoder How do I cheat? Reputation: 0
Joined: 07 Feb 2018 Posts: 4
|
Posted: Sun Feb 11, 2018 6:09 pm Post subject: |
|
|
Oh, I see now... Thank you very much!
|
|
Back to top |
|
|
|