Event_DayCycle
What does this mod do?
It adds four events which should've been default as-per v21.
- dayCycleOnDay
[0]dayCycleOnDusk
- dayCycleOnMidnight
[0]dayCycleOnNoon.
You can use these input events to cause events to happen throughout the day (requires DayCycles to be enabled in the environment settings GUI.)
Modders: This tool adds callbacks for all the events mentioned above! You can simply package onDay, onDusk, etc, and have those be triggers for scripts! Simply force this add-on. Also, you should read the code. I commented 80% of all lines. An english-speaking monkey could understand it.
This mod now includes cats. This mod also does not allow for actual clocks to be built (12:34, for example). I may add this functionality in the future.
Report bugs here
V2 Hotfix:
- Removed debug messages. Oops.
V3:
- Added toggleable debug code.
If you experience issues with daycycles, such as crashing, do this:
Open a server with the mod enabled, and put this into your console: $DayCycles::Debug = 1;
Then, reproduce the problem.
Then, attach your console.log in this thread.
[0]Commented more lines.
V4:
- Is actually a change I made in V3. I didn't realize it would fix it, but it did, so I'm version whoring. Deal with it.
[0]What I did is I made my future-predictor work in smaller steps. not sure why this fixed it, judging by the rest of the system, but it did. I think.
V5:
- Fixed what V4 made worse: my sup3r c00l future predictor. The system will no longer cause servers to crash if the daycycle daylength is more than... oh, say, 100. >.<
V6:
- Changed event names from onX to dayCycleOnX for better grouping. The callbacks are still the same, as they are not 'grouped' anywhere. also because it just makes sense.
V7:
- ACTUALLY MADE V6 WORK
[0]Commented almost all of remaining lines.
- Fixed some logical errors
[0]Fixed some camelCase errors
V10:
- SKIPPED 3 VERSIONS FOR LOLS
[0]FIXED CRASHES
- FIXED EVENTS
[0]MADE FUTURE PREDICTOR WAY MORE EFFICIENT
- SYSTEM ACTUALLY WORKS NOW
V11:
- System now modifies brick list accordingly when /clearbricks is called.
[0]Placated Mold.
- Added version checker - you might get a little popup warning to download a new update.
V12:
- temporarily removed minigame target on events until i can make it compatible with dedicated servers
[0]ADDED CAT ART
- version system should be functioning
V13:
- fixed a bunch of crap i can't remember a long time ago
[0]fixed support for loading bricks
- removed remembemdermans
V14:
- oops - left a syntax error behind
V15:
- fixed goofs on V14 and 13, system is fully functional again. i should probably test stuff before releasing it
V16:
- I LIED IT DIDN'T ACTUALLY WORK
[0]fixed horrific typo