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 


a bug in Readmem(xx,xx)

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

Joined: 15 Jan 2008
Posts: 73

PostPosted: Tue Jul 13, 2010 2:31 am    Post subject: a bug in Readmem(xx,xx) Reply with quote

an example script

[ENABLE]
globalalloc(mytestmem,0x1000)

mytestmem:
db 'Cheatengine!'
db 00

mytestmem+10:
readmem(mytestmem,0x10)
[DISABLE]

after enable script, mytestmem+10 is 0 .

in my plan, script will run my code one by one .
but looks like readmem is runing as first .

is there some thing can fix this bug ?
maybe a new order like this could useful

[ENABLE]
[first]
globalalloc(mytestmem,0x1000)

mytestmem:
db 'Cheatengine!'
db 00
[/first]

mytestmem+10:
readmem(mytestmem,0x10)
[DISABLE]

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

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

PostPosted: Tue Jul 13, 2010 4:50 am    Post subject: Reply with quote

it's not a bug, it's designed like this. Writing to the memory is only done after everything in the script has been assembled into code and bytes, reading mytestmem and writing the bytes at the specific position just won't work

best solution is split it up into two script

Also, ask yourself why you need it, perhaps there is a different better way to solve the problem.

_________________
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
kickclock
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 73

PostPosted: Tue Jul 13, 2010 5:53 am    Post subject: Reply with quote

i see.
i will write them into two scipts.

_________________
Love CE
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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