[Mod] Realtime Daytime [system_time]

[Mod] Realtime Daytime [system_time]

Postby JTE » Thu Mar 28, 2019 6:11 pm

This exceedingly simple mod does precisely one thing: It ensures the in-game clock (sun position) always matches your server's system time clock.

Checks and corrects the time every 30 seconds while enabled. This fixes desynchronizations caused by server lag, singleplayer pause menus, or leap seconds, and looks really funny when DST changes. Does not respect admin commands or other mods changing the time, and currently does not create a config option to disable itself.

License: CC0

Dependencies: Minetest 5.0.0+ only, at the moment.
No mod dependencies, of course.

[ Download ]

Code / Git: https://github.com/Yukitty/minetest-system_time
JTE
Member
 
Posts: 17
Joined: Sun Sep 07, 2014 2:59 pm
GitHub: Yukitty

Re: [Mod] Realtime Daytime [system_time]

Postby Festus1965 » Thu Mar 28, 2019 6:16 pm

ha, nice Idea ...,
make people easier realize server is other side of planet ...
but when I imagine 12 hours night and monsters ... and no plant grow ?
or I miss understand ?
Festus1965
Member
 
Posts: 825
Joined: Sun Jan 03, 2016 11:58 am
In-game: Thomas Explorer

Re: [Mod] Realtime Daytime [system_time]

Postby StarNinjas » Thu Mar 28, 2019 6:21 pm

sounds crazy!
StarNinjas
Member
 
Posts: 264
Joined: Wed Mar 14, 2018 12:32 am
GitHub: starninjas
In-game: J1

Re: [Mod] Realtime Daytime [system_time]

Postby JTE » Thu Mar 28, 2019 6:25 pm

You're correct, there would be 12 hours of night time, monsters, and no farming, in most games and modpacks, and you wouldn't be able to use a bed in-game to skip it because it would just get synched back to night time.

I'm planning to use it for a game that was designed with it in mind, so time of day won't be a problem. :)
JTE
Member
 
Posts: 17
Joined: Sun Sep 07, 2014 2:59 pm
GitHub: Yukitty

Re: [Mod] Realtime Daytime [system_time]

Postby Festus1965 » Thu Mar 28, 2019 6:52 pm

but I like as on another reason, gamer would be forced to play on servers with daylight, if need food or use mesecon lights if enable,

so mean they will play on more similar time-zone servers if play during daylight to see the world in daylight, what goes in my direction offer World Map with Serverlocations forcing player to use more local servers,

or bad for night-shift work gamer using not local servers, if they ever wanna see the world in daylight ...

yeah, that offers some funny options ... to everyone

so next we need infrared night googles i guess ...
Festus1965
Member
 
Posts: 825
Joined: Sun Jan 03, 2016 11:58 am
In-game: Thomas Explorer

Re: [Mod] Realtime Daytime [system_time]

Postby sorcerykid » Thu Mar 28, 2019 8:45 pm

Correction: Daylight Saving Time
sorcerykid
Member
 
Posts: 1013
Joined: Fri Aug 26, 2016 3:36 pm
GitHub: sorcerykid
In-game: Nemo

Re: [Mod] Realtime Daytime [system_time]

Postby Fixer » Thu Mar 28, 2019 10:07 pm

I always loved this idea, but it has huuge downside, players play during certain hours, so they can end up with night/day/between only gameplay. Workaround: time shifts, or slightly shorter day.
Fixer
Member
 
Posts: 881
Joined: Sun Jul 31, 2011 11:23 am
In-game: Fixer

Re: [Mod] Realtime Daytime [system_time]

Postby JTE » Fri Mar 29, 2019 9:44 pm

Festus1965 wrote:so next we need infrared night googles i guess ...

My previous mod can help with that: Bright nights viewtopic.php?f=11&t=20078

Fixer wrote:Workaround: time shifts, or slightly shorter day.

I'm considering making a minetest.conf setting to change how many game days are in a real day. That way it could start at 1 and match 1:1, but you could change it to 4 and in-game you would get 3 hours of day time, then 3 hours of night time, at specific times of day (consistent even if you restart the server) 4 times a day.

But at the same time I am also reconsidering my choice of license, if that matters to anyone. Any update that makes this mod more complex might be better served under an ISC license instead of CC0. Humm. *shrug*
JTE
Member
 
Posts: 17
Joined: Sun Sep 07, 2014 2:59 pm
GitHub: Yukitty

Re: [Mod] Realtime Daytime [system_time]

Postby sofar » Fri Mar 29, 2019 10:29 pm

I hope you realize that you can `/set time_speed 1` to get an almost identical speed of time, especially if you follow it up with `/time <localtime>`, right? Of course, you'd still have to sync when starting the server and occasionally to account for time slew.

I would not recommend "changing" the time. I would recommend "slewing" the time speed so that environment changes appear smooth, and uninterrupted. In other words: during daylight savings change hour, you'd set time_speed to 0 for an hour (for example) and if time is off by a few seconds, you'd apply that by slewing the time_speed for a few minutest to get rid of the delta again.
sofar
Developer
 
Posts: 2007
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar



Return to WIP Mods



Who is online

Users browsing this forum: Yandex Bot [Bot] and 0 guests