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 


Does code cave size matter?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Fri Jul 18, 2008 4:53 pm    Post subject: Does code cave size matter? Reply with quote

I have a few questions.
I manually pick my code cave at 256 but the game crashes when the script is executed. I change it to 1024 and the game crashes after about 1.5 hours. Why is that? was my first cave to small and my second one is too big.

Q2- Is there a way to execute a command without waiting for the address to be accessed in the game. example- say i had my base addy that controls health decrease, is there a way to change that value without waiting to get hit?

Last question- I'v been messing around trying to get something working but with no luck yet, so here it goes.
If i had two base addys, one that controls my health and the other for the enemy. Would it be possible to have the enemy's health decrease when i were hit.? like a reverse damage!

_________________
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: Sat Jul 19, 2008 1:48 am    Post subject: Reply with quote

q1: Perhaps the chosen codecave was actually used by the game after all? Or it's just a random crash.
also, when using alloc, you can just use as much as you like

q2: yes, just write it. Or write it on a cod einjection on health display, or someplace else. It doesn't HAVE to be at the hit spot. Just as long as it gets set AND you manage to get the pointer. (Hint, the code used to display health is usually the best spot to find the pointer, as it usually only accesses the players health)

q3: Perhaps if you do a code injection in the gethit routine. You may be able to find the address of the enemy object in the stack and from there adjust it's health offset (not easy)

_________________
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
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Sat Jul 19, 2008 9:53 am    Post subject: Reply with quote

Thanks for the reply DB
I'll alloc some mem and see if that works. If it doesnt then i'll leave that out for now.
I'v been trying what you said about reverse damage but without any luck yet. I'v managed 1 hit kill,invisible and freeze enemys but reverse damage still alludes me. I even managed to get the ememys to kill each other but i lost the addy and i cant find it again after about 15 searches. keeps changing!

_________________
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 Gamehacking 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