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 


Replacing with NOPs creates an undefined behavior

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Pokiaka
Cheater
Reputation: 0

Joined: 09 Jul 2011
Posts: 48

PostPosted: Tue Jan 22, 2013 11:24 pm    Post subject: Replacing with NOPs creates an undefined behavior Reply with quote

I'm working on Unreal Tournament 3 (nosTeam release).

I found the instruction that decreases the HP, but when I replaced it with NOPs, the game randomly crashed (after shooting a weapon, or getting on an hover-board).

Later I did the same thing for the ammo and it seemed to work fine, but when I've exited the match and went to the menu the game crashed.

The instruction I replaced was a mov and a sub into a memory address so it seems very strange to me that the game would notice any difference.

What would be the best way to solve with this problem?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Jan 23, 2013 3:22 am    Post subject: Reply with quote

That code is also used by a lot of other things (It's the "set address to value" function)
You need to do a more advanced code injection that checks if the thing being affected is in fact health or not.

_________________
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
Pokiaka
Cheater
Reputation: 0

Joined: 09 Jul 2011
Posts: 48

PostPosted: Thu Jan 24, 2013 5:40 am    Post subject: Reply with quote

Dark Byte wrote:
That code is also used by a lot of other things (It's the "set address to value" function)
You need to do a more advanced code injection that checks if the thing being affected is in fact health or not.


Ah, I thought exactly about what you said but changed my mind because changing an address seemed so harmless. Thanks for letting me know.

I'll give it a go.
Is there a feature in CE that could help speeding up the process? (I honestly don't expect to find one tho, seems to specific)
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