Rendoe Posted November 29, 2016 Share Posted November 29, 2016 I picked "Day only" on the world customization. Well, I now regret it, is there any way to change it back to default? Or change it to have all: day, dust and night? I've tried: GetClock():SetSegs(day,dusk,night) via console. But however, it resets once the world is reloaded again. Is there a way to permanently change time segments (Day, Dust, Night)? Link to comment https://forums.kleientertainment.com/forums/topic/72124-permanently-change-time-segments-day-dust-night/ Share on other sites More sharing options...
Mobbstar Posted November 29, 2016 Share Posted November 29, 2016 (edited) You have to change the save file somehow, not the running world. World settings only get loaded after being set once, but you should be able to change them afterwards (at least the ones that don't actually rely on world-generating) EDIT: Try for k,v in pairs(GetWorld().topology.overrides.misc) do if v[1] == "day" then v[2] = "default" end end I'm not sure if it'll save, but it will change the "daytime" setting in the world metadata to default. Edited November 29, 2016 by Mobbstar Link to comment https://forums.kleientertainment.com/forums/topic/72124-permanently-change-time-segments-day-dust-night/#findComment-843065 Share on other sites More sharing options...
Rendoe Posted November 30, 2016 Author Share Posted November 30, 2016 (edited) 15 hours ago, Mobbstar said: You have to change the save file somehow, not the running world. World settings only get loaded after being set once, but you should be able to change them afterwards (at least the ones that don't actually rely on world-generating) EDIT: Try for k,v in pairs(GetWorld().topology.overrides.misc) do if v[1] == "day" then v[2] = "default" end end I'm not sure if it'll save, but it will change the "daytime" setting in the world metadata to default. Thank you! Greatly appreciated! It works, but you have to reload the world for it to take affect. If you still have time for me: is it possible to change (permanently) the seasons length and rain/lightning probability (to default etc)? I've tried: Quote GetSeasonManager():SetSpringLength(TUNING.SEASON_LENGTH_FRIENDLY_VERYLONG) GetSeasonManager():SetSummerLength(TUNING.SEASON_LENGTH_HARSH_DEFAULT) GetSeasonManager():SetAutumnLength(TUNING.SEASON_LENGTH_FRIENDLY_VERYLONG) GetSeasonManager():SetWinterLength(TUNING.SEASON_LENGTH_HARSH_VERYSHORT) But I'm not sure whether it worked or not. Edited November 30, 2016 by Rendoe Link to comment https://forums.kleientertainment.com/forums/topic/72124-permanently-change-time-segments-day-dust-night/#findComment-843310 Share on other sites More sharing options...
Mobbstar Posted November 30, 2016 Share Posted November 30, 2016 Just now, Rendoe said: is it possible to change (permanently) the seasons length and rain/lightning probability (to default etc)? The same code you've already used, just replace "day" with whatever else you want to change. Link to comment https://forums.kleientertainment.com/forums/topic/72124-permanently-change-time-segments-day-dust-night/#findComment-843376 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now