| View previous topic :: View next topic |
| Author |
Message |
navarone Advanced Cheater
Reputation: 2
Joined: 29 May 2010 Posts: 72
|
Posted: Wed Jun 30, 2010 5:12 pm Post subject: 1 ms timer isn't fast enough. |
|
|
EAX's value changes within a loop, I am using a code cave to dump its value to specific address.
The address is changing way too fast, 1ms timer that reads this address isn't fast enough.
Somehow using Cheat Engine "Find out what addresses this instruction changes" feature slows down the game. As soon I activate it, my C# program reads all possible values.
Oh and I already tried
Push 2
Call Sleep
and it crashes the game. :/
I tried this AA script, dumping each value of EAX to its single address, but again.. it crashes the game -.-
| Code: | [enable]
alloc(TestCave,250) //Allocating memory for my code
TestCave:
inc [TestCave+64]
inc [TestCave+64]
inc [TestCave+64]
inc [TestCave+64] //increasing my counter by 4 (EAX is always 4bytes)
cmp dword ptr [TestCave+64],50 //Comparing to 80d
je TestCave+3b //Reset to 0 if yes
mov edi,[TestCave+64] //moving counter to EDI
add edi,60 //Offsetting it to prevent it from writing over code
mov [edi+TestCave],eax //moving value of EAX
mov edi,[eax+00000098] //Original command code cave was initiated from
jmp 01FCE7A3 //Jump back
mov [TestCave+64],0 //Reset to 0 if EDI reached 80
mov edi,[eax+00000098] //Original command
jmp 01FCE7A3 //Jump back
01FCE79D:
jmp TestCave
[disable]
|
tl;dr My counter at [TestCave+64] changes keeps changing to random values.. yet I see nothing in my code does that -.-
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25867 Location: The netherlands
|
Posted: Wed Jun 30, 2010 5:18 pm Post subject: |
|
|
1: It's of course:
| Code: |
pushad
pushfd
Push 2
Call Sleep
popfd
popad
|
also, use labels "je TestCave+3b " makes your code unreadable
oops, deleted the wrong spam post
_________________
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
Last edited by Dark Byte on Wed Jun 30, 2010 5:22 pm; edited 1 time in total |
|
| Back to top |
|
 |
navarone Advanced Cheater
Reputation: 2
Joined: 29 May 2010 Posts: 72
|
Posted: Wed Jun 30, 2010 5:29 pm Post subject: |
|
|
4x20 = 80
And Happy Birthday DarkByte
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25867 Location: The netherlands
|
Posted: Wed Jun 30, 2010 5:33 pm Post subject: |
|
|
[testcave+64]=4
mov edi,[TestCave+64]: edi becomes 4
add edi,60 : edi becomes 64
mov [edi+TestCave],eax: Write the value of eax to testcave+64
next iteration:
[testcave+64]=whatever was at eax
add edi,60 : eax+60
mov [edi+testcave],eax : Crash and burn
_________________
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
Last edited by Dark Byte on Wed Jun 30, 2010 6:05 pm; edited 1 time in total |
|
| Back to top |
|
 |
navarone Advanced Cheater
Reputation: 2
Joined: 29 May 2010 Posts: 72
|
Posted: Wed Jun 30, 2010 5:49 pm Post subject: |
|
|
Funny.. I amn't sure how I didn't notice that .
It's actually working now.
And Calling Sleep doesn't crash the game now, yet even 2ms delay causes game to stop rendering while causing horrible lag.
Though pushad and pushfd seem interesting enough, could use them later.
Thanks DB, wont let me rep you as I already did before. And again, Happy Birth day
|
|
| Back to top |
|
 |
|