Posts: 1,668
Threads: 178
Joined: May 2018
Reputation:
17
Can I also add a light to a building design? Or is the light unique to street lights?
Posts: 1,299
Threads: 270
Joined: May 2018
Reputation:
65
11-02-2018, 09:21 PM
(This post was last modified: 11-02-2018, 09:24 PM by Haxus.)
I considered allowing real light-emitting lights on buildings but opted against it. However, street lights can be placed on existing building sites.
Also, artificial lights can be created using nav lights. They light up at night and they get a glow sprite. They don't blink or oscillate and they don't illuminate their surroundings.
Posts: 1,299
Threads: 270
Joined: May 2018
Reputation:
65
11-03-2018, 12:01 AM
(This post was last modified: 11-03-2018, 12:07 AM by Haxus.)
Critical Landscape Bug
A player added a landscaper and all the roads and landscapers on their planet disappeared.
This critical bug forced a late day update and server restart today. The problem is fixed.
Client updates were posted.
Servers were updated and restarted.
Posts: 9
Threads: 0
Joined: Oct 2018
Reputation:
0
woww, thank you so much! good job fixing it! I'm sorry that it caused the late day update.
what was causing the bug?
Posts: 1,299
Threads: 270
Joined: May 2018
Reputation:
65
Sorry for the short notice shutdown, 10 seconds. That was not intended. It wasn't THAT critical.
Posts: 1,299
Threads: 270
Joined: May 2018
Reputation:
65
11-03-2018, 12:27 AM
(This post was last modified: 11-03-2018, 12:30 AM by Haxus.)
The bug was caused by a collection of objects that was serializing its count using a byte. Once the count exceeded 255, it rolled over and only stored/transmitted the rollover amount. The collection contains all geological features plus bomb craters, roads and landscapers. The 8 bit count used to be sufficient because old style roads are not stored in that collection. Bomb craters are safely limited by throwing away the old ones when the max craters is reached, somewhere around 50 I think. I overlooked it when I put the new style roads in there.
You got lucky because you must have deleted some roads and/or landscapers today. In the backup from last night, your world only had two mesas and a chasm. It lost all your roads and landscapers plus two rivers. If the servers had restarted, that's what your world would have come back with. Since you deleted a few, the count went back below the magic 256 and they got saved properly in the backup I made just before this fix.
I updated that collection to use a 16 bit integer instead. I doubt if you add 65k roads.
Posts: 1,299
Threads: 270
Joined: May 2018
Reputation:
65
11-03-2018, 12:32 AM
(This post was last modified: 11-03-2018, 12:32 AM by Haxus.)
This bug may have bitten Ceruleas in the past. I seem to recall him whittling away a moon using landscapers and them all disappearing at some point. That would be consistent with this bug.
Posts: 9
Threads: 0
Joined: Oct 2018
Reputation:
0
wow, that's really amazing, I remember when I deleted two or three of them when I was first realising that the roads were coming back when the value was looping. but if I knew that it was looping before I did that I wouldn't have deleted them, so that is very lucky. thank you! I like hearing about the details of what was happening with it
it's a really big relief now for me that the bug is out of the way. it has been about a week now with just the one day that it was working again for some reason
thank you for fixing it!!