21 posts
Posted 21 January 2013 - 02:30 PM
Is it possible to paste or import code written outside of ComputerCraft into an in game computer? If so, how do i do it?
2005 posts
Posted 21 January 2013 - 02:59 PM
Local game or server? Http enabled or not? Bad guys cutting off your fingers or anything like that?
21 posts
Posted 21 January 2013 - 03:04 PM
Local game but not http enabled.
2005 posts
Posted 21 January 2013 - 03:32 PM
Local games are the easiest. You can just go to saves\worldname\computer\ID\ under your minecraft directory (where worldname is the worldname and ID is the numberID of the computer/turtle where you need to put the file). Edit them directly using your text editor of choice (notepad++ is quite popular), you don't even have to exit the game while you do it (you don't even have to pause, though I'm not sure why you wouldn't), as long as the file isn't currently in use by a running program.
7508 posts
Location
Australia
Posted 21 January 2013 - 03:33 PM
If you don't know the I'd of the computer/turtle type "id" into the terminal and press enter. That number is the id.
EDIT: Also if you are running 1.4 you will need to create at least one file on the computer first before the file will appear in your computers directory :)/>
21 posts
Posted 21 January 2013 - 03:59 PM
Local games are the easiest. You can just go to saves\worldname\computer\ID\ under your minecraft directory (where worldname is the worldname and ID is the numberID of the computer/turtle where you need to put the file). Edit them directly using your text editor of choice (notepad++ is quite popular), you don't even have to exit the game while you do it (you don't even have to pause, though I'm not sure why you wouldn't), as long as the file isn't currently in use by a running program.
Oh that's easy enough. I just used wordpad and it worked fine. Is there any particular advantage to notepad++?
If you don't know the I'd of the computer/turtle type "id" into the terminal and press enter. That number is the id.
EDIT: Also if you are running 1.4 you will need to create at least one file on the computer first before the file will appear in your computers directory :)/>
Thanks. I was confused when the id I wanted wasn't there.
7508 posts
Location
Australia
Posted 21 January 2013 - 04:05 PM
Oh that's easy enough. I just used wordpad and it worked fine. Is there any particular advantage to notepad++?
Notepad++ can do syntax highlighting… makes it easier to see when your doing something wrong… :)/>
21 posts
Posted 21 January 2013 - 04:08 PM
Oh that's easy enough. I just used wordpad and it worked fine. Is there any particular advantage to notepad++?
Notepad++ can do syntax highlighting… makes it easier to see when your doing something wrong… :)/>
Awesome. I'll download it.
14 posts
Posted 22 January 2013 - 04:45 AM
Oh that's easy enough. I just used wordpad and it worked fine. Is there any particular advantage to notepad++?
Notepad++ can do syntax highlighting… makes it easier to see when your doing something wrong… :)/>
Awesome. I'll download it.
If you use Notepad++ you should go into "Settings -> Preferences -> Language Menu/Tab Settings -> Tab Settings" Change Tab size to 2 and tick the checkbox "Replace by space".
That will ensure your code stays the same way as it would ingame when pressing tab etc.