Page 1 of 1

PoweredFloor mod overriding wire sprites, and general advice

Posted: Fri Jun 09, 2017 2:48 pm
by Theanderblast
I've just submitted my first mod, PoweredFloor, to the mod portal.

It gives you tiles which power assemblers, inserters, etc. which sit on top of them, also special tiles which pass circuit signals to neighbors, also a power tap which lets you feed signals and power to these tiles.

Image

It seems to function as I want it too, though I realize my artwork is a little crude. One annoyance is the automatic wire placement. Vertically, they look ok, but horizontally, they look festooned, which is odd. I'd like to just hide the wires altogether. I looked at some posts about overriding sprites, but I want to leave the wire sprites for the normal electric-pole entities the same.

I'd be grateful for advice about my code - this is my first effort in lua!

Thanks!

Re: PoweredFloor mod overriding wire sprites, and general advice

Posted: Fri Jun 09, 2017 3:14 pm
by darkfrei
Please add links.

Re: PoweredFloor mod overriding wire sprites, and general advice

Posted: Fri Jun 09, 2017 6:28 pm
by Theanderblast

Re: PoweredFloor mod overriding wire sprites, and general advice

Posted: Fri Jun 09, 2017 7:54 pm
by TheSAguy
I don't think it's possible to hide the copper wire, except to remove it from all poles and that won't work.
I had a request here, but it only allow you to switch out the wire on all entities, not just custom/hidden ones.

I wanted to do this with my Power railand Solar floor.

Re: PoweredFloor mod overriding wire sprites, and general advice

Posted: Fri Jun 09, 2017 10:09 pm
by darkfrei
I think that it's possible to delete first pixels in this picture and set connection point to 10000 .x and .y
Then you can't see the wire first thousands meter, but then you can get it back.