View previous topic :: View next topic |
Author |
Message |
NVisible Cheater
Reputation: 0
Joined: 22 Dec 2012 Posts: 27
|
Posted: Sun Dec 23, 2012 12:30 am Post subject: [HELP] Custom Global Pointers? |
|
|
I got a question...
How would I got about making a global pointer/custom address that I can read from in different scripts?
I'm trying to make a auto shoot function. I've found the right things and reversed by scripting for "Am I aiming at a enemy": True or false... I also created the address in which it returns as a boolean and it's working. BUT! How would I read from that same address without without recreating it on another script?
Code: |
Registersymbol(AIMING)
alloc(AIMING,4)
|
When I do this inside another script, it rewrites the address for my boolean and my other script is basically disabled.
How can I use my address as global?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Sun Dec 23, 2012 3:57 am Post subject: |
|
|
Find a unused address in the game and write the address there.
Game.exe+f00 tends to be unused
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
NVisible Cheater
Reputation: 0
Joined: 22 Dec 2012 Posts: 27
|
Posted: Sun Dec 23, 2012 6:10 am Post subject: |
|
|
ok, cool... in the next version... can u make the variables/addresses created a option to be global? like
Code: | GlobalRegistersymbol(AIMING)
alloc(AIMING,4) |
Maybe this would be easier for all scripts to see not only the "private" ones?
Cool for Trainer/CT wide variables/addresses created by the user:)
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Sun Dec 23, 2012 6:15 am Post subject: |
|
|
Oh, if it's inside the same table/cheatengine session you can use globalalloc(name, size)
This will allocate the memory once, and reuse it every other time it is allocated
Just make sure the size is the same in all scripts that use globalalloc
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
NVisible Cheater
Reputation: 0
Joined: 22 Dec 2012 Posts: 27
|
Posted: Sun Dec 23, 2012 3:19 pm Post subject: |
|
|
Dark Byte wrote: | Oh, if it's inside the same table/cheatengine session you can use globalalloc(name, size)
This will allocate the memory once, and reuse it every other time it is allocated
Just make sure the size is the same in all scripts that use globalalloc |
Exactly what I'm looking for... This will allow me to use a "created address" as a variable across the whole ct Thanx!
|
|
Back to top |
|
 |
|