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 


Why this auto assembler script crash process?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
mrgorungo
Newbie cheater
Reputation: 0

Joined: 20 May 2019
Posts: 12

PostPosted: Mon May 20, 2019 12:59 am    Post subject: Why this auto assembler script crash process? Reply with quote

Im trying to copy memory region 00400000 - 00900000 to allocated dump space.

but it crashes entire game process and i found some memory data is not propery copied.
need you help!


Code:


[enable]
alloc(createdump,128)
alloc(dump,20000000)
registersymbol(dump)

createthread(createdump)



createdump:

cld
mov esi,00400000
mov edi,dump
mov ecx,00500000
rep movsb

ret



[disable]


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon May 20, 2019 1:04 am    Post subject: Reply with quote

is all the memory between 00400000 and 00900000 readable?

Does it show any no-access blocks in "memory regions" ?

Thy this code instead and check out error afterwards
Code:

alloc(createdump,128)
alloc(error,4)
alloc(dump,20000000)
registersymbol(dump)
registersymbol(error)

createthread(createdump)


createdump:

cld
mov esi,00400000
mov edi,dump
mov ecx,00500000
{$try}
rep movsb
jmp noerror
{$except}
mov [error],esi

noerror:
ret


_________________
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
mrgorungo
Newbie cheater
Reputation: 0

Joined: 20 May 2019
Posts: 12

PostPosted: Mon May 20, 2019 1:14 am    Post subject: Reply with quote

Dark Byte wrote:
is all the memory between 00400000 and 00900000 readable?

Does it show any no-access blocks in "memory regions" ?


Hey! thanks for the quick reply.

I picked up some memory address and checked.
I see Protect:Excute/Write copy in memory viewer but how do you check if every address is accessable?


btw,
I change ecx to 500 it seems to be fine, no crash.
but i need it to be 500000....


edit: I see your code and confirmed it works like a charm!!! no crashes.
but i wonder why I dont see any address in [error] ?
if there is no error, my original code should also work without crash... i think
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon May 20, 2019 1:29 am    Post subject: Reply with quote

it should have worked yes, unless for some messed up reason esi became 0

try
Code:

mov byte [error],1

instead

_________________
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
mrgorungo
Newbie cheater
Reputation: 0

Joined: 20 May 2019
Posts: 12

PostPosted: Mon May 20, 2019 1:47 am    Post subject: Reply with quote

Dark Byte wrote:
it should have worked yes, unless for some messed up reason esi became 0

try
Code:

mov byte [error],1

instead



fianly everything worked fine, youare real hero
love u!!!!!!
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