This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
kevinz000's profile picture

help with IM no wireless modems redstone only

Started by kevinz000, 13 April 2013 - 05:11 PM
kevinz000 #1
Posted 13 April 2013 - 07:11 PM
Hello!
i need a program that will use 1-3 redstone wires to send messages.
sending one needs to use redstone not rednet because of range limit, redstone can get past with wireless redstone- chicken bones edition
and recieving program hopefully is in a loop so it records messages sent to it automatticly, doesnt close untill you tell it to(recieves multiple messages in a row one after another) and hopefully logs to file
anyone got a program/a program thats like that i can use?
i would use the youtube guy's email software, 2000 charectors/minute
but i need it to be 1-3 redstone wires, no bundled cables
please help, thanks
theoriginalbit #2
Posted 13 April 2013 - 10:30 PM
I am going to start by saying that sending text across redstone is very slow and difficult, if you don't get it right you have all kinds of bugs! An example of how slow it is: "Hello World!" sent across 1 line of redstone, running at the most efficient possible, will take 9.6 seconds to send (if my calculations are correct), meaning 3.2 seconds across 3 lines. which is a really slow transfer rate, and if not done correctly can be even slower again. Now in comparison Rednet would send the same string in a matter of milliseconds.

Now on to some suggestions… To successfully do this, I suggest you familiarise yourself with event loops and timers… Also the familiarising yourself with the redstone api, the peripheral api (for using the wireless transmitter, if needed), would not go astray… You will also need to look into either some kind of encoding system, or at ASCII to binary conversion. These last two will most likely be the hardest and are very advanced, and thus may require a lot of Googling and asking questions and the such…

Now I have done something similar to this called RedTransfer, and it can be found in my programs thread, however it does not fully meet all the requirements that you have, so I would not recommend using it, however if you need any further assistance or have any further questions feel free to ask and I will help as much as possible.
JokerRH #3
Posted 14 April 2013 - 12:04 AM
Use string.byte() to convert it to numbers and string.char() to convert it back.
theoriginalbit #4
Posted 14 April 2013 - 08:08 PM
Use string.byte() to convert it to numbers and string.char() to convert it back.
A byte is not the bits… getting the byte is only step 1 of getting this transmission done.