railpictures_concrete = function()
return railpicturesinternal_concrete({{"metals", "metals"}, {"backplates", "backplates"}, {"ties", "ties"}, {"stone_path", "stone-path"}})
end
railpicturesinternal_concrete = function(elems)
local keys = {{"straight_rail", "horizontal", 64, 64},
{"straight_rail", "vertical", 64, 64},
{"straight_rail", "diagonal", 64, 64},
{"curved_rail", "vertical", 128, 256},
{"curved_rail" ,"horizontal", 256, 128}}
local res = {}
for _ , key in ipairs(keys) do
part = {}
dashkey = key[1]:gsub("_", "-")
for _ , elem in ipairs(elems) do
part[elem[1]] = {
filename = string.format("__Bio_Industries__/graphics/entities/wood_products/%s-concrete/%s-%s-%s.png", dashkey, dashkey, key[2], elem[2]),
priority = "extra-high",
width = key[3],
height = key[4]
}
end
res[key[1] .. "_" .. key[2]] = part
end
res["rail_endings"] = {
sheet =
{
filename = "__base__/graphics/entity/rail-endings/rail-endings.png",
priority = "high",
width = 88,
height = 82
}
}
return res
end
But I must be missing something, since the vanilla graphic is still in place.
Thanks.
EDIT: I just re-created the entities and that worked. Not sure why the above did not though.
Re: Vanilla Graphic over-ride
Posted: Fri Jun 24, 2016 9:29 am
by bobingabout
I think it's one of those cases of "You're doing it wrong".
Don't get me wrong, I don't see the error in what you're doing, but I have had a similar experience before.
My ores mod for example, one of the things I was changing was the autoplace tag on resources.
No matter what I did, my changes were effectively ignored. I made several small changes over and over again, and even re-wrote the whole thing twice from scratch... until... It just works, and I have no idea what I even did differently.
Both the working, and nonworking versions include the data.raw.resource[resource].autoplace = <new data> line.
Re: Vanilla Graphic over-ride
Posted: Fri Jun 24, 2016 1:34 pm
by TheSAguy
bobingabout wrote:I think it's one of those cases of "You're doing it wrong".
Don't get me wrong, I don't see the error in what you're doing, but I have had a similar experience before.
.
I'm my case, it's always something I'm doing wrong.
Well I found the error... so obvious. Rail entity is not an item...