Page 1 of 1

[2.0.6] [quality] Save corruption when defining exactly 255 quality prototypes

Posted: Fri Oct 18, 2024 6:37 pm
by micromario
The following bloc of code in data stage will corrupt all your saves when loading them. Includes new saves.

Code: Select all

for i = 1, 249 do
    local quality = table.deepcopy(data.raw.quality.uncommon)
    quality.name = "quality-" .. i
    data:extend{quality}
end
10-18-2024, 13-36-41.png
10-18-2024, 13-36-41.png (222.23 KiB) Viewed 536 times
factorio-current.log
(200.81 KiB) Downloaded 46 times

Re: [2.0.6] [quality] Save corruption when defining exactly 255 quality prototypes

Posted: Sat Oct 19, 2024 12:23 am
by Rseding91
Thanks for the report. This is now fixed for the next release.