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

Peripheral subnetting #1599

Open
SirEdvin opened this issue Oct 2, 2023 · 2 comments
Open

Peripheral subnetting #1599

SirEdvin opened this issue Oct 2, 2023 · 2 comments
Labels
area-Minecraft This affects CC's Minecraft-specific content. enhancement An extension of a feature or a new feature. feedback wanted Tell me what you want, what you really really want.

Comments

@SirEdvin
Copy link
Contributor

SirEdvin commented Oct 2, 2023

Minecraft Version

1.20.x

Version

1.108.1

Details

So, currently inventory peripheral (and many others, actually) uses computer.getAvailablePeripheral(name) to get peripheral from name. However, due to how Wired Modems and PeripheralAPI works, it is creating confusion in some cases.

зображення

Here computer actually have two subnetworks that are not connected one to another. And it is impossible to transfer items from left and minecraft:barrel_0 to each other. However, if I would attach barrels directly to computer this transfer would work.

I am not sure if this indented behavior for current CC:T implementation, because peripheral names global and it is probably safe to allow peripheral discovery for any connected peripheral to computer

@SirEdvin SirEdvin added the bug A problem or unexpected behaviour with the mod. label Oct 2, 2023
@SquidDev SquidDev added enhancement An extension of a feature or a new feature. area-Minecraft This affects CC's Minecraft-specific content. feedback wanted Tell me what you want, what you really really want. and removed bug A problem or unexpected behaviour with the mod. labels Oct 3, 2023
@SquidDev
Copy link
Member

SquidDev commented Oct 4, 2023

This is working as intended/as designed. However, I appreciate that it definitely confuses a lot of people, so am open to solutions for this, even if those solutions are "document it better".

The root of this issue here is there's a mismatch between the mental model that CC uses for peripherals (network-centric) and the mental model that people expect CC to use (computer-centric). I'm not sure there's a good way of resolving this without changing the model, which I'm rather loathe to do.

@SirEdvin
Copy link
Contributor Author

SirEdvin commented Oct 5, 2023

This is probably naive suggestion, but can I suggest add additional one step into deep here? So, Peripheral API computer access wrapper would also scan wired modems (or whatever interface it would be) for peripherals. It will not remove all issues with peripheral subnetting, but it would help to remediated some issues with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Minecraft This affects CC's Minecraft-specific content. enhancement An extension of a feature or a new feature. feedback wanted Tell me what you want, what you really really want.
Projects
None yet
Development

No branches or pull requests

2 participants