Anonymous | Login | Signup for a new account | 2025-07-28 11:54 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002400 | Zandronum | [All Projects] Suggestion | public | 2015-08-10 17:39 | 2018-09-30 22:21 | ||||
Reporter | Hypnotoad | ||||||||
Assigned To | Dusk | ||||||||
Priority | normal | Severity | feature | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | 3.0 | Fixed in Version | 3.0 | ||||||
Summary | 0002400: Simple current date server variable that can be overwritten | ||||||||
Description | Following on from here:'http://zandronum.com/tracker/view.php?id=1853#c10622 [^]' I spoke to Torr about this last night and explained how kpatch already has a simple read only DDMMYY date variable in place. I proposed that a similar variable, but that isn't read only so that hosts can override it, should be added to Zandronum. Being able to override it allows individuals to overcome any attempt by some project to lock down their mod after a certain date. After speaking to Blzut3 who was the main opponent of being able to get the current time/date initially, he agrees that this server variable approach is okay since using getcvar is already indeterminate so it doesn't add additional determinism problems. | ||||||||
Attached Files | |||||||||
![]() |
||||||
|
![]() |
|
StrikerMan780 (reporter) 2015-08-25 23:36 edited on: 2015-08-25 23:37 |
I really don't think anyone is so stupid as to lock down their mod by date. And if they do, their loss by cutting off their own playerbase. Chances are if someone does that, it isn't a mod worth playing anyhow. |
Catastrophe (reporter) 2015-08-26 00:25 |
Yes. I have a working money system in-place for a certain mod, and it'd be nice to give automated discounts during halloween, christmas, etc. |
Dusk (developer) 2015-08-26 01:33 edited on: 2015-08-26 02:33 |
Here goes.. I added 3 new ACS functions to read in system time stuff:
The override mechanism takes the form of the CCMD acstime, which is an interface to the CVAR acstimestamp (so that it gets written to the ini):
Stuff for zspecial.acs/zdefs.acs:
The format parameter of strftime is naturally the format parameter of the real thing. (I'm supposing this is safe to just pass to the real strftime function unmodified.) This website seems like a pretty decent online strftime calculator. |
WaTaKiD (updater) 2015-08-26 02:26 edited on: 2015-08-26 02:41 |
this build can be used to test:'https://www.dropbox.com/s/64yvcfs32pf9ih0/zandronum-3.0-r150826-0225-85291ed-windows.zip?dl=0 [^]' |
Ivan (reporter) 2015-08-28 23:07 |
I used this simple test pk3 to test the features. All seem to work seamlessly offline and online.'https://www.dropbox.com/s/y21ary6qxale7ph/timetest.pk3?dl=0 [^]' |
cobalt (updater) 2015-08-30 20:53 |
Issue addressed by commit cbc13f76b8f1: Added ACS date and time functions SystemTime, GetTimeProperty and Strftime and added a ccmd to override the result value of SystemTime (addresses 2400) Committed by Teemu Piippo [Dusk] on Sunday 30 August 2015 23:43:28 Changes in files:
|
Dusk (developer) 2015-09-05 15:06 |
Was tested prior to merge |
This issue is already marked as resolved. If you feel that is not the case, please reopen it and explain why. |
|
Supporters: | Hypnotoad Catastrophe Monsterovich |
Opponents: | No one explicitly opposes this issue yet. |
![]() |
|||
Date Modified | Username | Field | Change |
2015-08-10 17:39 | Hypnotoad | New Issue | |
2015-08-10 17:41 | Blzut3 | Relationship added | related to 0001853 |
2015-08-25 23:33 | Dusk | Assigned To | => Dusk |
2015-08-25 23:33 | Dusk | Status | new => assigned |
2015-08-25 23:36 | StrikerMan780 | Note Added: 0013280 | |
2015-08-25 23:37 | StrikerMan780 | Note Edited: 0013280 | View Revisions |
2015-08-26 00:25 | Catastrophe | Note Added: 0013281 | |
2015-08-26 01:33 | Dusk | Note Added: 0013282 | |
2015-08-26 01:33 | Dusk | Status | assigned => needs review |
2015-08-26 01:36 | Dusk | Note Edited: 0013282 | View Revisions |
2015-08-26 02:26 | WaTaKiD | Note Added: 0013283 | |
2015-08-26 02:30 | Dusk | Note Edited: 0013282 | View Revisions |
2015-08-26 02:33 | Dusk | Note Edited: 0013282 | View Revisions |
2015-08-26 02:41 | WaTaKiD | Note Edited: 0013283 | View Revisions |
2015-08-28 23:07 | Ivan | Note Added: 0013302 | |
2015-08-30 20:53 | cobalt | Status | needs review => needs testing |
2015-08-30 20:53 | cobalt | Target Version | => 3.0 |
2015-08-30 20:53 | cobalt | Description Updated | View Revisions |
2015-08-30 20:53 | cobalt | Note Added: 0013336 | |
2015-09-05 15:06 | Dusk | Note Added: 0013423 | |
2015-09-05 15:06 | Dusk | Status | needs testing => resolved |
2015-09-05 15:06 | Dusk | Fixed in Version | => 3.0 |
2015-09-05 15:06 | Dusk | Resolution | open => fixed |
2018-09-30 22:21 | Blzut3 | Status | resolved => closed |
Copyright © 2000 - 2025 MantisBT Team |