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

How do I paste code into my Turtle

Started by Cheesety210, 28 March 2013 - 05:41 AM
Cheesety210 #1
Posted 28 March 2013 - 06:41 AM
I have some code, how do I get it into one of my turtles programs
remiX #2
Posted 28 March 2013 - 06:46 AM
Put the code on pastebin and when that's done, copy the last part of the url ( www.pastebin.com/tHiSPArt ) and in your CC type this:
pastebin get tHiSPArt programName
tHiSPArt is known as the 'code' of the pastebin url.
Cheesety210 #3
Posted 28 March 2013 - 06:56 AM
cc?
Lyqyd #4
Posted 28 March 2013 - 07:09 AM
"CC" is an abbreviation for "ComputerCraft". He means type it into your in-game computer's shell prompt. He's glossed over the fact that http is disabled by default.
remiX #5
Posted 28 March 2013 - 07:30 AM
"CC" is an abbreviation for "ComputerCraft". He means type it into your in-game computer's shell prompt. He's glossed over the fact that http is disabled by default.

Never think of that, woops.

To enable http, go into the config folder and open ComputerCraft.cfg (I think it's called that) and set http_api to true
CCJJSax #6
Posted 29 March 2013 - 01:50 PM
You could also navigate to your minecraft save file for that world, and open computercraft folder then put it in the correct file there (numbers correspond to ComputerID) I like to do this because I can use a more effective text editor like Notepad++.
latemail #7
Posted 09 April 2013 - 02:59 AM
You could also navigate to your minecraft save file for that world, and open computercraft folder then put it in the correct file there (numbers correspond to ComputerID) I like to do this because I can use a more effective text editor like Notepad++.

Also possible: (so every turtle can use the same code)
- extract the computercraft.zip (located in minecraft/mods)
- remove/delete the zip.file
- store your code in lua/rom/programs/turtle –>> every turtle can access the code
- "… use a more effective text editor like Notepad++."


!! automatic update does not function for CC any more !!