Posted: Tue Jan 22, 2013 11:24 pm Post subject: Replacing with NOPs creates an undefined behavior
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?
Joined: 09 May 2003 Posts: 25858 Location: The netherlands
Posted: Wed Jan 23, 2013 3:22 am Post subject:
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
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)
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