Go Back   FileForums > Games > Game Coders
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25-05-2007, 06:55
asprin asprin is offline
Junior Member
 
Join Date: May 2007
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
asprin is on a distinguished road
Finding Address of Clock/Timer in NFSPU - Need help

First of all i would like to thank DABhand for writing a tutorial on usage of cheat engine.Because of you, i gathered enough courage to play with the dma phenomena. Hats off to you.

After going through this website, i found out out how to find address for a known value as well as for health bars...i also succeeded in freezing them...thanks to you folks for that.

Now i am trying to go one step further and trying to find the address for a clock that keeps ticking and never freezes.

The game i am working on is Need For Speed Porsche Unleashed. I am not able to find the address of the timer. The format of the clock is 00-00-00, the first set for minutes, second set for seconds and third set for milliseconds.

I tried with unknown values using every data length but to no avail. I first tried with increased value since the time is increasing in the game. Then i also tried using decreasing values but still couldnt get the result.

Please help me out on this. I am using Cheat Engine v5.3.

Thanks and Regards,
asprin.
Reply With Quote
Sponsored Links
  #2  
Old 25-05-2007, 07:41
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
could also be floats
or stored as 64 bit value, microseconds etc..
which it then divides runtime, to do the display

alternatively, most of the games use wsprintf to do the actual formatting
so u could look through the code for stuff like '%2d:%2d:%2d' and cross reference them...
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
Reply With Quote
  #3  
Old 25-05-2007, 08:25
DABhand DABhand is offline
Banned
 
Join Date: Nov 2004
Location: Near my PC
Posts: 5,406
Thanks: 0
Thanked 3 Times in 3 Posts
DABhand is on a distinguished road
Just remember 1 minute is 60 seconds, 1 hour is 3600 seconds and so on.

And yes it could be set to milliseconds, or tenths of a second. So you will have to do a bit of experimenting to find out
Reply With Quote
  #4  
Old 26-05-2007, 07:12
asprin asprin is offline
Junior Member
 
Join Date: May 2007
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
asprin is on a distinguished road
hmmm it looks like i will have to do a lot of searching.....no problem i will certainly not back out of it now....thanks for replying
Reply With Quote
  #5  
Old 29-05-2007, 23:14
asprin asprin is offline
Junior Member
 
Join Date: May 2007
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
asprin is on a distinguished road
no luck at all...i tried every possible permutations and combinations but invain...how the hell do i find a solution to it?
Reply With Quote
  #6  
Old 30-05-2007, 02:06
DABhand DABhand is offline
Banned
 
Join Date: Nov 2004
Location: Near my PC
Posts: 5,406
Thanks: 0
Thanked 3 Times in 3 Posts
DABhand is on a distinguished road
The olde slow but sure method.

Search for an unknown, then decrease value after a second, and again and again.

Will take longer but hopefully you will get there.

Sometimes timers can be either

1. Float
2. Seperate Byte values for each time. i.e. 1 byte value for minutes, 1 for seconds etc
Reply With Quote
  #7  
Old 30-05-2007, 23:23
asprin asprin is offline
Junior Member
 
Join Date: May 2007
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
asprin is on a distinguished road
yeh but there is also a millisecond field in the timer. Does that mean i will have convert minutes and seconds to milliseconds too?
Reply With Quote
  #8  
Old 31-05-2007, 02:44
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
i would imagine so
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
Reply With Quote
  #9  
Old 04-06-2007, 23:33
asprin asprin is offline
Junior Member
 
Join Date: May 2007
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
asprin is on a distinguished road
guys i found out one important thing regarding the format of the timer.

The format is 00:00.00 and not 00:00:00 as mentioned by me earlier. SO any suggesstions on datatype, length?

Thanks and Regards,
asprin.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -7. The time now is 23:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com