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 


Find Day and time in memory in JA BIA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
antan77
Newbie cheater
Reputation: 0

Joined: 04 Jan 2013
Posts: 13

PostPosted: Sat Jul 11, 2015 7:29 am    Post subject: Find Day and time in memory in JA BIA Reply with quote

Hi,

i am making an addon like tool for JA BIA. For some features i need the elapsed ingame minutes. (Hours would be fine too)

I succesfull found the time string, but want to dig a little bit deeper.

Any suggestions howto find the elapsed days with hours and minutes?

The Date Time has the format :

Days | Time

dd | hh:mm

Martin
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Jul 11, 2015 9:19 am    Post subject: Reply with quote

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
antan77
Newbie cheater
Reputation: 0

Joined: 04 Jan 2013
Posts: 13

PostPosted: Sat Jul 11, 2015 12:31 pm    Post subject: Ty very much!!!! Reply with quote

Finally I got it!

Its since Day 0 in seconds. I forgot to search for a range cause there arent seconds. Smile

Ty very much
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