Video demonstrating this: http://www.youtube.com/watch?v=86Zv5jY5SWQ&feature=youtu.be
So, this is a fairly simple program that provides a way to send digital redstone, bundled redstone, and analog redstone over modems, including wireless modems. I know this program isn't that useful or amazing, but it took a while to make, and I am happy with how it turned out, so I thought I would share.
How it works:
Spoiler
There are two types of computers, inputs and outputs. Input computers wait for a redstone signal on every side in the redstone sides array, and then transmit a message to all of the channels in the channels array, containing the digital, analog, and bundled signals. The output computers wait for a modem message from any connected channels, then it outputs the bundled signal, and either the digital or analog signal depending on if the analog bool variable is true or false, to all of the sides specified.How to use:
Spoiler
There are only 5 things you have to set up for each computer, the first 5 lines of code, you shouldn't have to edit anything else.modemSides: This is an array of sides that modems are connected to, most likely you will only have one, but in some cases you may have 2 or more.
Example: local modemSides = {"left","right}
channels: This is an array of connected channels, channels sort of act as frequencies, so an input with channel 1 will not transmit to an output with channel 2, but an input with channel 1 and 2 will. And an output with 1 and 2 will be receive messages from both
Example: local channels = {1,2}
computerType: Either "input" or "output", pretty straightforward
Example: local computerType = "input"
rs_sides: For input computers this is a list of sides it will accept redstone signals from, for outputs it is the list of sides it will output signals to.
Example: local rs_sides = {"left"}
analog: This is a boolean variable that only applies to output computers, if true this will output the analog signal (1-15), if false it will just output true or false.
Example: local analog = true
Download:
http://pastebin.com/VY7nxFy7
Known issues:
Spoiler
None at the momentChangelog:
Spoiler
2.0.1:Fixed crash when setting the stack to 0
2.0.0:
Full rewrite
code cleaned up
fixed: signals overwrite eachother
fixed: if a modem is missing program crashes
fixed: bundled cable signals from different computers added incorrectly
Legal Stuff:
Spoiler
I cant be bothered to release this under a license. Basically just do whatever you want, use my source code, redistribute, modify, sell it for doge coins, I really don't care.Feel free to report bugs or suggest features, enjoy!