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] Custom Global Pointers?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
NVisible
Cheater
Reputation: 0

Joined: 22 Dec 2012
Posts: 27

PostPosted: Sun Dec 23, 2012 12:30 am    Post subject: [HELP] Custom Global Pointers? Reply with quote

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? Crying or Very sad
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sun Dec 23, 2012 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
NVisible
Cheater
Reputation: 0

Joined: 22 Dec 2012
Posts: 27

PostPosted: Sun Dec 23, 2012 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sun Dec 23, 2012 6:15 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
NVisible
Cheater
Reputation: 0

Joined: 22 Dec 2012
Posts: 27

PostPosted: Sun Dec 23, 2012 3:19 pm    Post subject: Reply with quote

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 Cool Thanx!
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