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

CCNet - Long-range RedNet and more!

Started by HyperNerd, 06 October 2012 - 08:23 PM
HyperNerd #1
Posted 06 October 2012 - 10:23 PM
Hello everyone!

I have recently been working on a way for computers to send RedNet messages further than the default (384??) block limit.

I wrote an API which supports data packets in the same way that RedNet does, but adds support for the packets to be repeated through repeater stations around the map. Since this system requires messages to be broadcast rather than sent to a specific computer, I built-in a VERY basic encryption / decyption system (I'm not sure if it is even worth calling it this…) based on XORing the packets against a string password.

The API is used in the same way that RedNet is, via ccnet.send(id, msg, pass), and packets will retain the ID of the original computer which sent them, so reply packets are easy to forumlate.

The repeater stations also support remote updating of software, so there is no need to manually update each and every repeater station.

I am still working on the API on the private server I host, but I should be ready to release in a few days.

If anyone has any ideas for features which I could include, please make suggestions!

I am no expert at Lua but I know my way around it, so the code will be very much open to improvements.

Stay tuned for a download coming in a few days!
Tiin57 #2
Posted 07 October 2012 - 01:26 PM
-HyperNerd
Signing. Bad.
CCNet. Good.
HyperNerd #3
Posted 07 October 2012 - 04:06 PM
Signing. Bad.

Noted.
justync7 #4
Posted 09 October 2012 - 12:10 AM
CCNet is a server that im an admin on. If I was you would rename it like ComputerNet or something. :D/>/>
Fashter #5
Posted 11 October 2012 - 01:15 AM
CCNet is a server that im an admin on. If I was you would rename it like ComputerNet or something. :P/>/>
Do you have this name trademarked? No? Well, cut the crap. Not like you own the name or him.
http://www.computerc...ork-peripheral/
ChunLing #6
Posted 13 October 2012 - 11:36 PM
I'm thinking of doing a version of the gps program that would allow gps servers to also act as relays. So if the message to the server were "^Relay:%d+", then the server would forward all later messages from that sender to the ID specified by the number in the message. Since the relay wouldn't have to be broadcast, it would be secure without needing encryption on either end.
PixelToast #7
Posted 13 October 2012 - 11:45 PM
i made a network system like, its fully functional and easy to use and set up but there are too many networking programs out there
:/
ChunLing #8
Posted 17 October 2012 - 02:25 AM
Probably. Still, that might be a good thing. You want to be able to set up your network with a program that doesn't link to someone else's network by accident.