Access to system date & time
Moderator: GZDoom Developers
Access to system date & time
I think it would be neat to add ACS functions that return the date or time. They could be used for generating very rare easter eggs (that only happen during the autumn equinox, for example), or for making special effects (like darkness) happen in the level, if it's night outside.
Re: Access to system date & time
Last edited by Enjay on Fri Apr 23, 2010 7:19 am, edited 1 time in total.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Access to system date & time
My personal guess would be that it'd mostly be used to annoy the player, not to create anything useful.
Personally, I want my Doom to behave the same, regardless whether I play on March 1st at 12:00 or on October 13th at 21:44.
Personally, I want my Doom to behave the same, regardless whether I play on March 1st at 12:00 or on October 13th at 21:44.
Re: Access to system date & time
Not that I'm campaigning for the feature but that assumes Doom. What about other games using Zdoom as an engine (eg new indie games) where the time of day that a person plays could be considered relevant?Graf Zahl wrote:my Doom
My most obvious logical objection to the usefulness of the feature is what about save games? eg a person starts playing a level at mid day and the game checks the time and sets up things appropriately. Then the person saves and comes back to the game at 6pm. The level is now out of step with the real time.
Re: Access to system date & time
Retrieving the system time could also be useful for creating our own random number generators, but that's kinda too specific and rare use anyway... XD
Re: Access to system date & time
I've actually seen this used for aesthetic effects. A few games I have, for example, have completely different main menus depending on if it's day or night, like Icewind Dale 2, for example.
Not that I agree about this, actually.
Not that I agree about this, actually.
Re: Access to system date & time
A big reason against this is demo playback...
-
- Posts: 612
- Joined: Tue Mar 17, 2009 5:12 am
- Location: done making ZDF free sprites
Re: Access to system date & time
People still use demos? Zblood's the last thing I saw use them.Gez wrote:A big reason against this is demo playback...
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Access to system date & time
Also, net play. Different computers, even on the same network, can have different date & time.Gez wrote:A big reason against this is demo playback...
The ability to do ROTT-style holiday screens would be fun, but not practical for other things...

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Access to system date & time
Gez wrote:A big reason against this is demo playback...
That could be solved by routing the time through the network datastream. Still, it's just one potential issue. It makes no sense in a non-realtime game to get the real time.