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

This subforum contains all the issues which we already resolved.
User avatar
micromario
Fast Inserter
Fast Inserter
Posts: 118
Joined: Thu Apr 05, 2018 11:53 am
Contact:

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

Post 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 500 times
factorio-current.log
(200.81 KiB) Downloaded 40 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16282
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”