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 


How to reduce the length of a timer in a game?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
8BallPoolHackerAP05
How do I cheat?
Reputation: 0

Joined: 03 Jul 2015
Posts: 9

PostPosted: Fri Jul 03, 2015 11:10 am    Post subject: How to reduce the length of a timer in a game? Reply with quote

I'm trying to find out how you can reduce the amount of time left on a timer in a game. I'm not sure if I've allocated the right memory address but I don't know what to do to reduce the time left after I allocate the memory address for the timer function.
_________________
You don't get your name in the lights by playing it safe.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Jul 03, 2015 12:32 pm    Post subject: Reply with quote

Not sure what you mean by allocating a memory address.
The game allocates the memory, you just find the address.
Then you hook into the game code accessing that address to set it how you like.
Or you find a pointer to that address and manually change the value when needed.
Back to top
View user's profile Send private message
8BallPoolHackerAP05
How do I cheat?
Reputation: 0

Joined: 03 Jul 2015
Posts: 9

PostPosted: Fri Jul 03, 2015 1:20 pm    Post subject: Reply with quote

Zanzer wrote:
Not sure what you mean by allocating a memory address.
The game allocates the memory, you just find the address.
Then you hook into the game code accessing that address to set it how you like.
Or you find a pointer to that address and manually change the value when needed.


I mean, I'm not sure if I found the actual address but I think I have. I just want to know how to set that address or how to use a pointer to change the value of it. For example the timer is "22 hours 15 minutes and 30 seconds". I want to change the value of it so that it is only a few seconds and retrieve the prize faster.

_________________
You don't get your name in the lights by playing it safe.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Jul 03, 2015 1:33 pm    Post subject: Reply with quote

Simply changing the value at the address you found should change it in game.
If it doesn't, then you found the wrong address.

For a timer showing 22:15:30, I would search for a float between 80129 and 80131.
(22 * 60 + 15) * 60 + 30 = 80130
It may also be stored in milliseconds, so try between 80129000 and 80131000.

The game could also store the value as elapsed time, in which case you're looking for a number that increases from zero.
Back to top
View user's profile Send private message
8BallPoolHackerAP05
How do I cheat?
Reputation: 0

Joined: 03 Jul 2015
Posts: 9

PostPosted: Fri Jul 03, 2015 1:48 pm    Post subject: Reply with quote

Zanzer wrote:
Simply changing the value at the address you found should change it in game.
If it doesn't, then you found the wrong address.

For a timer showing 22:15:30, I would search for a float between 80129 and 80131.
(22 * 60 + 15) * 60 + 30 = 80130
It may also be stored in milliseconds, so try between 80129000 and 80131000.

The game could also store the value as elapsed time, in which case you're looking for a number that increases from zero.


I think what I'm trying to do would be pretty simple for you but I just can't find the right address now. Would you be able to help me on TeamViewer? As I really want to be able to hack this timer with cheat engine.

_________________
You don't get your name in the lights by playing it safe.
Back to top
View user's profile Send private message
MrBuzz119
How do I cheat?
Reputation: 0

Joined: 20 May 2012
Posts: 9

PostPosted: Mon Jul 20, 2015 2:56 am    Post subject: Reply with quote

There are several ways to know whether you find the right address or not. One of them is to freeze the address and observe. If you find the right one, you will see the time in your game doesn't change anymore.

8BallPoolHackerAP05 wrote:

I think what I'm trying to do would be pretty simple for you but I just can't find the right address now


Try this, maybe it is more esaier for you to know how to find the right address
Zanzer wrote:
The string format displayed is likely stored as a 4/8-byte integer representing milliseconds.
Another common storage format is a float/double decimal representing seconds.
Days may be stored in the same variable or could be a separate 4-byte value on its own.

Some possible values for 1 day 7 hours 30 minutes:

((24 * [1 day]) + [7 hours]) * 60 + [30 minutes] = 1890 minutes
[1890 minutes] * 60 = 113400 seconds
[113400 seconds] * 1000 = 113400000 milliseconds

Since you only have minutes, I would search for all values between the 1889 and 1891 minute marks.

Float or 4-Bytes between 1889 and 1891 minutes.
Float or 4-Bytes between 113340 and 113460 seconds.
4-Bytes between 113340000 and 113460000 milliseconds.

You may want to ignore the day value and only search for the 450 minutes shown in the time.

Float or 4-Bytes between 449 and 451 minutes.
Float or 4-Bytes between 26940 and 27060 seconds.
4-Bytes between 26940000 and 27060000 milliseconds.
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 Discussions 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