How could i increase the time of night ?

Posted:
Wed Aug 31, 2016 06:13
by linushsao
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.
Re: How could i increase the time of night ?

Posted:
Wed Aug 31, 2016 10:31
by KCoombes
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
Re: How could i increase the time of night ?

Posted:
Wed Aug 31, 2016 13:09
by BrandonReese
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
Re: How could i increase the time of night ?

Posted:
Wed Aug 31, 2016 14:41
by linushsao
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/2607i fellow that issue and do a little tweak with ABM,and it works!!
Re: How could i increase the time of night ?

Posted:
Wed Aug 31, 2016 18:59
by KCoombes
Thanks to BrandonReese for pointing that out - I don't keep up with the api enough.