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 


Check if GLOBALALLOC was allready called

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

Joined: 10 Aug 2011
Posts: 82

PostPosted: Sat May 12, 2012 10:36 am    Post subject: Check if GLOBALALLOC was allready called Reply with quote

Say, i have a auto assamble script scriptA using GLOBALALLOC to allocate (who would have guessed) global memory. When executing scriptB, is there any way to check whether scriptA allready allocated this memory or not?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat May 12, 2012 10:47 am    Post subject: This post has 1 review(s) Reply with quote

no, if scriptA hasn't allocated it, scriptB will allocate it instead

If you wish to make sure scriptA runs first, then use normal alloc and use registersymbol to register that name with the address
then when scriptB runs when it tries to access that name it will fail if scriptA hasn't been executed yet

_________________
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
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Sat May 12, 2012 10:53 am    Post subject: Reply with quote

what does "fail" mean? will it randomly write so some stupid adress or will the execution be arboted? Both would be some kind of bad, if he writes to random adresses, he may destroy something, if the script is aborted, the program will be aborted, since its a code injection and not a new thread.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sun May 13, 2012 3:35 am    Post subject: This post has 1 review(s) Reply with quote

The script won't simply activate.
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Sun May 13, 2012 7:05 am    Post subject: This post has 1 review(s) Reply with quote

thx, worked perfectly.
edit: wow, ive gotta wait half a day to give both of you a +rep? Shocked
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