LanAPI: http://pastebin.com/sisCipkP
Chat room using the API (peer to peer) : http://pastebin.com/r3PsAFjG
rednet.open("side")
for bundled cables as well and send/receive messages over these:
--send
fileHandle = fs.open("path", "r")
content = fileHandle.readAll()
fileHnadle.close()
rednet.open("side")
rednet.send(ip/id, content)
rednet.close()
--receive
rednet.open("side")
content = rednet.receive(timeoutValue)
rednet.close()
fileHandle.open("path","w")
fileHandle.write(content)
fileHandle.close()
it does the same as the example in your documentation without any additional API. because the rednet API already supports communication over bundled cablesyou actually cannot use bundled cables for rednet in CC1.5+you can usefor bundled cablesrednet.open("side")
yeah, because redpower isn't updated to Minecraft 1.5, yet. but his LANing api is using them to communicate over the redstone api with .setBundledOutput "manually". so he uses bundled cables. and he did such a good job creating a programm that is able to transfer data bit-by-bit over a bundled-cable. but it is as i said already built in…you actually cannot use bundled cables for rednet in CC1.5+you can usefor bundled cablesrednet.open("side")
It is not "built" in, in the newer versions…but it is as i said already built in…
okay. sorry. i thought it was just because there are no bundled cables available for computercraft 1.5+. and man, no need of caps-lock here.rednet.broadcast IS NOT IMPLEMENTED to work with bundled cables… It got removed right before networking cables.
yeah, i got the message ;)/>It is not "built" in, in the never versions…but it is as i said already built in…
how do you know what version he created this for? i don't see any mention of a CC version anywhere……..but it was possible in the version he created this for. because it makes even less sense to communicate over bundled cables with the new network cables
okay. sorry. i thought it was just because there are no bundled cables available for computercraft 1.5+. and man, no need of caps-lock here.rednet.broadcast IS NOT IMPLEMENTED to work with bundled cables… It got removed right before networking cables.yeah, i got the message ;)/>It is not "built" in, in the never versions…but it is as i said already built in…
but it was possible in the version he created this for. because it makes even less sense to communicate over bundled cables with the new network cables
eeeehm, i thought the answere to this question is answered my reply: "because it makes even less sense to communicate over bundled cables with the new network cables"how do you know what version he created this for? i don't see any mention of a CC version anywhere……..but it was possible in the version he created this for. because it makes even less sense to communicate over bundled cables with the new network cables
i just don't like caps-lock. it doesn't made me mad at all. but really reasonable your reaction to this. *vote up* ;)/>okay. sorry. i thought it was just because there are no bundled cables available for computercraft 1.5+. and man, no need of caps-lock here.rednet.broadcast IS NOT IMPLEMENTED to work with bundled cables… It got removed right before networking cables.yeah, i got the message ;)/>It is not "built" in, in the never versions…but it is as i said already built in…
but it was possible in the version he created this for. because it makes even less sense to communicate over bundled cables with the new network cables
I did not think that would make you mad.. removed…
Good to hear that someone can make use of this :D/> Thank you!Yeah don't pay attention to any naysayers. This is both awesome and useful. :)/>
I was actually thinking of making something just like this myself for a totally different reason… overcoming the distance limitations of wireless modems through the use of wireless redstone transmitters. Basically, with this API I will not have to write any of that code myself! Congratulations… you just made it possible for me to create a server-wide internet.
That's a bot. That's why it has a different color and you can't view it's profile.Edit: [off topic] why is Google online in the first page of the forum? [/off topic]