[boskid][2.0.47] crash to desktop when not using deepcopy for animation layers
Posted: Fri May 02, 2025 11:46 am
I was working on adding some layers to an entity so i had to grab the unlayered layer and convert it into the first and the game just went poof on me:
- disable space age & quality
- install krastorio 2
- add this in a data-final-fixes.lua:
Ended up doing it like this, which does not crash to desktop:
Reporting it since crashes to desktop are bad.
Edit: boskid made me realize i should have used this, but it's still bad it crashed to desktop without a log in the way that it did:
- disable space age & quality
- install krastorio 2
- add this in a data-final-fixes.lua:
Code: Select all
data.raw.pump["kr-steel-pump"].animations["north"].layers = {
data.raw.pump["kr-steel-pump"].animations["north"]
}
Code: Select all
data.raw.pump["kr-steel-pump"].animations["north"].layers = {
table.deepcopy(data.raw.pump["kr-steel-pump"].animations["north"])
}
Edit: boskid made me realize i should have used this, but it's still bad it crashed to desktop without a log in the way that it did:
Code: Select all
data.raw.pump["kr-steel-pump"].animations["north"] = {layers = {
data.raw.pump["kr-steel-pump"].animations["north"]
}}