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

How Do I Export Code (Computer Craft to PC)

Started by webbi02, 31 December 2012 - 05:48 AM
webbi02 #1
Posted 31 December 2012 - 06:48 AM
Ive been having so much trouble, i just wrote a programme which is about 150 lines long in a turtle called 'room' which makes a room any size and height you want it. But i dont know how to export it from feed the beast or just computer craft to my pc so i can copy it and post it on the forums, the only thing i can think of is rewriting it all out (which i do not want todo)

thanks
NDFJay #2
Posted 31 December 2012 - 06:51 AM
if your playing on a server you need to get the file from the server admin

if your playing single player then you first need to label the turtle


label set myProgram

then you go to your FTB directory > world > computer

open labels.txt and look for the computer ID for the turtle you just labelled then open the folder with that ID and your program will be in there, just copy it out or open it with notepad or notepad++ or what ever you want to use, I suggest Notepad++
remiX #3
Posted 31 December 2012 - 07:56 AM
Or use pastebin if the http api is enabled,

pastebin put fileName

You will then get back a code which you go onto pastebin.com/code and you will find the code there :)/>