| View previous topic :: View next topic |
| Author |
Message |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Fri Jul 18, 2008 4:53 pm Post subject: Does code cave size matter? |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25866 Location: The netherlands
|
Posted: Sat Jul 19, 2008 1:48 am Post subject: |
|
|
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 |
|
 |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Sat Jul 19, 2008 9:53 am Post subject: |
|
|
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 |
|
 |
|