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 


1 ms timer isn't fast enough.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
navarone
Advanced Cheater
Reputation: 2

Joined: 29 May 2010
Posts: 72

PostPosted: Wed Jun 30, 2010 5:12 pm    Post subject: 1 ms timer isn't fast enough. Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Wed Jun 30, 2010 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
navarone
Advanced Cheater
Reputation: 2

Joined: 29 May 2010
Posts: 72

PostPosted: Wed Jun 30, 2010 5:29 pm    Post subject: Reply with quote

4x20 = 80 Razz


And Happy Birthday DarkByte Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Wed Jun 30, 2010 5:33 pm    Post subject: Reply with quote

[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
View user's profile Send private message MSN Messenger
navarone
Advanced Cheater
Reputation: 2

Joined: 29 May 2010
Posts: 72

PostPosted: Wed Jun 30, 2010 5:49 pm    Post subject: Reply with quote

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 Smile
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