Jump to content

Recommended Posts

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)?

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 by Mobbstar
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 by Rendoe
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...