Open Zieg777 opened 8 years ago
It seems to be happening about a minute or so after the chunks are unloaded. It won't happen around spawn or anywhere where chunks are kept loaded (mine in pocket dimensions have never had an issue).
I put console debug text in to try to figure it out. In PowerNodeRegistry.java, unloadChunk happens when you leave the nether, and if you go back right away, the battery still has power. SaveChunkToNBT happens a little while later (around a minute I think, which is about the time I thought chunks actually unloaded when you leave the portal?), and when I see that and go back in, the batteries are now reset to 0 and all the links are broken.
The ones I have outside the portal never lose power or link, because they are near spawn (which is automatically chunkloaded).
Also, this is with no other mods.
More info: If you shut the server down with the area chunk loaded, it will add the things to the power registry, and after that it will save their data from then on. If you leave the area and it comes unloaded, it will not be permanently saved. In other words, it only saves the information for things that are loaded or are already in the list, and they don't seem to be added to the list when you simply unload the chunks by leaving the area.
A workaround for players would be to link all the devices you want to work properly or have some power in them, and stay in the area while you shut the server down (or just exit normally in single player). When it comes back, the information should be ok and it seems like it continues to work from then on, at least on this dev version. Moving things will probably break it again. /save-all doesn't seem to count.
im having the same problem. im playing on a server with multiple mods and even with chunk loaders my batteries are losing link and charge. the server resets once per day and this doesn't not always reset the batteries but sometimes it does. also as mentioned in the above post leaving the area (via portal or teleport) seems to cause them to reset if you are gone from the overworld for any longer length of time.
I know that there were some changes made to the power system, but I still find that batteries lose their power. Even while using the newest version from github. Seems to be related to: changing dimension, or logging out, exiting minecraft. I'm in Single Player if that makes a difference.
It doesn't seem to happen as often, but still does happen. Might be related to larger networks. I have to resync all my flicker setups every so often. Mostly annoying because light etherium takes so long to charge (I've got 2 with diamond caps, one with moonstone)