RiceEmpress (talk | contribs) No edit summary |
RiceEmpress (talk | contribs) mNo edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Bluesky RSS Feed}} | |||
there is only rice | there is only rice | ||
HI i'm ruby! this is my testbed | HI i'm ruby! this is my testbed | ||
==Event Cycle== | ==Event Cycle== |
Latest revision as of 20:48, 5 June 2025
04 Jun 2025 02:23 +0000
NOISZ SL 3.623 is now available! This is also (mostly) a minor bugfix build. Thank you for playing! #NOISZ_SL
01 Jun 2025 18:28 +0000
Happy 🏳️🌈 PRIDE MONTH 🏳️🌈 everyone!! Check out our Girls Kissing Video Games NOISZ SL, PROJEKT GODHAND, and Chronal Chain! (kissing may be WIP but it's coming)
As a special bonus, everything at merch.anarch.games is 10% off this month with code "prideshirt"!
25 May 2025 14:47 +0000
4 days left to back the Chronal Chain KS! Grab our upcoming time-mangling shmup (with full voice acting!! and bonus extra stage DLC!) plus NOISZ goods like What plushies and the soundtrack collection! #ChronalChain #NOISZ https://www.kickstarter.com/projects/noiszgame/chronal-chain
22 May 2025 04:45 +0000
NOISZ SL 3.621 is now available on Android and iOS! This version implements some balance and bugfixes related to ETERNAL CHAIN (which is now playable on Android). Thank you for your patience 🙏 #NOISZ_SL
[contains quote post or other embedded content]
18 May 2025 16:18 +0000
A lone hero stands at the end of the world... The flow of time begins to change, and a new adventure begins!
Use the power of Chrono Shift to blow away your foes and earn crowns--reach level 30 to unlock ETERNAL CHAIN! #NOISZ_SL #ChronalChain
16 May 2025 14:32 +0000
Chronal Chain jumped past its extra stage stretch goal! Thank you again for your support!
We'll post a more in-depth update soon, but we've been hard at work to set up a final push for this campaign, including a special preview in NOISZ SL. Stay tuned! https://www.kickstarter.com/projects/noiszgame/chronal-chain
14 May 2025 17:03 +0000
NOISZ reCG (Switch) 2.0 is now available! You can now play Final pt.1 with the SL link code, and with the addition of Stellar Linkage content, it's now an even better value than before...! #NOISZ
13 May 2025 01:17 +0000
NOISZ Final pt. 2 will launch in NOISZ SL later this year, with two versions. ⩙ is the finale of the NOISZ series and requires a link code from reV to unlock.
V is an alternate finale for SL that takes place after Ignition Story A and doesn't require a link code. #NOISZ_SL
04 May 2025 23:57 +0000
NOISZ SL 3.615 is now available. This version fixes a rare bug. We've also added TP sort for leaderboards. (For now, please consider this feature to be a bit of an extra as it doesn't have meaningful tiebreaks implemented.) #NOISZ_SL
there is only rice
HI i'm ruby! this is my testbed
Event Cycle
The countdown timers are all based on the countdown clock extension for Fandom. A typical template for the countdowns looks something like:
{{NOISZ SL Recursive Events|cyclestart=2023-03-15 04:00 +0000}}
Where cyclestart is a variable determining the beginning of an 8-week cycle. The widgets use this 8-week cycle to determine what events are currently running - or rather, how far it is into an 8-week cycle. Synthetic and Recursive events currently run on the same clock. If you look at the NOISZ SL Recursive Events, it may look daunting, but a lot of it is just text operations; the only variable here is the currenly running, event, seen in things such as {{CurrentNoiszSLEvent|cyclestart={{{cyclestart|}}}}}, {{EventCountdown|eventstyle=Nuclear Drip|cyclestart={{{cyclestart|}}}|countdown=True}} and {{EventTimeLeft|cyclestart={{{cyclestart|}}}}}. Note that {{{cyclestart|}}} sets a variable within the template, and whatever goes after the pipe at the end is set as the default for that variable if nothing is entered.
CurrentNoiszSLEvent uses that 8-week cycle to determine what events are running. EventCountdown uses the Countdown widget until a certain mark in that 8-week timer, and EventTimeLeft does the same, but for a mark 2 weeks after that.
If you look at CurrentNoiszSLEvent, it uses a case/switch statement depending on EventCycleTime, which returns how many seconds we are into an 8-week cycle.
EventCycleTime is simply: {{#expr:({{#time:U|now}} -{{#time:U|{{{cyclestart|2023-04-01 04:00 +0000}}}}})mod4838400}} ie, it looks at the time between now and any past date set as the beginning of a cycle, which is defined as the moment Recursive Event 01 goes live. It uses mod4838400 to divide that time elapsed by the total number of seconds in an 8-week cycle, and returns the remainder, which is how many seconds we are.
To recap, it does that, and CurrentNoiszSLEvent uses that time to determine where in an 8-week cycle we are in seconds; if we are less than 1209600 seconds into a cycle, which is two weeks, it determines the currently running Recursive Event is Attitude Mint. If it's more than that, the case switch moves onto the next statement, and so, if we're more than 1209600 seconds but less than 2419200 (4 weeks) in, then the current event is Blue Moon, and so on.
Countdown Clocks
EventTimeLeft
EventTimeLeftUnix: {{#expr:1209600 - {{EventCycleTime|cyclestart={{{cyclestart|}}}}}mod1209600}}
1042998
The countdown clocks for EventTimeLeft and EventCountdown use markers to count down to. EventTimeLeftUnix looks at how many seconds we are into a cycle and divides it by 1209600, and returns a remainder. It subtracts that from 1209600, the amount of seconds in two weeks; this returns the amount of seconds left in this mini 2-week cycle within the greater 8-week cycle.
EventTimeLeft is the countdown clock itself, and is:
<includeonly><span class="countdown" data-end="stop" data-callback="myFunction" data-options="short-format" style="display:none;">Ends: <span class="countdowndate">{{#time:r|@{{#expr:{{EventTimeLeftUnix|cyclestart={{{cyclestart}}}}} + {{#time:U|now}}}}}}</span></span>
The time it's counting down to is {{#time:r|@{{#expr:{{EventTimeLeftUnix|cyclestart={{{cyclestart}}}}} + {{#time:U|now}}}}}}, which adds the seconds left in the 2-week cycle that is a single event to the current time, and then counts down to it.
EventCountdown
EventTimeCountdownUnix looks at where we are in the 8-week cycle and accordingly counts down to the next 2-week marker using a case/switch. The "if time > 0" condition in there is to deal with the possibility that a date in the future was set to determine the 8-week cycle.
EventCountdown is the clock itself: {{#if: {{{countdown|}}} | <span class="countdown" data-options="short-format" style="display:none;" data-end="stop" data-callback="console.log('countdown ended!')">Starts: <span class="countdowndate">{{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|Attitude Mint}}}}} + {{#time:U|now}}}}}}</span></span> | Starts: {{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|Attitude Mint}}}}} + {{#time:U|now}}}}}}
}}
Where the time it counts down to is: {{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|Attitude Mint}}}}} + {{#time:U|now}}}}}}
This adds the time left until the next two-week marker to now, and tells the clock to count down to it. If nothing is defined, it decides the next style will be Attitude Mint.
Countdown clock end
If you look at the dev.fandom.com link above, you can see that a countdown clock ends many ways. One problem with the clocks currently is that the wiki does not update its own internal clock until something forces it to wake up, usually in the form of an edit or a null edit. Once an event ends, the event cycle doesn't update until null edits are made to the relevant pages, forcing it to recalculate everything.
If you look at the clocks' codes, you can see the "data-callback"; this calls the relevant Javascript function defined by this variable. The function is defined in MediaWiki/Common.js. EventCountdown is where it's properly used; you can see it uses the "selfNullEdit" defined in common.js, where the function finds the element with id "ca-null-edit" - the Null Edit Button - and clicks it using jQuery.