Page 1 of 1

[boskid][2.0.47] crash to desktop when not using deepcopy for animation layers

Posted: Fri May 02, 2025 11:46 am
by Quezler
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:

Code: Select all

data.raw.pump["kr-steel-pump"].animations["north"].layers = {
data.raw.pump["kr-steel-pump"].animations["north"]
}
Ended up doing it like this, which does not crash to desktop:

Code: Select all

data.raw.pump["kr-steel-pump"].animations["north"].layers = {
table.deepcopy(data.raw.pump["kr-steel-pump"].animations["north"])
}
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:

Code: Select all

data.raw.pump["kr-steel-pump"].animations["north"] = {layers = {
data.raw.pump["kr-steel-pump"].animations["north"]
}}

Re: [boskid][2.0.47] crash to desktop when not using deepcopy for animation layers

Posted: Fri May 02, 2025 12:58 pm
by boskid
Thanks for the report. Starting from 2.0.48 there will be a data stage error raised in this scenario so i am considering this issue to be fixed.