Page 1 of 1

How could i increase the time of night ?

PostPosted: 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 ?

PostPosted: 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 ?

PostPosted: 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 ?

PostPosted: Wed Aug 31, 2016 14:41
by linushsao
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!!

Re: How could i increase the time of night ?

PostPosted: Wed Aug 31, 2016 14:42
by linushsao
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...^_^

Re: How could i increase the time of night ?

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