Applied Energistics 2

Applied Energistics 2

156M Downloads

Duplication glitch using the ME System in All The Mods 7

AzuraxHD opened this issue ยท 4 comments

commented

Describe the bug

I have, on multiple occasions now duplicated items on a server using my ME System. These all happened after server crashes in which data was lost. It seems to me that when data is lost, the ME System stays how it was before the data loss, causing the potential duplication of items.
This, to my understanding, seems to cause the duplication of the items depending on if what I said is accurate, or if it is caused by something else in All The Mods 7 or AE2.

How to reproduce the bug

  1. Create a simple ME System
  2. Have items you want to duplicate in your inventory for an amount of item before you start the glitch
  3. Put the stuff in the ME System
  4. Hard crash the world to prevent progress from being saved (You might get unlucky and it saves)
  5. Go back in the world and if you see the stuff back in your inventory, it should also appear in the ME System

Expected behavior

Items appear both in the inventory and the ME System

Additional details

No response

Which minecraft version are you using?

1.18

On which mod loaders does it happen?

Forge

Crash log

Yeah, I can't force a crash on a server that isn't mine...

commented

Do you use ae2things DISKs in your system (instead of normal ae2 storage cells)?

No. I use the AE2 Cells

commented

Do you use ae2things DISKs in your system (instead of normal ae2 storage cells)?
AE2 stores the content of the cell in the NBT data of said cell, so it should behave similar to a chest, while ae2things DISKs store their items in an extra file, which might get saved earlier.

commented

We discussed this on Discord with the following result:

If a dupe results from data corruption caused by a crash during saving the world, we don't consider that an AE2 bug.

Sorry, but this is not something we can fix.

commented

From the description, I don't think this is something that we can fix. MC doesn't save atomically, hence crashing the server mid-save always has the potential to desync state, doesn't it? (player.dat contains the player inventory and is not saved at the same time as the chunk data).