CC: Tweaked

CC: Tweaked

57M Downloads

Storage drawers push/pull items doesn't with modems

TheIncgi opened this issue ยท 2 comments

commented

Minecraft Version

1.16.x

Version

1.100.2

Details

Version info

Minecraft 1.16.5

Forge 36.2.20

Mods:

CC-Tweaked 1.100.2

Storage Drawers 1.16.5 8.5.1

The setup

image
(Seen left to right: computer, modem block, controller_slave, oak_trim, controller & full_drawers
the particular arrangement here isn't important, just that there is a modem between the computer and a controller or drawer)

leftInv = peripheral.wrap"left"
sdcsName = "storagedrawers:controller_slave"
sdcs = peripheral.find(sdcsName)

if not sdcs then error("didn't wrap") end

print(textutils.serialize(peripheral.getNames()))
print(sdcs)

print("Slot 2 "..(
  textutils.serialize(sdcs.getItemDetail(2))  
))

leftInv.pullItems( sdcsName, 2 ) --line 14

The result
image

We can see that items can be inspected fine however it causes an error when pushing or pulling items

Second test: without a modem

image
the 2nd and 3rd lines are changed to this:

sdcsName = "back"
sdcs = peripheral.wrap(sdcsName)

image

The item is transferred successfully

image


Additional note:

I tried to see if I could setup a dev workspace to find the cause of the issue myself, I was able to get CC-Tweaked to run in debug mode, however I couldn't figure out how to get Storage drawers to load in without causing a crash on startup. If you have any tips I can try and find the issue and PR, although it may be a simple enough fix that it's not worth me trying.

commented

Duplicate of #697

Please read there to get explanation why it works this way. TLDR: it's way CC networks work.

Edit: this image can help visualise it too.
chestworks

commented

Ah
I looked though open issues and missed this.
This picture alone gives me a good idea of what's going on, but I'll read the page too.

Thanks for your help.