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 


Call funtion crash my game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Sayd
How do I cheat?
Reputation: 0

Joined: 21 Jul 2019
Posts: 1

PostPosted: Sun Jul 21, 2019 5:04 am    Post subject: Call funtion crash my game Reply with quote

I'm creating a dll and I'm doing and I'm doing some testing on IDA and the cheat engine before implementing it in C ++.

When calling the function below in cheat engine:

int __stdcall sub_8D3EF0 (int, char *, size_t, int, int)

with the following code:

[ENABLE]

globalalloc (drop, 2000)
createthread (drop)

drop:
push 0x00
push 0x00
push 0x01
push 0x2D
push 0x10
call "Ragexe.exe" + 4D3EF0

[DISABLE]

My stack looks like the image below and the game closes:
My adress EDI is 0



And when I call in IDA, my stack looks like the image below and the action executes successfully:
sub_8D3EF0(0x10,0x2D,1,0,0)
My adress EDI is 093F18C0




The main difference between the two stacks is that in executing the IDA the recorder edited with a memory address that is used inside my function, already in the cheat engine, this value is zero.

How can I do to pass this value on the cheat engine? I imagine that I will need to work with a pointer, considering that this value is changed every time the game is restarted.
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