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

Question regarding adding programs on an SMP server

Started by cap1109a, 13 September 2012 - 05:48 AM
cap1109a #1
Posted 13 September 2012 - 07:48 AM
Hello,

I'm pretty new to CC and I'm trying to get a few of the basics down but I haven't been able to figure this one out just yet. I'm pretty sick of editing code in game and would like to switch to a more useful editor. The problem is that I play on a Tekkit SMP server that I do not have access to so I cannot simply drop the files into the proper folder. My server admin would likely do it for me but he's a bit difficult to track down and it would be a bummer to wait 1-3 days every time I want to test some code.

So my question is: How do all of you more experienced CCer's navigate this problem? I feel the answer is possibly in the http.get() function, but I don't think I've found enough info on it to figure it out myself. I'll play with it some when I can, but I'm stuck waiting a few days before I can get the admin to enable the http api. The only other option that I can think of would be to make an outside program to send keystrokes to minecraft, which seems to be a less than ideal solution.

Thank you in advance and I apologize if this info is already available somewhere that I haven't been able to locate.

Cap

TL;DR: How do you add an externally written program when playing on a server you do not have access to?
GopherAtl #2
Posted 13 September 2012 - 08:04 AM
if http is enabled, you can paste hte code on pastebin and get it in game with the pastebin command.

Example: pastebin link http://pastebin.com/wRmL50Q3 the last part is the identifier and all you need, in this case 2RmL50Q3

at shell type:
pastebin get wRmL50Q3 dancingLines

and it will pull the file from pastebin and save it to your cc computer.

Not as efficient as just editing the local files in single-player, but it works.

if http is not enabled, well, you can ask the owner nicely and wait patiently. Or I gather there are mods that autotype code for you, but I've never looked at these; almost all servers I've been on enabled http.
cap1109a #3
Posted 13 September 2012 - 08:18 AM
Ah! That's perfect. Thank you for the fast/helpful reply. I was completely unaware of that command and still cannot find it on the wiki, but my computer seems to know what it is so all is well.

No http yet, but I don't think having it enabled will be a problem. I think I'm the only one using CC much or at all on this server so I suspect that they are simply not aware of it.

Problem solved, thanks again.

Cap
etopsirhc #4
Posted 14 September 2012 - 12:19 AM
if theirs no http enabled , i use a program i found here called minecopy
it essentialy reads a file, emulates a keyboard , and spews the text into the active window at high speeds