This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
question about pastebin
Started by jziel98, 28 July 2012 - 06:20 PMPosted 28 July 2012 - 08:20 PM
i have searched the website and can not find anything about how to paste a script into the computer on a server.
Posted 28 July 2012 - 08:32 PM
What? To put code from a computer onto pastebin is this:
pastebin put <filename>
and to get it is
pastebin get <pastebin code> <saveas name>
Posted 28 July 2012 - 08:34 PM
ok thank you. im really new
Posted 28 July 2012 - 08:39 PM
im still really confused, i cant find the pastebin code or anything.here is the link to the thing i want.
http://www.computercraft.info/forums2/index.php?/topic/1863-gamecomputer-hangman/page__hl__games__fromsearch__1
http://www.computercraft.info/forums2/index.php?/topic/1863-gamecomputer-hangman/page__hl__games__fromsearch__1
Posted 28 July 2012 - 08:44 PM
The pastebin code is the underlined part of the URL:
pastebin.com/De598fM
Hope that helps!
pastebin.com/De598fM
Hope that helps!
Posted 28 July 2012 - 08:46 PM
when i tried to enter into the computer on the server it says no such program
Posted 28 July 2012 - 08:53 PM
Check if the file is there, type:
> programs
There will be a list of all the available programs. If pastebin is not there, it's on another directory. I think it's inside the http folder, so you have to use:
> http/pastebin get <code> <filename>
If that doesn't work, the server doesn't have the program, so you can't use it.
Also, if http is not enabled on the server you can't use it.
> programs
There will be a list of all the available programs. If pastebin is not there, it's on another directory. I think it's inside the http folder, so you have to use:
> http/pastebin get <code> <filename>
If that doesn't work, the server doesn't have the program, so you can't use it.
Also, if http is not enabled on the server you can't use it.
Posted 28 July 2012 - 08:55 PM
and what is the file name that way i know that is not the problem?
Posted 28 July 2012 - 09:09 PM
What file name? The usage is the same as before, like tiin57 posted.and what is the file name that way i know that is not the problem?
Posted 28 July 2012 - 11:47 PM
what is the save name?
Posted 28 July 2012 - 11:55 PM
It's the name you want the saved file to have.
Example:
> pastebin get <code> MyProgram
Now the file MyProgram has the program you wanted, and you can run it using:
> MyProgram <any arguments needed>
Example:
> pastebin get <code> MyProgram
Now the file MyProgram has the program you wanted, and you can run it using:
> MyProgram <any arguments needed>
Posted 29 July 2012 - 12:00 AM
its finally working, if i have any other problems i will be sure to post them. thank you so much guys
Posted 29 July 2012 - 12:03 AM
ok, its not working again and it keeps saying
connecting to pastebin.com… pastebin :75:
attempt to index ? (a nil value)
what should i do
connecting to pastebin.com… pastebin :75:
attempt to index ? (a nil value)
what should i do
Posted 29 July 2012 - 12:19 AM
http is disabled. If you'r in sp you can enable it in the config. If it's a server you need to ask the owner to enable it.
Posted 29 July 2012 - 12:26 AM
i am the server owner. do you know how to enable it
Posted 29 July 2012 - 12:39 AM
It's a config option. It's something like httpEnable, you have to set it to 1 (it's 0 by default, wich is disabled).
Posted 29 July 2012 - 01:14 AM
i cant find the folder or where it is. can you tell me how to find it? thx
Posted 29 July 2012 - 01:50 AM
Go to the server folder, there should be a folder named config, inside there's a file called mod_ComputerCraft.cfg (<Server Folder>/config/mod_ComputerCraft.cfg).
Open it with a text editor, and change the line that says enableAPI_http=0 to enableAPI_http=1.
Open it with a text editor, and change the line that says enableAPI_http=0 to enableAPI_http=1.
Posted 29 July 2012 - 02:09 AM
it is finaly working. thank you. i can finally play hangman