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 


cheat engine alloc problem

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

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sat Mar 03, 2012 6:31 am    Post subject: cheat engine alloc problem Reply with quote

i found one code ...
start auto assemble there ...

alloc(newmem,2048)
etc ...

when i enable/execute it ...
the jump to newmem ... does not bring to an actual newmem, but it uses some space ... already in use by the game ... and then, of course, the game crashes.

how do i fix that ... ? because with other codes works.
i have 7 scripts in the table with a total of:
3 globalalloc
9 alloc
many meny labels

all disabled when trying to enable/execute the code

_________________
... Fresco
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Mar 03, 2012 7:09 am    Post subject: Reply with quote

the "jmp newmem" line must be in the same script (enable section) as the "alloc(newmem)" line

and don't hardcode the jmp using e9 xx,xx,xx,xx and also do not use the "short" modifier for this jump

And don't redefine the alloc with a define or label

_________________
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
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sat Mar 03, 2012 4:36 pm    Post subject: Reply with quote

I have checked ... and everything is in order.
I've forgot to say that i have other scripts that give no problem, and actually allocs memory for the code ...

could it be because there's no more free space to alloc ? All of my codes are alloced with codes 2048, so it's more than necessary ... could be that ?

_________________
... Fresco
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Mar 03, 2012 4:41 pm    Post subject: Reply with quote

The size is not a problem. 1000 of those is only 4MB

But try to use more unique names instead of newmem. Perhaps you have registered a custom name called newmem that interferes with the script. (Globalalloc registers customnames as well, and always return the same value once defined)

_________________
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
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sun Mar 04, 2012 9:00 am    Post subject: Reply with quote

i have also checked the labels and alloc names, they're all different and no one is named newmem
_________________
... Fresco
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