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

How to load a code from Disk on Beginners Turtle / CCEdu

Started by tokoi, 21 May 2017 - 12:45 PM
tokoi #1
Posted 21 May 2017 - 02:45 PM
Hi. I am trying the CCEdu in these days.
Please tell me How to load a code from FloppyDisk on Beginners Turtle / CCEdu .
I can "copy program to disk" but I don't know how to use these disk .

Thank you .
Bomb Bloke #2
Posted 22 May 2017 - 04:32 AM
Place a Disk Drive next to your regular turtle, and the disk into that. To copy the script from the disk to the turtle itself, type into the turtle's command line:

cp /disk/<scriptName> /

You can then run the script by typing just its name, or edit it by typing "edit <scriptName>".
Edited on 22 May 2017 - 02:33 AM
tokoi #3
Posted 22 May 2017 - 07:37 AM
Place a Disk Drive next to your regular turtle, and the disk into that. To copy the script from the disk to the turtle itself, type into the turtle's command line:

cp /disk/<scriptName> /

You can then run the script by typing just its name, or edit it by typing "edit <scriptName>".

Bomb Bloke . Thank you for your reply.
Can I use the disk with a Beginners Turtle not a regular turtle in GUI ?
Bomb Bloke #4
Posted 22 May 2017 - 08:15 AM
First off: if you write a script on one Beginner Turtle (BT), then you don't need to copy it to another BT. It automatically gets saved to your character's "library", and that's accessible to all BTs.

However, if you write a script somewhere else (eg on a regular turtle) and want to copy that into your BT library, things get a little more complicated.

Go to your BT, switch to the code editor, and then hold Ctrl+T to exit that. You'll go to the same command line a regular turtle boots up to - any scripts you install now go onto the Beginner Turtle's "real drive", not your "library".

Enter in:

pastebin get dfSSzfZR inject

… and also install any other scripts you want library-ised. You can then type "inject <scriptname>" to import those other scripts into your CCEdu library.

You'll be asked to make a new script in your library using the buttons to the side (though you can instead select an existing script if you want to replace that), click back in the terminal window to refocus it, and then press Enter to complete the process.

If you then hold Ctrl+R the turtle will reboot, going back to its regular Beginner state (which you earlier kicked it out of earlier with Ctrl+T).
tokoi #5
Posted 22 May 2017 - 10:17 AM
Bomb Bloke, Thank you !