Minetest time?

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32
Location: Klach D'Kel Brakt, Canada

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: 1753
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
I'm brewing up some mods.
Github
Youtube
Twitter
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32
Location: Klach D'Kel Brakt, Canada

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: 4165
Joined: Mon Oct 03, 2011 17:58
Location: Blender Scene
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu May 17, 2012 14:31

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

( ͡° ͜ʖ ͡°)


<Jordach> :(
<JD-BFD> Server has been running for 455:22:55
<JD-BFD> (~Minetest@serveraddress) has quit (Quit: Game shutting down.)
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32
Location: Klach D'Kel Brakt, Canada
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32
Location: Klach D'Kel Brakt, Canada

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: 4165
Joined: Mon Oct 03, 2011 17:58
Location: Blender Scene
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.

( ͡° ͜ʖ ͡°)


<Jordach> :(
<JD-BFD> Server has been running for 455:22:55
<JD-BFD> (~Minetest@serveraddress) has quit (Quit: Game shutting down.)
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32
Location: Klach D'Kel Brakt, Canada

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
 

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

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
Moderator
 
Posts: 2853
Joined: Mon Aug 01, 2011 14:26
Location: France
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.
My mods and texture packs.
Tox ID: calinou@toxme.se
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 2 guests