Advanced Peripherals

Advanced Peripherals

29M Downloads

ME Bridge causes java exception exportItemToPeripheral when item doesn't exist

mrlamb opened this issue ยท 9 comments

commented

Describe

I have a simple setup: controller, terminal, chest, storage bus. Computer sits next to bridge with another chest to it's right.
Request to move an item that's not in the chest and I get the following:
image

I also tried wrapping the target using a modem in another test and got a different java exception:
image

A side effect of the first java exception is that my ME terminal no longer shows any items, though I can insert into it with no trouble. Subsequent calls to listItems returns an empty table. So realistically this could be a problem on AE2's side and not AP but I thought I'd start here.

Steps to reproduce

Setup basic ME system as described above
use lua console to wrap the ME bridge and call the exportItemToPeripheral method on an item that doesn't exist in your storage.

For the second test I used wired modems to add an entangled block to a warehouse from minecolonies.
I apologize if this has been fixed as I appear to be on version 1.19.2 0.27.24b because that's what the direwolf20 1.19.2 pack is using atm (at least in their release version). I did try to look through the closed issues, but didn't see anything related to this exactly.

Multiplayer?

Yes

Version

Own compiled build.

Minecraft, Forge and maybe other related mods versions

Forge 43.2.6

Screenshots or Videos

No response

Crashlog/log

https://pastebin.com/VJcKJbYt

commented

The first issue could be my fault. I'll check that next week.
I'll also add some better erro messages to prevent these exceptions

commented

Interestingly this setup caused that same second error, but I'm not convinced I'm not just doing something wrong XD

image

commented

I need to look into your first issue a bit deeper.
But the second thing is an issue on your end. If you want that the bridge can access peripherals in the network, you need to wrap the bridge via an modem so the bridge has a connection to the network where the target chest is also connected to

commented

I forgot to capture the stack trace for the first exception so here it is:
https://pastebin.com/GnJ0EZLu

commented

I need to look into your first issue a bit deeper. But the second thing is an issue on your end. If you want that the bridge can access peripherals in the network, you need to wrap the bridge via an modem so the bridge has a connection to the network where the target chest is also connected to

Got it, think! The peripheral needs network access to the rest of the network, the computer doesn't act as a go between on those. I merely thought to try that setup because of another reported issue regarding the RS bridge and a warehouse block.

commented

I tested the same concept with the RS bridge and a refined storage controller and external storage and everything worked fine so it does seem to be an AE2 only issue.

commented

Have you changed the way how you wrap it?
Should be something like peripheral.wrap("rsBridge_1") or peripheral.find("rsBridge")

commented
commented

Forgot to close this
Fixed in the last versions of 1.18.2, 1.19.2 and 1.19.3