refinedmods / refinedstorage

An elegant solution to your hoarding problem.
https://refinedmods.com/refined-storage
MIT License
362 stars 177 forks source link

Refined Storage Importer not importing from non-vanilla storage #3731

Closed RyanMillerGames closed 2 months ago

RyanMillerGames commented 2 months ago

Describe the bug

When I connect an importer to other mod storage objects (such as any chest from Iron Chests, or a counter from Macaw's furniture), it will not pull items from it. However if I swap the storage container with a vanilla container such as a chest or barrel, it will immediately work.

I've checked the filters, they are on blacklist mode, with nothing blacklisted, I've tried it with a range of vanilla objects inside of the containers, such as saplings, dirt blocks, etc, and there's plenty of space in the computer, as well as infinite power (using a creative controller).

I created a single player world with only the mods "Iron Chests" and Refined Storage on it to isolate it, and it still occurred.

I have used importers before many times, so I know I am putting the importer "into" the container. In fact, I noticed this issue in the first place because I was updating my private server from 1.19.2 to 1.20.4 which had a functional importer into an obsidian chest from "Iron Chests" and I noticed it stopped working, even though I've used it dozens of times before this update.

I tried making the importer connection directly, as well as swapping out the working vanilla chest for a mod chest, and vice versa. The modded storage is always ignored.

How can we reproduce this bug or crash?

  1. Install any mod with other storage containers (Iron Chests as an example)
  2. Create a functional computer system using Refined Storage that can pull from a vanilla chest
    • Creative Controller (I also usually have my config set to not use power at all)
    • 4k storage block (I've tried it with disk drives and other storage blocks, same issue)
    • Grid (Also tried with a crafting grid)
  3. Replace the vanilla chest with the modded storage container
  4. Observe bug

What Minecraft version is this happening on?

Minecraft 1.20.4

What Forge version is this happening on?

NeoForge 20.4.237

What Refined Storage version is this happening on?

1.13.0-beta.4

Relevant log output

No response

Nodrance commented 2 months ago

do exporters and external storages work?

RyanMillerGames commented 2 months ago

do exporters and external storages work?

I just tried them now, similar to the importer issue, they work for vanilla objects, but do not function with modded containers.

Nodrance commented 2 months ago

Do pipes from other mods (pipez, pretty pipes, mek logistical transporters) work on that same side of that block?

Nodrance commented 2 months ago

or hoppers, if the side happens to be the bottom

RyanMillerGames commented 2 months ago

Okay I tried a few more things:

I'm confused why Vanilla objects like Hoppers can recognize the Iron Chests and Macaws Furniture containers though, but not Pipez or Refined Storage. I don't know enough about how things work code side to be useful here.

What are your thoughts? I'm new to reporting these bugs, so I wasn't sure what to do next here.

Nodrance commented 2 months ago

It sounds like side config maybe? Is there any way to set which sides of the block allow pipes and hoppers?

Also, does the same thing happen on a brand new creative world?

RyanMillerGames commented 2 months ago

There's no side configs for Iron Chests or Macaws from what I can see. There's not even a config file for Iron Chests (or a tool within the mod). It's just like a vanilla chest with more storage.

Also, to be clear, the importer doesn't work on any side, I tried from the bottom as well. It just doesn't seem to recognize the Iron Chest as a container.

I just created a fresh creative world, built the computer setup repro I mentioned, and tried with an Iron Chest, same results, nothing being taken from it, but replace it with a Vanilla chest and it works right away.

Nodrance commented 2 months ago

extremely interesting. Which modpack is this? I can test it out on my own machine

(btw, now might be a good time to mention i don't work on the mod and can't actually fix anything, I just usually know what questions to ask to figure out what's wrong)

Darkere commented 2 months ago

This issue is not related to Refined Storage. Something in your modpack seems to be breaking capabilities which is a general forge feature.

Nodrance commented 2 months ago

If you join the discord i can still try to help you (but yeah they're kinda right this isn't rs)

RyanMillerGames commented 2 months ago

This is just a custom bunch of mods I use for a private server.

I do want to be clear, I tested this with only RS and Iron Chests, and the issue exists. I totally understand that it may not be RS' fault, and instead Iron Chest, but it's definitely something between those two specific mods.

Would y'all suggest I go to the Iron Chest mod to report the bug then?

Nodrance commented 2 months ago

If pipez doesn't work, and rs doesn't work, and ironchests doesn't work, and macaw's doesn't work, that's 4 mods. They can't all be responsible. What's most likely is that some other mod is interfering with all of them somehow

Having an inventory and taking items out of it is the exact same for every mod. That's something added directly by forge. It's the exact same code for a chest vs an iron chest vs a drawer vs some factory thingy, and the same code for hoppers and pipez and importers. If that one piece of code doesn't work, the issue isn't with RS or pipez, the issue is with whatever mod is changing how that code works.

I hope this all makes sense, but the short answer is it's not RS, it's not ironchests, it's not macaws, and it's not pipez. If any of those mods were at fault, you would be seeing different symptoms than you are

RyanMillerGames commented 2 months ago

Those are fair points, though as I mentioned, this issue still occurs when I only have RS and Iron Chests installed, so it's not a mysterious other mod, cause I'm not using a mod pack. This is literally just my mod folder being emptied, and the two jars being put in.

However, there is one other variable at play, which is NeoForge 1.20.4 itself (version 20.4.237 specifically).

I used Forge in the past, not NeoForge, so I'm unfamiliar if there's a generic issue with NeoForge and modded containers?