PoweredFloor mod overriding wire sprites, and general advice

Place to get help with not working mods / modding interface.
Theanderblast
Inserter
Inserter
Posts: 46
Joined: Fri Aug 19, 2016 2:48 pm
Contact:

PoweredFloor mod overriding wire sprites, and general advice

Post 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!
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: PoweredFloor mod overriding wire sprites, and general advice

Post 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.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: PoweredFloor mod overriding wire sprites, and general advice

Post 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.
Post Reply

Return to “Modding help”