Bluetooth is a program that allows you to easily share files with your ComputerCraft mates.
I'm trying to make it as similar to real Bluetooth as I can, and so far I'm quite happy with my work.
Note: This program is currently in beta. You may find bugs, if you do, please report them.
FEATURES:
- Allows you to quickly send files to other computers.
- Simple and easy parameters.
- Doesn't have a 24hr limit like using pastebin does (not saying there is anything wrong with pastebin, it's great for releasing stuff to lots of people)
- Can send any file, even paint files!
Another separate Bluetooth program that has a GUI.Done!- A Bluetooth API for developers to send files over Bluetooth.
- Less bugs!
- Maybe sending of whole folders. (Maybe - I don't think this isn't possible in real Bluetooth, but it would be useful.)
If you want to tap into Bluetooth with your own programs, until the Bluetooth API comes, here are what is sent and received when sending/receiving Bluetooth requests.
The sender computer sends, "bluetooth.connect"
The sender computer waits for "bluetooth.accept"
The receiving computer replies, "bluetooth.accept"
The sending computer sends, "bluetooth.filename:<FILE NAME>"
Then the sending of the program begins. The program is sent line by line.
The sending computer sends "bluetooth.file:<FILE LINE>" for each line, while the receiving computer is taking in all these lines and usually would write them to a file.
The sending computer finally sends "bluetooth.done".
The transfer is compete.
Sorry for my terrible explanation.You could also look in the source code to find out yourself how it all goes down.
SCREENSHOTS:
Spoiler
HOW TO GET IT:
Easy!
First you must make sure the server you play on has the HTTP API enabled or if your playing singleplayer your client has the HTTP API enabled.
Then simply type: pastebin get GhP5SqaP bluetooth
You now have bluetooth!
CHANGELOG:
1.0 (UEQsyJUG):
* Initial release.
1.1 (GhP5SqaP):
* File closes after reading it when sending a file.
* Fixed delete mistake.
HOW TO USE IT:
Make sure you have a rednet modem on the right side of your computer and run "bluetooth receive" on the computer you wish to receive the file, then on the sending computer type "bluetooth send <file> <computer ID>".
Using incorrect syntax or typing bluetooth will show the usage.
Thanks. Hope you like it. =)
Also: does anyone know why as I write this post my cursor moves? It's really annoying and causing me to backspace stuff I'm not supposed to.
BLUETOOTH: GUI Edition!
Due to the great response I got for my command line Bluetooth, I instantly went ahead and made… BLUETOOTH: GUI Edition!
It does what the command-line bluetooth does, except this one has a fairly nice GUI (I'm not the best with graphical user interfaces, but I tried.).
It is cross-compatible with the command-line Bluetooth, therefore you can receive a file using the command-line bluetooth and send a file using the GUI bluetooth (or vice-versa).
Run this command on an in-game computer: pastebin get 8c4kCDw0 bluetoothGUI.
Then type "bluetoothGUI"!
Spoiler
(Yeah, I just noticed that bug, "Enter the file you wish to send in the gray box bel"). Opps. I'll fix that later…
Sorry if I made any mistakes on this thread, I was in a rush.