ASC Date and Time Information functions
Moderator: GZDoom Developers
ASC Date and Time Information functions
For same decorative targets I need two functions :
GetSystemTime() return a time (byte - seconds + byte - minute + byte - hour + byte unused)
or
GetSystemTime(int who), who = 0 - seconds etc.
and
GetSystemDate() return a date (byte - day + byte - mouth + two_bytes(word) - year CE.
or
GetSystemDate(int who), who = 0 - day etc.
For examle, I want a change TITLEMAP story depending on day and time.
GetSystemTime() return a time (byte - seconds + byte - minute + byte - hour + byte unused)
or
GetSystemTime(int who), who = 0 - seconds etc.
and
GetSystemDate() return a date (byte - day + byte - mouth + two_bytes(word) - year CE.
or
GetSystemDate(int who), who = 0 - day etc.
For examle, I want a change TITLEMAP story depending on day and time.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: ASC Date and Time Information functions
Already suggested, already [No]'d.
Re: ASC Date and Time Information functions
Hmmm... I cannot find a topic with this suggestion. Where is it? I was just wondering the reason why not.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: ASC Date and Time Information functions
First of all, the acronym you're looking for is ACS. Second of all, it's invasive to the PC AND if you resume a save-game from a different time it breaks continuity.Dethernal wrote:Hmmm... I cannot find a topic with this suggestion. Where is it? I was just wondering the reason why not.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: ASC Date and Time Information functions
There's absolutely no genuinely useful thing you can do with this - but on the other hand it can easily abused by incompetent mappers to create something really annoying.
It's a pure gimmick feature and I don't consider those worthwile.
It's a pure gimmick feature and I don't consider those worthwile.
Re: ASC Date and Time Information functions
In other hands ANYTHING may create problems. Any function from ACS, DECORATE and Action Specials. And In same place any decorative function may be useful, if it's make wad more interesting. You simply have to ZDoomwiki add a comment on this subject (as for many other functions, which can cause problems. What function should not affect the gameplay does, and all the time even Demos will not be desynchronized) And if Demo is writing or Multiplayer game is started, function can return constant neutral values - 08.11.2009 : 12:00:00 for example.Graf Zahl wrote:There's absolutely no genuinely useful thing you can do with this - but on the other hand it can easily abused by incompetent mappers to create something really annoying.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: ASC Date and Time Information functions
I didn't say it can create problems - but I see absolutely no point in a Doom map having access to it. I don't see it as useful information for playing Doom.
And No means No. Don't try to change my mind. I won't.
And No means No. Don't try to change my mind. I won't.
- Cutmanmike
- Posts: 11352
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: ASC Date and Time Information functions
I think it boils down for usefulness. Even if you do have some crazy RPG realistic WAD that changed the weather and monsters depending on the real life time, what's the point? Those of us who only play Doom at night because of work or whatever will never see the "morning" part of the WAD so we'd end up just ripping the script out and cheating to see it anyway. If you want doom to tell the time or something just buy a desk/wall clock. 

Re: ASC Date and Time Information functions
I think it culd have uses: it's be nice to see a night-time scene as the titlepic when I start up Doom at night etc but I don't really see it being much more than a gimmick in most circumstances - like a special mode available only on Christmas day or something. Didn't RotT do that?
However,
However,
Do it that way if you like but I think I'd just temporarily adjust my system clock.Cutmanmike wrote:Those of us who only play Doom at night because of work or whatever will never see the "morning" part of the WAD so we'd end up just ripping the script out and cheating to see it anyway.

- Cutmanmike
- Posts: 11352
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: ASC Date and Time Information functions
Doing that kinda ruins the gimmick though doesn't it? Oops missed this on Christmas and it's February now, time to adjust the clock AGAIN! 

Re: ASC Date and Time Information functions
Because ripping the scripts apart and cheating doesn't ruin the gimmick? 

- Cutmanmike
- Posts: 11352
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: ASC Date and Time Information functions
Yes, which is why I'd rather not see WADs that do this 

Re: ASC Date and Time Information functions
Maybe. I know Raptor did; but these special modes could also be triggered at any date through cheat sequences.Enjay wrote:like a special mode available only on Christmas day or something. Didn't RotT do that?
- Zhs2
- Posts: 1299
- Joined: Fri Nov 07, 2008 3:29 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Location: Maryland, USA, but probably also in someone's mod somewhere
- Contact:
Re: ASC Date and Time Information functions
I happily started a game of Tyrian 3 nights ago.
Code: Select all
*************************
Christmas detected.
Activate Christmas? [y/N]
*************************
Re: ASC Date and Time Information functions
Actually the original idea was to divide TITLEMAP several locations and show different locations at different times and on different days of the week. First, it is a little-fueled interest in a wad, secondly, it was a small-world-revealing function. I'm not going to release it by Christmas. As I say, It's Decorative element(but decoration is very important in my wad. Depends on the size of the plans he did not release: ( Must be more modest of course, but that's still part of TITLEPIC location I started doing

Skybox and same textures and models unfinished.

Skybox and same textures and models unfinished.