I'm trying to replace the vanilla Rail graphics.
I have the new rail images in these folders (All the vanilla images. Same names as vanilla):
Code: Select all
\Bio_Industries_1.0.0\graphics\entities\wood_products\curved-rail-concrete
\Bio_Industries_1.0.0\graphics\entities\wood_products\straight-rail-concrete
Code: Select all
require("prototypes.Wood_Products.demo-railpictures-concrete")
data.raw.item["straight-rail"].pictures = railpictures_concrete()
data.raw.item["curved-rail"].pictures = railpictures_concrete()
demo-railpictures-concrete
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.