Changing pipe-to-ground lines

Place to get help with not working mods / modding interface.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Changing pipe-to-ground lines

Post 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 37 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
}
Bilka
Factorio Staff
Factorio Staff
Posts: 3464
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Changing pipe-to-ground lines

Post 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
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Changing pipe-to-ground lines

Post 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.
Bilka
Factorio Staff
Factorio Staff
Posts: 3464
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Changing pipe-to-ground lines

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Modding help”