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

Loading file in smp

Started by niels22, 09 September 2012 - 12:49 PM
niels22 #1
Posted 09 September 2012 - 02:49 PM
Hello there.

I'm wondering if it's possible somehow to open a file from your own computer to a smp server?
Or do I have to write/paste it all in manually, because the admins haven't got time to mess with it.

Thanks.
NIN3 #2
Posted 09 September 2012 - 04:08 PM
I just copy paste it. Is a good reason to use lots of loops, or you end up copying the same 2 lines for hours……
niels22 #3
Posted 09 September 2012 - 04:13 PM
I just think it would be really smart if you could paste whole lines, or drag 'n' drop it into the computer.
NIN3 #4
Posted 09 September 2012 - 04:19 PM
You can paste whole lines, just not whole programs.
niels22 #5
Posted 09 September 2012 - 05:09 PM
I know, it's a bit of a pain in a certain place :I
ltstingray #6
Posted 09 September 2012 - 06:53 PM
If the server has http enabled you could use pastebin.


"pastebin put foo" will upload the file "foo" to pastebin.com, and print the URL.
Do this from your ssp game with your files
Or just copy paste them to pastebin

"pastebin get xq5gc7LB foo" will download the file from the URL http://pastebin.com/xq5gc7LB, and save it as "foo".
Do this on your SMP computer.
niels22 #7
Posted 16 September 2012 - 01:52 PM
How do I find out if it's enabled?
Lyqyd #8
Posted 16 September 2012 - 08:32 PM
How do I find out if it's enabled?

The quickest way is to get on a computer on the server, open up the lua prompt and type 'http'. If it says nil, the http API is disabled, if it says table: (eight hex digits), it's enabled.