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: 13
Joined: Thu Feb 15, 2018 12:09 am
Reputation: 1

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

Post by reidlos65 » Fri Feb 15, 2019 2:34 am

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

User avatar
TheyCallMeTim13
Administration
Administration
Posts: 1557
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 540

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

Post by TheyCallMeTim13 » Fri Feb 15, 2019 3:20 am

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.
CE wiki - Tutorials CE wiki - Auto Assembler Basics - CE wiki - Lua Basics If it's not a Personal Message don't PM me, use the forum. I ignore PMs that should be asked on the forum.

reidlos65
Noobzor
Noobzor
Posts: 13
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 » Fri Feb 15, 2019 3:49 am

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
Fearless Donors
Fearless Donors
Posts: 297
Joined: Sat Jun 17, 2017 1:46 pm
Reputation: 217

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

Post by vosszaa » Fri Feb 15, 2019 4:19 am

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

reidlos65
Noobzor
Noobzor
Posts: 13
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 » Fri Feb 15, 2019 4:24 am

https://imgur.com/a/psRTFyP
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 https://imgur.com/a/3nhJDFV
Last edited by reidlos65 on Fri Feb 15, 2019 4:36 am, edited 1 time in total.

reidlos65
Noobzor
Noobzor
Posts: 13
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 » Fri Feb 15, 2019 4:25 am

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: 104
Joined: Sat Mar 25, 2017 11:20 pm
Reputation: 75

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

Post by igromanru » Sun Feb 24, 2019 9:25 am

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:
The best way to say "thanks" is to give +rep.

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

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

Post by Csimbi » Sun Feb 24, 2019 9:32 am

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

Then, have a look at this article on time management.

Hope that helps!

Post Reply

Who is online

Users browsing this forum: No registered users