Applied Energistics 2

Applied Energistics 2

137M Downloads

duplicate item stacks/ items not stacking properly

Mikecolle opened this issue · 31 comments

commented

Describe the bug

importing items causes a second "stack" of the same item, pulling the itmes out and manually reinserting them causes them to stack properly. this happened in the 1.18.2 version and is also happening in the 1.19.2 version as well now. this causes massive issues with autocrafting as it will say the items arent there despite them being there

How to reproduce the bug

import large amounts of items from automation

Expected behavior

items show in a single stack

Additional details

2023-11-03_10 49 10
2023-11-03_10 49 16
2023-11-03_10 49 21
2023-11-03_10 49 25

Which minecraft version are you using?

1.19

On which mod loaders does it happen?

Forge

Crash log

no crash

commented

Apparently, problem came from another mod (dungeon libraries). Closing.

commented

this is also leading to autocrafting not completing because its not recognizing the final item

commented

By chance I found something similar in my current ATM9 world. I isolated two item storage cells containing the two stacks of non-merging items, in my case both had "id: mysticalagriculture:inferium_essence" and "#c: ae2:i". One however additionally had one "tag" labeled "Picked: 1". So your assumption was correct for my case Mari023.

Edit: Just found another instance of the same problem with "id: tombstone:grave_dust". Same symptom, one stack (the larger one) has no NBT tags, the smaller one has the "Picked: 1" tag. Since both items could be mob drops I have a suspicion of mobs picking up items dropped into the world (e.g. zombies) leading to this problem. I also found this bug while searching online: FTBTeam/FTB-Modpack-Issues#4073 and wonder if they are somehow related.

In contrast to the original bug report picking up stacks and putting them back in does not fix the stacking issue.

In my opinion it would be helpful if you (Mikecolle) could provide us with a sample of your problematic discs. The way I did it was to find out which two item storage cells held the two non-merging stacks, put them in my player inventory, save the game and analyse the save file (level.dat) in NBTExplorer. To find the discs I took them out one by one and put them in a small ad-hoc-network containing only a power source, a ME drive and a terminal.

Finding out which mod set that tag will be more challenging though I guess.

commented

Can you provide a more detailed description of a minimal setup showing this behavior so a developer can try to reproduce it. Maybe then a specific special condition can be identified that causes this problem.

A few questions that came to my mind when reading this bug report:

  • What kind of storage is used?
    ** Is there enough free space in the storage at all times?
  • How is the automation set up?
  • How are items from the automation imported into the AE2 system?
    ** Pattern Provider? Import Bus? Interface?
    ** Do you have multiple import point running in parallel, i.e. multiple import busses (for performance reasons) on a single producer?
  • Is the AE2 system online all the time? Are there some power outages in between, perhaps due to the automation drawing too much power?

I also did not quite understand the part about autocrafting. Is your automation something that generates items by itself (i.e. some sort of cobblestone generator with an import bus) or is it something that gets used in a crafting recipe?

commented

duplicate items happen when there is a difference in NBT between the different stacks of the same item.
One way this can be caused by some other mod attaching empty NBT tags (which is different than no NBT at all)

commented

Good point. But why would only some generated items have those empty NBT tags? What also does not add up for me is the description of picking those items up manually and putting them back into the AE2 system that fixes item stacking. If I pick up items with empty NBT tags and put them back in I‘d expect that they would continue to not stack.

commented

Good point. But why would only some generated items have those empty NBT tags? What also does not add up for me is the description of picking those items up manually and putting them back into the AE2 system that fixes item stacking. If I pick up items with empty NBT tags and put them back in I‘d expect that they would continue to not stack.

Ah, I somehow missed this part

it could be that some mod attaches NBT to all items in the inventory, or removes empty tags (in this case the machines would produce stacks with junk NBT)

also because this is forge, it might also be caps instead of NBT? tho I am really not sure how those work


either way, we need the NBT data of the items or even better the NBT data of the storage cells (which contain the NBT of the items, but it won't get modify when picked up)

commented

everything is coming in from create to applied energistics through interfaces, its fine when using an import bus, its only on applied energistics as refined storage doesnt have this issue.

commented

Thanks for your world. I could not find any AE2 related item in your player inventory and therefore could not see any relevant data. Please locate the item storage cells that contain the relevant non-stacking items (both stacks!) and place the cells in your player inventory, then reupload your playerdata. Searching blindly in a non-familiar world is rather complicated.

commented

if you go to the "debug waypoint you can find my entire ae2 system
im not having the issue in my inventory its in ae2

commented

Thanks for your world. I could not find any AE2 related item in your player inventory and therefore could not see any relevant data. Please locate the item storage cells that contain the relevant non-stacking items (both stacks!) and place the cells in your player inventory, then reupload your playerdata. Searching blindly in a non-familiar world is rather complicated.

ive reuploaded the player data folder with the issue

commented

I have the same Issue with same items not stacking and items not being recognized for Crafting e.g Quartz is "missing" for autocrafts but I can use it normally in the terminal and also craft with it manually

commented

so with advanced tool tips shown the items have different serial numbers what could be changing this

commented

2023-12-20_18 52 27
2023-12-20_18 52 28

its only added to items in storage cells as replaceing the storage cells with drawers vaults and chests using busses does not cause this issue

Message #general

commented

The issue has been solved its only items being inserted through an me interface, items imported through a import bus are put into the system normally

commented

correction issue is linked to mega cells

commented

So no Mega cells and its fine?

commented

i swapped the drives from mega cells to regular ae2 drives and the issue goes away
but if i put the mega cells back in it starts up again

commented

ah okay I don't have that one

commented

So you mean the cells from AE2 Things?

commented

no, the mod is called mega cells

commented

im wondering if its something with all the addon cell mods
as the ae2 things cells do the same thing

commented

I found a thread talking about Dungeons Mobs not sure if you have it. Testing it now if thats the problem for me

commented

nope im running a completely custom pack been chasing this issue since our pack was 1.18.2, thought going to 1.19.2 would solve it as someone suggested but it didnt

commented

So you don't have the mod Dungeons Mobs?

commented

ISSUE SOLVED! remove Dungeon Libraries

commented

Nice, did you still have to remove all items manually?

commented

Nice, did you still have to remove all items manually?

i just used a creative power cell drive io and storage bus into a chest then imported the items into the system it removed the tags from dungon libraries when it put them in the chest

commented

Can you explain a bit better? As for now I can only make it work when I put items in my inv and re add them to the ME, exporting to a chest and importing does not fix. I have more than 3 million items :D