Talk:GetRealHoursPassed - Game

Active discussions

On getting the current game time for a save fileEdit

Just in case someone tries this, I'll put my findings with this function here. GetCurrentGameTime - Utility can be used in a variety of ways to obtain specific units of time. Hours, days, the time of a day, the time of the next day from the current day, and so on.. and it can even be converted into the real time and back. Now back to the subject at hand; GetRealHoursPassed. This is the total time for a save file, in hours, minutes and seconds. If you convert that time into game time, you can pretty much get the current game time(in hours, or whatever you need) without loading into the game to look at the time, or use GetCurrentGameTime().

So I asked myself, what if you could get all that information simply from GetRealHoursPassed? You can't. This is because the time spent in any menu that stops game time will not be accounted for by this function, and it makes sense, because real time never stops. While you can get how many days, hours, minutes, etc that game time has stopped with GetCurrentGameTime and this function.. you can't blindly get that with GetRealHoursPassed alone. Which was a real bummer I stumbled upon in my research on game time and would have saved time on conversions(GetCurrentGameTime needs quite a lot). --Rasikko (talk) 2018-02-02T06:28:40 (EST)

Return to "GetRealHoursPassed - Game" page.