Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage drawers push/pull items doesn't with modems #1023

Closed
TheIncgi opened this issue Jan 21, 2022 · 2 comments
Closed

Storage drawers push/pull items doesn't with modems #1023

TheIncgi opened this issue Jan 21, 2022 · 2 comments
Labels
bug A problem or unexpected behaviour with the mod.

Comments

@TheIncgi
Copy link

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.

@TheIncgi TheIncgi added the bug A problem or unexpected behaviour with the mod. label Jan 21, 2022
@Wojbie
Copy link
Contributor

Wojbie commented Jan 21, 2022

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

@TheIncgi
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A problem or unexpected behaviour with the mod.
Projects
None yet
Development

No branches or pull requests

2 participants