I have the following issue when trying to implement back_patch and front_patch in my mod Vanilla Loaders HD:
I have the exact same images, exact same code as the vanilla Underground belt: https://imgur.com/a/DDtGCBv
Relevant code excerpt from Vanilla Loaders HD:
Code: Select all
-- Add back flange beneath items on the belt
loader.structure.back_patch =
{
sheet =
{
filename = "__vanilla-loaders-hd__/graphics/entity/loader/loader-structure-back-patch.png",
priority = "extra-high",
width = 96,
height = 96,
hr_version =
{
filename = "__vanilla-loaders-hd__/graphics/entity/loader/hr-loader-structure-back-patch.png",
priority = "extra-high",
width = 192,
height = 192,
scale = 0.5
}
}
}
-- Little piece of texture that extends into territory occupied by items while on belt, but rendered beneath them.
loader.structure.front_patch =
{
sheet =
{
filename = "__vanilla-loaders-hd__/graphics/entity/loader/loader-structure-front-patch.png",
priority = "extra-high",
width = 96,
height = 96,
hr_version =
{
filename = "__vanilla-loaders-hd__/graphics/entity/loader/hr-loader-structure-front-patch.png",
priority = "extra-high",
width = 192,
height = 192,
scale = 0.5
}
}
}
Code: Select all
back_patch =
{
sheet =
{
filename = "__base__/graphics/entity/underground-belt/underground-belt-structure-back-patch.png",
priority = "extra-high",
width = 96,
height = 96,
hr_version =
{
filename = "__base__/graphics/entity/underground-belt/hr-underground-belt-structure-back-patch.png",
priority = "extra-high",
width = 192,
height = 192,
scale = 0.5
}
}
},
front_patch =
{
sheet =
{
filename = "__base__/graphics/entity/underground-belt/underground-belt-structure-front-patch.png",
priority = "extra-high",
width = 96,
height = 96,
hr_version =
{
filename = "__base__/graphics/entity/underground-belt/hr-underground-belt-structure-front-patch.png",
priority = "extra-high",
width = 192,
height = 192,
scale = 0.5
}
}
}
Edit: I've attached the work-in-progress version of my mod, and the save file I use to test/troubleshoot. There are other associated mods but they can be grabbed from the mod portal, and technically speaking are not strictly necessary.