@Rincevvind this means you tried to load an entirely broken texture. Is it a custom widget? If not, this error should not be thrown. Though it shouldn't be thrown when shutting down the game to begin with...
There's various ways to do this.
You could listen for the "nighttime" and "daytime" events to toggle between the modes. This would also require a simple clock check on loading. Refer to the "clock" component for more information, which gets added to the world if there's a day cycle.
Alternatively, you could periodically check for how dark the location is. I think the lightwatcher component does just this.
Not intimidating? I'm scared to death at thought of fighting it again. Especially anywhere near my Base. Notice the picture I posted above. Notice the lack of a pile of equipment I left outside of the chests.
On the plus side I found my backpack and chef pouch still on the island. Even managed to find a hammer at sea but the rest? Missing.
Poison for the first few times.
Starvation for when I tried Wolfgang in SW.
Wildbores for 1 horrible start to a webber run(surrounded by bores from day 1. Ouch.)
Last dry season after being so close to dry season's end and almost nailing it...a rock smoshed me when I tried to protect my chests in the slot machine island from being burnt.