Open ExtraUtils2 - Grid Power duplication on SSP log out + log in

  • This section is closed. Please do bug reports over at the FTB GitHub repos.
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

MirrorImage

New Member
Jul 29, 2019
6
0
0
Summary of the problem ExtraUtils2 - Grid Power duplication on SSP log out + log in

Pack Version 3.0.6

What is the bug? In SSP, when you log out of a world and log back in without first closing Minecraft entirely, it is quite likely that any existing GP producers or consumers will reapply their numbers to the global GP usage for the player. Destroying the objects that initially produced GP only refunds the GP of a single instance, resulting in "duplicated" GP reserves and GP used.

Idle Speculation: For some reason, GP producers and consumers are not correctly being cleared out of the application state when the world state is destroyed while still saving them to the save. On reload, the world save's GP usage is combined with the application state, resulting in duplication. On future saves, this application state containing duplicated GP is resaved back to the world save, and potentially reloaded again for more duplication.

This duplication can also cross between saves. Shortly after trying the steps listed below (is it repeatable?), I also created a second world (without restarting MC first) and ended up starting with several hundred GP produced and consumed immediately.

EDIT: Also, the various producers and consumers sometimes seem to keep their properties if they generate a variable amount. On one of my worlds, I ended up having very little GP at night or in rain but an extremely large amount during the day - I apparently have several thousand Solar Panels duplicated on that world causing that.

Mod & Version ExtraUtils2 : extrautils2-1.10.2-1.1.3d

Link to log file

Is it repeatable? Yes

1) Create new Skyfactory 3.0.6 profile
2) Create new Creative world. Trash can all of the starting items. Clear and build a suitably sized platform (9x9 more than enough) for placing some items.
3) Place 4 EU2 Solar Panels (Grid Power: 0/4)
4) "Save and Quit to Title"
5) Reload the same save. Check power usage (Grid Power: 0/8)
6) Repeat 4+5 (Grid Power: 0/12)
7) Repeat 4+5 again. The duplication does not happen this time (Grid Power: 0/12)
8) Please 4 more Solar Panels and repeat 4+5 a few more times. Sometimes, all of the solar panels will contribute duplicated GP. Other times, only some will.

Also tested with:
Water Mills
Transfer Nodes + World Mining Upgrade (causes duplication of the 10GP power drain of the upgrade)

Additional Duplication can occur when switching between different saves without closing and reopening Minecraft (i.e. in the same instance)

Known Fix When logging out of MC, always fully shut down the Minecraft application before relogging.
 
Last edited: