4 posts
Posted 23 April 2015 - 06:23 PM
Hello, I was looking for a good method to generate up to 100 unique redstone signals from a computer based on several functions within the computer. The problem is I'm new to computercraft, and I only have 6 sides to work with at first glance. I know there are some mods or so I can add that can use color coded cables allowing for multiple signals from 1 side, but will it be enough for around 100 signals, and if so what mod should I look at? Otherwise, what are some other good ways I can do this, if there were some way I could use unique wireless redstone signals, that'd be the best for managing this imo, but I would have no idea to look for something like this. So, suggestions?
2427 posts
Location
UK
Posted 23 April 2015 - 06:40 PM
What are you doing that requires 100 different redstone signals??!?! O.o
does it have to be one computer controlling all 100?
this or
this may work or be a good start for your own program
Edited on 23 April 2015 - 04:41 PM
3057 posts
Location
United States of America
Posted 23 April 2015 - 06:53 PM
I don't think it's possible, although through a series of scripts communicating through rednet you could achieve this.
You have 8 colors of bundled cable, 6 sides. 8 * 6 = 48, which means you will need at least 3 computers to reach 100 different signals.
Alternatively, if you can use analog outputs, you can get 16 to a side. 16 * 6 = 96, meaning you'd still need at least 2 computers to reach 100.
Really though, I want to know why this would ever be required.
570 posts
Posted 23 April 2015 - 06:57 PM
As has already been mentioned, I doubt you'll ever need 100 redstone signals. I don't know what you need this for but it sounds like you're trying to make two computers communicate. In that case you can use
rednet.
1080 posts
Location
In the Matrix
Posted 23 April 2015 - 07:30 PM
There is for sure a way to do so. People are forgetting that you can check if you combine them into a sequence. For each line, there is on and off, so two different states. Then you have 5 more sides with 2 different states. If you find a way to combine them, you have a total of 64 different possibilities (2^6). HOWEVER if you use comparators to hold the strength of the redstone signal, then you have 16^6 different possibilities or 16777216 different possibilities. Now lets say that you don't want to use the top and bottom of the computer since that's a difficult thing to do, and you still use all 4 sides around the computer, and have those hooked up to comparators. You still have 16^4 possibilities or 65536 possibilities. As for differentiating between the different signals and their strengths, that would require a knowledge of redstone that is beyond my coding abilities.
Yami did say something about colored cable having 8 different colors, so with all 6 sides, that's 8^6 or 262144 possibilities.
Edited on 23 April 2015 - 05:32 PM
4 posts
Posted 23 April 2015 - 08:20 PM
Thanks everybody, I have since found a way to do what I intended without redstone signals altogether. I failed to mention this, but my intention was to use them going to various command blocks, but I just discovered the commands api in computercraft, effectively eliminating the need for over a hundred command blocks. I feel stupid for not seeing it before.
2427 posts
Location
UK
Posted 23 April 2015 - 10:28 PM
there is a config option for wrapping command blocks as peripherals too (go with the command computer though, it's easier and faster)