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 


weird error with a trainer i made

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

Joined: 07 May 2007
Posts: 12

PostPosted: Thu Oct 02, 2008 12:17 pm    Post subject: weird error with a trainer i made Reply with quote

Hey everyone, if i start the trainer, then pres launch prism (its a shooter) and then click a cheat after it started i get this error: img505.imageshack.us/img505/9674/error1ce9.jpg

if i first start prism and after that the trainer i get this one directly when i start the trainer:
img230.imageshack.us/img230/6276/error2ir7.jpg

although if i click the speedhack, it works, but if i click the unlimited ammo hacks, it gives an error again and closes itself

if i do it manually with cheatengine, everything works perfectly

the only things the cheats are doing are these:

replace 005c2b49 with a code that does nothing
and the same goes for 005bc347 and 005517a7
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Thu Oct 02, 2008 1:51 pm    Post subject: Reply with quote

It looks a lot like the trainer is targeting the wrong process. Gor to processes with the same name running? Or did you just select a wrong process ?
_________________
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
devedse
Newbie cheater
Reputation: 0

Joined: 07 May 2007
Posts: 12

PostPosted: Thu Oct 02, 2008 2:19 pm    Post subject: Reply with quote

the weird thing actually is that it was working yesterday, but now it isn't anymore

the filename it starts is: PRISM.exe
and the process is PRISM.exe

cheat engine works with both
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu Oct 02, 2008 4:42 pm    Post subject: Reply with quote

Replacing code with code that does nothing is not a great idea, however it does work in some cases.
But if the game uses this line of code for other things it will cause a crash sometimes.

Also, as far as the trainer not working after it did work before could be, because the address your writing to has changed now after restarting the game.
Back to top
View user's profile Send private message
random5566
Advanced Cheater
Reputation: 0

Joined: 28 Feb 2008
Posts: 82

PostPosted: Thu Oct 02, 2008 7:38 pm    Post subject: Reply with quote

I just finished training a game 'Mr.Robot' (or trying to at least) and I encountered your exact same problem. Are you sure, your code is nop'ed.

Also this may be a glitch of some kind with CheatEngine. But if I replace the code with code that does nothing (and the cheat works) then I exit the game. Then I restart the game again, go to CheatEngine and re-attach the process, the cheats don't work. I have to replace the nop'ed code with original code, then replace it back with code that does nothing again in order for the cheat to work.
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Oct 03, 2008 9:44 am    Post subject: Reply with quote

random5566 wrote:
I just finished training a game 'Mr.Robot' (or trying to at least) and I encountered your exact same problem. Are you sure, your code is nop'ed.

Also this may be a glitch of some kind with CheatEngine. But if I replace the code with code that does nothing (and the cheat works) then I exit the game. Then I restart the game again, go to CheatEngine and re-attach the process, the cheats don't work. I have to replace the nop'ed code with original code, then replace it back with code that does nothing again in order for the cheat to work.


Possibly your address has changed. Look up a bit about defeating DMA.
Back to top
View user's profile Send private message
random5566
Advanced Cheater
Reputation: 0

Joined: 28 Feb 2008
Posts: 82

PostPosted: Fri Oct 03, 2008 1:06 pm    Post subject: Reply with quote

Labyrnth wrote:
Possibly your address has changed. Look up a bit about defeating DMA.


Don't think so, if the address changed, then how come it works if I replace the code with original code, then replace code with code that does nothing, without starting a new scan Question Besides, I thought replacing a code with code that does nothing defeats most DMA games. Not meaning to tell you what's what you guru you Razz
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Oct 03, 2008 1:32 pm    Post subject: Reply with quote

Quote:
But if I replace the code with code that does nothing (and the cheat works) then I exit the game. Then I restart the game again, go to CheatEngine and re-attach the process, the cheats don't work. I have to replace the nop'ed code with original code, then replace it back with code that does nothing again in order for the cheat to work.


I see whats wrong, lol. Your closing the game with a ct toggled or replaced code. Then have to attach ce back to the process and do it again to make it work.
Sounds about right to me. Nothing wrong with ce. The problem lies with what you are doing.

1. With CE attached to the process then it can alter memory.
2. So if you close the process, and open it again and attach ce back to it. It is as if you never changed a thing. Because this is a new session and ce doesnt know what your wanting to do at this point.
Back to top
View user's profile Send private message
devedse
Newbie cheater
Reputation: 0

Joined: 07 May 2007
Posts: 12

PostPosted: Fri Oct 10, 2008 9:34 am    Post subject: Reply with quote

but what did i wrong then?

edit:
also another question, if i want to make a ct to nop that adress, what code should i put then?

[enable]
blah

[disable]
blah
Back to top
View user's profile Send private message
Psy
Grandmaster Cheater Supreme
Reputation: 1

Joined: 27 Mar 2008
Posts: 1366

PostPosted: Fri Oct 10, 2008 9:45 am    Post subject: Reply with quote

Code:

[enable]

<address>:
nop
nop
nop     //etc etc


or, use define byte and put in the opcodes manually:

Code:

[enable]

<address>:
db 90 90 90   //etc, up to the number you need


~Psy
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