Page 1 of 1

Changing pipe-to-ground lines

Posted: Tue Apr 30, 2019 11:24 am
by DaveMcW
I am trying to change the underground lines graphic for a modded pipe-to-ground. Why doesn't it work?

underground-lines-test_0.0.1.zip
(1.72 KiB) Downloaded 38 times

Code: Select all

data.raw["pipe-to-ground"]["pipe-to-ground"].underground_sprite = {
  filename = "__underground-lines-test__/underground-lines.png",
  height = 64,
  priority = "extra-high-no-scale",
  scale = 0.5,
  width = 64
}

Re: Changing pipe-to-ground lines

Posted: Tue Apr 30, 2019 11:36 am
by Bilka
That's not a property of the pipe-to-ground prototype: https://wiki.factorio.com/Prototype/PipeToGround

Try ["utility-sprites"]["default"].underground_pipe_connection

Re: Changing pipe-to-ground lines

Posted: Tue Apr 30, 2019 12:36 pm
by DaveMcW
You should remove the property from demo-entities.lua then. :P

Does ["utility-sprites"]["default"].underground_pipe_connection change every connection? I only want it to apply to my modded pipe.

Re: Changing pipe-to-ground lines

Posted: Tue Apr 30, 2019 1:32 pm
by Bilka
DaveMcW wrote: Tue Apr 30, 2019 12:36 pm You should remove the property from demo-entities.lua then. :P
Already done :)
DaveMcW wrote: Tue Apr 30, 2019 12:36 pm Does ["utility-sprites"]["default"].underground_pipe_connection change every connection?
Afaik yes.