MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 432 forks source link

Bundled cables #1134

Closed fnuecke closed 3 years ago

fnuecke commented 9 years ago

Add some kind of "bundled" network cable. Allows connecting multiple subnetworks over a longer distance using only one cable. Subnetworks can be merged/split from the bundle using normal, colored cables. Basically like most bundled redstone cabling works.

Bundled cables will not connect to normal machines. They will connect to servers, though, and servers will get a new configuration option, allowing to specify the color a server is connected to. My current idea is to expand the "side" list with the colors, so servers can connect to either a single side, or a color - not sure if connecting normal colored cables will then allow connecting them from multiple sides, or just via bundled cables... we'll see.

This will be a good bit of work, in particular the rendering side of things. Will need to pull out some common functionality from the existing cables and all that. No ETA.

dgelessus commented 9 years ago

Since microcontrollers seem to be (partially) meant as advanced programmable switches, should they be allowed to access all colors from a bundled cable? Or maybe only tier 2 microcontrollers?

fnuecke commented 9 years ago

Hrm, I suppose. And allow them to programmatically select what colors to "output" to, similar to the way sides can be selected now.

magik6k commented 9 years ago

Maybe use modems that'd use normal cables to send wrapped data from subnetworks and extract it on other end. They should have some sort of channel selectable.

jeffreykog commented 9 years ago

Maybe another option is implementing the way vlans work in real-life networking into OC. This will also add a more expensive internet card that can send vlan tagged packets over the cables, so it can connect to multiple networks.

Maybe a bit too complicated, but it would be cool if it could work.

HiTECNOLOGYs commented 9 years ago

@jk-5 you could simply implement VLANs on top of current networking stack using custom BIOS and some programming magic to glue it together. There's no need for adding "hardware" support for them (not that I'd mind it, though, as having stuff built-in and standardized is usually good). However, running into component limit on one cable is a problem which VLANs don't solve.

Kubuxu commented 9 years ago

If you want to relay only messages then there are switches and network program which is already floppy in OC (if you ask Magik6k nicely, he might implement vlan protocol into it) but it can be created as separate service. If you want to access component from other network then use component-over-network program. I think that someone already created one.

Also VLAN can be created as separate service from network. Just depending on it.

n00b7 commented 9 years ago

maybe a command to pull which color the bundled cable like: bundledCable.pull(color)

magik6k commented 9 years ago

Colored cables might play nicely with server racks from #1323 if it would extract the rails. Some sort of cable rack to avoid mess when connecting 2-3 bundled cables would be nice too.

setsunafseiei commented 8 years ago

Why not bundle cables will act like in Project RED? This won't create a mess or displaying much of cable or you can just hide it with Forge Multiblock, but this will be helpful in power distribution from far. You cannot connect a bundle cable to Computer Case. Bundle cable will treat red cable and blue cable and other cables as a one block type for no much space will be needed

setsunafseiei commented 8 years ago

This is my reason why using bundle cables are useful

image

image

Too much SPACE

Shazuli commented 6 years ago

Umm, this was accepted as a feature accept over three years ago. Will this ever be implemented or has the idea died?