How could i increase the time of night ?

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

How could i increase the time of night ?

by linushsao » Wed Aug 31, 2016 06:13

Hi,all
i try to make a world of (almost)Night,so how could i increase the time of night and decrease the time of day?

tks for your suggestions.
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: How could i increase the time of night ?

by KCoombes » Wed Aug 31, 2016 10:31

As far as I know, those are hard-coded in the engine, so unless you know C++ and can edit the source code, there's no changing it.

Would be a fantastic option though XD
 

User avatar
BrandonReese
Member
 
Posts: 836
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese

Re: How could i increase the time of night ?

by BrandonReese » Wed Aug 31, 2016 13:09

Maybe look at override_day_night_ratio. I've never used it but it sounds like it could be the right thing.

https://github.com/minetest/minetest/bl ... .txt#L2818
 

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

Re: How could i increase the time of night ?

by linushsao » Wed Aug 31, 2016 14:41

BrandonReese wrote:Maybe look at override_day_night_ratio. I've never used it but it sounds like it could be the right thing.

https://github.com/minetest/minetest/bl ... .txt#L2818


BrandonReese,tks for your tips,"override_day_night_ratio" seems to be the key to adject the ratio of Night/Day. i alsao find that issue: https://github.com/minetest/minetest/issues/2607

i fellow that issue and do a little tweak with ABM,and it works!!
 

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

Re: How could i increase the time of night ?

by linushsao » Wed Aug 31, 2016 14:42

KCoombes wrote:As far as I know, those are hard-coded in the engine, so unless you know C++ and can edit the source code, there's no changing it.

Would be a fantastic option though XD


tks for your reply...^_^
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: How could i increase the time of night ?

by KCoombes » Wed Aug 31, 2016 18:59

Thanks to BrandonReese for pointing that out - I don't keep up with the api enough.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 16 guests

cron