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

How to copy/paste code?

Started by dishboy09, 16 February 2013 - 01:57 AM
dishboy09 #1
Posted 16 February 2013 - 02:57 AM
Title: How to copy/paste code?

I am very new to LUA and computercraft, and at this point in my world i do not have a chunk loader so everytime i log my turtles stop. How can i just paste the code back into them instead of re-writing it everytime?
Lyqyd #2
Posted 16 February 2013 - 04:23 AM
You don't have to paste it back in or re-write it. Set labels on them and they won't lose their ID (and thereby their fuel level and all the files they contain). Use `label set computername`.
bjornir90 #3
Posted 16 February 2013 - 05:21 AM
Don't know if lyqyd's answer solve your problem, but I think you should use edit, and then ctrl save so it won't disappear everytime you left your world :)/>
IronHammer354_ #4
Posted 16 February 2013 - 05:44 AM
i use pastebin :/
dishboy09 #5
Posted 16 February 2013 - 05:47 AM
How do you use pastebin?
IronHammer354_ #6
Posted 16 February 2013 - 06:10 AM
Well im sorry i dont personally use paste bin but i know my firend does im trying to learn and find out but he is not on :/
Orwell #7
Posted 16 February 2013 - 06:15 AM
Lyqyd's advice is the advise you need. Run this in the shell and you won't lose your code anymore:

label set myTurtle
bjornir90 #8
Posted 16 February 2013 - 06:51 AM
Lyqyd's advice is the advise you need. Run this in the shell and you won't lose your code anymore:

label set myTurtle
This work only if you destroy the turtle, but he never say that he destroy the turtle, only that he lose everything when the turtle shutdown, so I thougt it was that