Please provide detailed instructions.
The error occurred on a friend's machine, not mine. Both of us runs Linux standalone version of factorio with the exact same set of mods yet it only happened on their machine. Sprite bugs have been inconsistent to reproduce, not just in this case, but in others too, for example:
- https://mods.factorio.com/mod/RenaiTransportation/discussion/6a186b75379e7ef76c065f00
- https://mods.factorio.com/mod/fulgora-orbital-defence/discussion/6a19f0569a33045e708db024
In both these threads, the mod author was unable to reproduce the error.
That's to say, I'm sorry, I cannot give a consistent reproducer that reproduces the error on all platforms. The best you can do is likely to follow this https://forums.factorio.com/129575 (which also means that the error will be consistent and checks enforced in 2.1)
Also note that the error happens, if it happens at all, at mod loading time, during sprite loading phase of the game, before the main menu appears.
I think it is caused by incompatibility with the RenaiTransportation.
That is not accurate.
The definition of imersite-asteroids-kr-quarry-drill tech is very clear:
{
name = "imersite-asteroids-kr-quarry-drill",
type = "technology",
icon = "__Krastorio2Assets__/icons/entities/quarry-drill.png",
icon_size = 512,
essential = false,
prerequisites = {
"kr-energy-control-unit"
},
unit = {
count = 1000,
time = 60,
ingredients = {
{ "production-science-pack", 1 },
{ "utility-science-pack", 1 },
{ "kr-advanced-tech-card", 1 },
}
},
effects = {
{ type = "unlock-recipe", recipe = "kr-quarry-drill" }
}
},
(Imersite-Asteroids_1.2.1/technology.lua)
Icon size = 512. And what is the size of the sprite?
$ file Krastorio2Assets_2.0.4/icons/entities/quarry-drill.png
Krastorio2Assets_2.0.4/icons/entities/quarry-drill.png: PNG image data, 64 x 64, 8-bit/color RGBA, non-interlaced
(https://github.com/raiguard/Krastorio2Assets/blob/main/icons/entities/quarry-drill.png)
The specified icon size 512 is illegal.
I do not mind including a fix, but you might need to provide it.
I can confirm that this was able to make the crash go away:
data.raw["technology"]["imersite-asteroids-kr-quarry-drill"].icon_size = 64