Minetest time?

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

Minetest time?

by mauvebic » Thu May 17, 2012 00:20

I basically know very little of how time works in minetest. basically if i want daylight i do /time 6000 or /time 0 for night.

Im assuming each unit is a second. How long is a day?

I have things that grow, and these things need to grow faster than the seasons change (obvs).
my nature growing intervals are set at 1200 (used to be 3600), and the seasons are set to change at every 1500 (using minetest.after). I tried setting the timer to something higher like 3600 but nothing happened. is there a limit to timers?

Im not really crazy about winter knocking at my door when wild flowers and plants *just* grew.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu May 17, 2012 12:29

it's military time with an extra 0
If you can think it, you can make it.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Thu May 17, 2012 13:11

so a minetest day is 2400 intervals?
"Fuck the hat." - Paulie Gualtieri
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu May 17, 2012 14:31

Yes, but, why dont you use sleep timers instead.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Thu May 17, 2012 14:59

"Fuck the hat." - Paulie Gualtieri
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Thu May 17, 2012 15:00

buuut that gives me an idea: im already storing season info in a seperate file, i could store os.time too and make my own lua timer... thanks! :-)
Last edited by mauvebic on Thu May 17, 2012 15:00, edited 1 time in total.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu May 17, 2012 15:02

I remember that trick from another seasons mod. Someone tried and made everything lag like hell.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Fri May 18, 2012 12:25

well... minetest.after 1500 seems to work w/o lag so ill leave it like that and just store the season in a seperate file.

I took a look at the other seasons mod, honestly i couldnt understand how / if it worked. the scopes for the file read/write functions were wrong.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
Mallot1
Member
 
Posts: 85
Joined: Wed Jun 27, 2012 04:38

by Mallot1 » Tue Jul 17, 2012 02:58

/time 7000:day
/time 0: night
 

User avatar
Stef
Member
 
Posts: 394
Joined: Wed Apr 04, 2012 10:46

by Stef » Tue Jul 17, 2012 05:57

I use /time 5000: sun comes up
Sorry for my crappy english, im dutch :D
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Tue Jul 17, 2012 08:57

/time 6000
^ day
/time 22000
^ night

/set time_speed 72
^ time speed, 72 is the default. 1 = a day/night cycle is 24 hours, 360 = 4 minutes, 0 = no cycle.
 

cimbakahn
Member
 
Posts: 36
Joined: Sat Aug 29, 2015 20:03
IRC: cimbakahn
In-game: cimbakahn

Re: Minetest time?

by cimbakahn » Tue May 17, 2016 01:49

I do
/time 12000
and
/set time_speed 0
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 36 guests

cron