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 


isBadReadPtr problem.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Dec 24, 2012 10:26 am    Post subject: isBadReadPtr problem. Reply with quote

OK, I have some problems. Game uses LUA.

this code works:
Code:
lea eax,[ebp+50]
push 04
push eax
call isbadreadptr
cmp eax,0
jne originalcode


But when used two times in row, game crash:
Code:

lea eax,[ebp+50]
push 04
push eax
call isbadreadptr
cmp eax,0
jne originalcode

mov eax,[ebp+50]
push 04
push eax
call isbadreadptr
cmp eax,0
jne originalcode


What's wrong?

_________________


Last edited by mgr.inz.Player on Mon Dec 24, 2012 1:21 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Mon Dec 24, 2012 11:20 am    Post subject: Reply with quote

perhaps the memory has become unreadable after the call to isbadreadptr ?
Or ebp+10 points to a stack location that isn't allocated yet

also, though I bet it won't make a difference, try push 00000004

_________________
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
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Dec 24, 2012 2:53 pm    Post subject: Reply with quote

I think I have to step-by-step debug whole script I made for "Don't Starve".

Because, I've tried two isbadreadptr checks in row, in another game Legend of Grimrock v1.1.4 - I made new script from the scratch. And it works as should - no crash.

_________________
Back to top
View user's profile Send private message MSN Messenger
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