| View previous topic :: View next topic |
| Author |
Message |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Sat Mar 03, 2012 6:31 am Post subject: cheat engine alloc problem |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Sat Mar 03, 2012 7:09 am Post subject: |
|
|
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 |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Sat Mar 03, 2012 4:36 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Sat Mar 03, 2012 4:41 pm Post subject: |
|
|
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 |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Sun Mar 04, 2012 9:00 am Post subject: |
|
|
i have also checked the labels and alloc names, they're all different and no one is named newmem _________________
... Fresco |
|
| Back to top |
|
 |
|