What time system does Unity games use? cant find this clock

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
reidlos65
Noobzor
Noobzor
Posts: 10
Joined: Thu Feb 15, 2018 12:09 am
Reputation: 1

What time system does Unity games use? cant find this clock

Post by reidlos65 »

So I am slowly learning various parts of CE, but just as I make progress on one thing i go back a few steps because the next thing I want to mess with I cant find in step 1(finding the initial values etc)

In this case its a game that has a clock that progresses through a game "day" its shown as if it was hours:mins BUT the hours is actual real time min and minutes are realtime seconds

so you will have 11:15AM and in 45 seconds it will be 12:00PM

I have tried using the standard increase/decrease value run around, and tried to convert the time into float/double and 4byte so 11:15AM being

674 to 675
or milseconds @ 674000 to 676000

no luck Sad

Any hints? Its an early locked Alpha game that is basically similar to Stardew vally/harvestmoon,runefactory called Re:Legend

TimFun13
Expert Cheater
Expert Cheater
Posts: 1353
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 7

Re: What time system does Unity games use? cant find this clock

Post by TimFun13 »

It's mostly just time consuming. Start in the day time with an unknown value scan (as int or float), then just keep scanning for increased value tell nightfall then wait till morning and scan for a decreased value; and repete for a few in game days.

But if this is online or co-op, it might be server side to keep it synced for all players.

reidlos65
Noobzor
Noobzor
Posts: 10
Joined: Thu Feb 15, 2018 12:09 am
Reputation: 1

Re: What time system does Unity games use? cant find this clock

Post by reidlos65 »

Just single player, did several methods to narrow it down, but none of the expressed floats relate (to my understanding) to the time displayed ;/

Update: found somthing that atleast stops the visual timer, its a double float. Value shared with alot in my seach but decided to add all 26 to a list and freeze all. ONE worked so narrowed it down.

User avatar
vosszaa
Expert Cheater
Expert Cheater
Posts: 506
Joined: Sat Jun 17, 2017 1:46 pm
Reputation: 320

Re: What time system does Unity games use? cant find this clock

Post by vosszaa »

OOT, how does one play this game? It looks interesting

reidlos65
Noobzor
Noobzor
Posts: 10
Joined: Thu Feb 15, 2018 12:09 am
Reputation: 1

Re: What time system does Unity games use? cant find this clock

Post by reidlos65 »

[Link]
by chance does anyone here know how these might relate. I know this TIME value freezes that clock but how that value turns into that time im missing somthing. 4 hours in game go by and 4.375 XXX dont change

also here is the instruction set. Bit more complicated then the nooby starter stuff I THINK but [Link]
Last edited by reidlos65 on Fri Feb 15, 2019 4:36 am, edited 1 time in total.

reidlos65
Noobzor
Noobzor
Posts: 10
Joined: Thu Feb 15, 2018 12:09 am
Reputation: 1

Re: What time system does Unity games use? cant find this clock

Post by reidlos65 »

vosszaa wrote:
Fri Feb 15, 2019 4:19 am
OOT, how does one play this game? It looks interesting
Right now its in kickstarter locked early alpha, so keys only sent to backers. :(

User avatar
igromanru
Table Makers
Table Makers
Posts: 336
Joined: Sat Mar 25, 2017 11:20 pm
Reputation: 477

Re: What time system does Unity games use? cant find this clock

Post by igromanru »

If it's an Unity game, you can decompile Assembly-CSharp.dll with dnSpy, find out what exactly they are doing with the time or anything else you want and use CE Mono feature to find the right place in the code in CE:

User avatar
Csimbi
RCE Fanatics
RCE Fanatics
Posts: 933
Joined: Sat Apr 29, 2017 9:04 pm
Reputation: 1320

Re: What time system does Unity games use? cant find this clock

Post by Csimbi »

Unity provides an internal class, [Link].
Have a look at that class - most Unity games use this class.

Then, have a look at [Link] article on time management.

Hope that helps!

Post Reply

Who is online

Users browsing this forum: No registered users