ASC Date and Time Information functions

Moderator: GZDoom Developers

Post Reply
Dethernal
Posts: 46
Joined: Tue Feb 10, 2009 5:40 am

ASC Date and Time Information functions

Post by Dethernal »

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.
User avatar
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

Post by Project Shadowcat »

Already suggested, already [No]'d.
Dethernal
Posts: 46
Joined: Tue Feb 10, 2009 5:40 am

Re: ASC Date and Time Information functions

Post by Dethernal »

Hmmm... I cannot find a topic with this suggestion. Where is it? I was just wondering the reason why not.
User avatar
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

Post by Project Shadowcat »

Dethernal wrote:Hmmm... I cannot find a topic with this suggestion. Where is it? I was just wondering the reason why not.
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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ASC Date and Time Information functions

Post by Graf Zahl »

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.
Dethernal
Posts: 46
Joined: Tue Feb 10, 2009 5:40 am

Re: ASC Date and Time Information functions

Post by Dethernal »

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.
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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ASC Date and Time Information functions

Post by Graf Zahl »

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.
User avatar
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

Post by Cutmanmike »

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. :P
User avatar
Enjay
 
 
Posts: 26979
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: ASC Date and Time Information functions

Post by Enjay »

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,
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.
Do it that way if you like but I think I'd just temporarily adjust my system clock. ;)
User avatar
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

Post by Cutmanmike »

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! :?
User avatar
Enjay
 
 
Posts: 26979
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: ASC Date and Time Information functions

Post by Enjay »

Because ripping the scripts apart and cheating doesn't ruin the gimmick? ;)
User avatar
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

Post by Cutmanmike »

Yes, which is why I'd rather not see WADs that do this :yup:
Gez
 
 
Posts: 17939
Joined: Fri Jul 06, 2007 3:22 pm

Re: ASC Date and Time Information functions

Post by Gez »

Enjay wrote:like a special mode available only on Christmas day or something. Didn't RotT do that?
Maybe. I know Raptor did; but these special modes could also be triggered at any date through cheat sequences.
User avatar
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

Post by Zhs2 »

I happily started a game of Tyrian 3 nights ago.

Code: Select all

*************************
Christmas detected.
Activate Christmas? [y/N]
*************************
Dethernal
Posts: 46
Joined: Tue Feb 10, 2009 5:40 am

Re: ASC Date and Time Information functions

Post by Dethernal »

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
Image
Skybox and same textures and models unfinished.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”