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

This subforum contains all the issues which we already resolved.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 184
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

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

Post 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"]
}}
Attachments
factorio-current.log
(3.24 KiB) Downloaded 23 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3884
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
Post Reply

Return to “Resolved Problems and Bugs”