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 


Game crash!

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

Joined: 22 Aug 2024
Posts: 4

PostPosted: Tue Sep 03, 2024 5:40 am    Post subject: Game crash! Reply with quote

I allocate my chunk of memory and inject my code and perform it. But it crash the game. Can anyone tell me why?


ttt.jpg
 Description:
 Filesize:  1.31 MB
 Viewed:  8147 Time(s)

ttt.jpg


Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3320

PostPosted: Tue Sep 03, 2024 1:13 pm    Post subject: Reply with quote

You don't return after the last pop. You run uninitialized code.
Back to top
View user's profile Send private message
zIa1yBX5
How do I cheat?
Reputation: 0

Joined: 22 Aug 2024
Posts: 4

PostPosted: Wed Sep 04, 2024 1:32 am    Post subject: Reply with quote

Csimbi wrote:
You don't return after the last pop. You run uninitialized code.

I changed my code, but the game still crashed.
```cea
define(start ,207D9320000)
start:
alloc(x, 3, start+1000)
alloc(y, 3, start+1003)
mov x[0], 1
mov x[1], 2
mov x[2], 3
push x[0]
push x[1]
push x[2]
pop y[0]
pop y[1]
pop y[2]
mov eax, 1
mov ebx, 0
syscall
```
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3320

PostPosted: Wed Sep 11, 2024 3:44 pm    Post subject: Reply with quote

Create code cave, jump there, run your code there and jump back.
Seems to me you are overwriting a lot of code at address 207D9320000.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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