Electric Tiles


Adds conductive floor tiles that transmit power to adjacent tiles (including diagonals) and any structure on top of them, just place a power source or electric pole on top and enjoy the extra space!

Content
a month ago
2.0
1.90K
Power

b Connection issues

3 days ago

This one's a heisenbug, unfortunately: sometimes part or all of a tile network break when placing them down with bots or loading a save. I think what's happening is that the networks are failing to check for new power poles unless the tile network is directly updated, but don't quote me on that. Either way, removing one of the tiles via bot and then waiting a few seconds fixes things, but not always and not always on the entire tile network.

3 days ago

Hmmmmmm, its supposed that the mod detects the bots actions, however, saving and reloading a save could probably be the problem.

The mod doesn't save the tiles in a "perfect" way... It just stores their data for a little moment before updating the electric grids.

By saving and reloading the save, the tiles that were previously supposed to be processed by the mod get erased from memory.

... I could make a simple modification, so the tiles that are being considered to be updated also get saved in a more persistant memory.

3 days ago

But the other problem here is that, If someone is placing huge numbers of tiles, then the mod will need to store all that data, which could result in big memory usage.

A simplier solution could be processing the tiles just before closing the game/save, or before saving.

I'll take a look at factorio's event handlers, maybe there is an event for that, there should be.

New response