After server restart all of my powerless industrial conveyors are powered off and cannot be turned onFixed

After a server restart powerless industrial conveyors are powered off and cannot be turned on. I am able to interact with the power and pipe connections be the interaction prompt to turn them on is not available. I can force them to power on by sending power to the turn on input and the interaction options are availabe again. It also appears that when the are powered externally they come through a reboot without an issue.       

Thanks for reporting this issue. I reproduced it, and found that it also happens with the industrial crafters. I determined that it was caused by my recent update to automatically remove power from entities when the plugin is unloaded (also applies to when the server is shut down). Removing power from these industrial entity types makes the game switch them off, which briefly sets them to "busy" (disables interaction) to provide clearer feedback to the player. The issue is, there isn't enough time for the game to switch the entity back on before the server shuts down, so the entity gets stuck in the "busy" state. A secondary problem is that the game doesn't remember that they wanted to be on because it doesn't save that state to disk.

I've opted to make the simplest change possible, which is to just not remove power from those specific entity types if the plugin is being unloaded during a server reboot. Please beta test by downloading the plugin from the following link.

https://github.com/WheteThunger/PowerlessElectronics/blob/master/PowerlessElectronics.cs

So far so good, tested it on one server and no errors compiling and everything is working well after a server restart. 

Agreed.  This worked for our server as well!  Thanks for helping us keep the lights on!  #FirmHandshakes

Hello guys - is the beta on github still beta?

because i started using the plugin yesterday - and all lights turned off after server restart:(

for me it was ceiling lights and industrial lights.

The fix was released, and it is not related to lights. Not sure what's causing your issue.

Thanks for the quick reply.

I think i have a theory - can you confirm it please.

I put lights on with the powerless plugin permissions - then i took away the permission from my self and restarted the server.

when the server booted - the lights were not on anymore - so i guess the entities deployed with the permissions on are binded behind permissions to that same guy that deployed them? so if i take away his permission - lights will no longer be "power free" ?

Yes, thats correct. If you revoke permissions, the free-powered entities will lose their free power when the plugin reloads. All free power is revoked when the plugin unloads (on server shutdown) and the power is simply not restored when the plugin loads again later (on server startup) due to the owner player not having permission at that time.

Locked automatically