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

ComputerCraft on a SMP

Started by leachtyler, 26 October 2012 - 09:20 PM
leachtyler #1
Posted 26 October 2012 - 11:20 PM
So I just started trying to figure out this lua coding. If confusing and I think it would be easier to copy and paste some of the codes into the console but it doesn't seem to work. Is there a way to do this? Because a code I found that I like happens to be 2000 lines long and pasting line by line will take me forever. I do not know why they made it that long but oh well. Any suggestions?

P.S.
I'm trying to setup a cc controlled reactor with a 3x5 monitor. Can't fine a short and sweet code for on/off for 5 reactor or power lvls/eu output.
remiX #2
Posted 26 October 2012 - 11:27 PM
Well, copy the code into a file either within the ID of the computer or within the mod folder.

Tekkit_Server_3.1.2modsComputerCraftluaromprogramscomputer

or in appdata:

AppDataRoaming.techniclaunchertekkitmodsComputerCraftluaromprogramscomputer
leachtyler #3
Posted 26 October 2012 - 11:30 PM
Well, copy the code into a file either within the ID of the computer or within the mod folder.

Tekkit_Server_3.1.2modsComputerCraftluaromprogramscomputer

or in appdata:

AppDataRoaming.techniclaunchertekkitmodsComputerCraftluaromprogramscomputer

Only problem is it is not my server so I do not have access to the files. :D/>/>
remiX #4
Posted 26 October 2012 - 11:34 PM
Oh then upload it to pastebin and then get the ID from the upload eg:

www.pastebin.com/qwertyy1

qwertyy1 is the 'ID' of the code. Now in the game, go to a computer and type:
pastebin get qwertyy1 startup
It download's the content in on the website and saves it to the file called 'startup'.

In order for this to work, HTTP api needs to be enabled. Ask the server host to enable it if it isn.t
leachtyler #5
Posted 26 October 2012 - 11:36 PM
Oh then upload it to pastebin and then get the ID from the upload eg:

www.pastebin.com/qwertyy1

qwertyy1 is the 'ID' of the code. Now in the game, go to a computer and type:
pastebin get qwertyy1 startup
It download's the content in on the website and saves it to the file called 'startup'.

In order for this to work, HTTP api needs to be enabled. Ask the server host to enable it if it isn.t

Thank you abunch! Life saver ;p
leachtyler #6
Posted 26 October 2012 - 11:45 PM
Oh then upload it to pastebin and then get the ID from the upload eg:

www.pastebin.com/qwertyy1

qwertyy1 is the 'ID' of the code. Now in the game, go to a computer and type:
pastebin get qwertyy1 startup
It download's the content in on the website and saves it to the file called 'startup'.

In order for this to work, HTTP api needs to be enabled. Ask the server host to enable it if it isn.t

So if it says no such program, that means its not enabled?
Sammich Lord #7
Posted 26 October 2012 - 11:58 PM
Oh then upload it to pastebin and then get the ID from the upload eg:

www.pastebin.com/qwertyy1

qwertyy1 is the 'ID' of the code. Now in the game, go to a computer and type:
pastebin get qwertyy1 startup
It download's the content in on the website and saves it to the file called 'startup'.

In order for this to work, HTTP api needs to be enabled. Ask the server host to enable it if it isn.t

So if it says no such program, that means its not enabled?
Yes, the pastebin program will only show up if HTTP is enabled.
ChunLing #8
Posted 27 October 2012 - 12:39 AM
There is a solution in the works for this, but if http is disabled then you can try a program that "types" input into the focus window. Here's one. Minecopy V2 [Linux][Windows] in API's and Utilities

Be sure to read the whole thread, there are links to other similar utilities.