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

Pastecraft - Ingame / No Http Pastebin

Started by Knux14, 17 September 2013 - 02:08 PM
Knux14 #1
Posted 17 September 2013 - 04:08 PM
Hello everyone

–[[
First off, please excuse my bad english, I'm french …
]]–

So, I was borring on my computer when I came up with a simple idea. Make a pastebin like ONLY in Minecraft. So you will need theses two scripts (It can be cool if the server doesn't have the http and the server admin installs theses scripts):
- Client : http://pastebin.com/BhW3SYmt
- Server : http://pastebin.com/XSSyqcve


So now, lets setup it.
Put the server on a disk and put it in a disk drive. Then connect a computer which has a wireless modem on his BACK side and start the script.
Your server is running. Since computercraft has a limited range for wireless, you should make relay like this:
http://puu.sh/4tOKt.jpg
Now lets setup a client (Every computer on the server might be a client). Install the pastecraft script on the client and edit it. The second line is the server ID (Which is written on the server starting). Then, you're done.

– The server must have a modem on the back, but the client might be anywhere. Because of the wired and wireless are the same name and I'm a bit lazy to add the check for now … –

You can do "pastecraft put AnyFile" and it will be sended on the servers.
You can do "pastecraft get ID File" and it will download the ID on your computer
You can do "pastecraft get log log" and you'll have the logs (Might be change in the future … )

CAUTION ! THIS PROGRAM IS IN NO WAY LINKED TO PASTEBIN. YOU WON'T PUT ANYTHING ON PASTEBIN SERVER AND YOU WON'T GET ANYTHING TOO. (Btw since its only ingame, HTTP isn't required.)


Todo list: (Urgent, will be done, Maybe one day …)

Auth,
edit paste,
remove paste,
Name paste?

Let me know what you thinks ;)/>/>
jay5476 #2
Posted 18 September 2013 - 01:53 AM
one point… if server hasn't http enables and doesn't have these in rom then how exactly do you get the program's into the server
Mitchfizz05 #3
Posted 18 September 2013 - 04:41 AM
Good job, this is an interesting idea that I am suprised no-one has thought of yet (I don't think).
one point… if server hasn't http enables and doesn't have these in rom then how exactly do you get the program's into the server
This program works through rednet, not through HTTP. By server he means a CC computer that serves clients.
[indent=1](I believe)[/indent]
Knux14 #4
Posted 18 September 2013 - 06:17 AM
Good job, this is an interesting idea that I am suprised no-one has thought of yet (I don't think).
one point… if server hasn't http enables and doesn't have these in rom then how exactly do you get the program's into the server
This program works through rednet, not through HTTP. By server he means a CC computer that serves clients.
[indent=1](I believe)[/indent]
Exactly. You have a computer with a modem which is the server and the client sends rednet message with the paste id ;)/>


one point… if server hasn't http enables and doesn't have these in rom then how exactly do you get the program's into the server

Do you mean how to have them on a computer ? If this is correct, either the serveradmin should put it on a disk and distribute it (Or directly on a computer / rom) or copy it in the terminal ;)/>
Edited on 18 September 2013 - 04:19 AM
jay5476 #5
Posted 18 September 2013 - 07:06 AM
im saying how do you download the client and server onto the server without http and editing rom
Knux14 #6
Posted 18 September 2013 - 08:32 AM
Either server admin install it by putting the file in the correct folder, or you copy it manually
Geforce Fan #7
Posted 28 September 2013 - 12:40 AM
one point… if server hasn't http enables and doesn't have these in rom then how exactly do you get the program's into the server
Using your clipboard, you can paste short programs to the thing. If you are dedicated enough, you could paste the whole thing by writing a simple program and then use it. Doesn't work well though.
MudkipTheEpic #8
Posted 28 September 2013 - 11:51 PM
one point… if server hasn't http enables and doesn't have these in rom then how exactly do you get the program's into the server
Using your clipboard, you can paste short programs to the thing. If you are dedicated enough, you could paste the whole thing by writing a simple program and then use it. Doesn't work well though.

Use this to get them into the server:
http://www.computercraft.info/forums2/index.php?/topic/15390-

–end shameless selfserving plug–