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

[Question]Unpacking the 'default' programs...

Started by Lost Ninja, 12 October 2012 - 02:32 PM
Lost Ninja #1
Posted 12 October 2012 - 04:32 PM
I know where to find the programs that come with CC, is it possible to unpack them to some place so I can edit these rather than as I do now editing them then pastebin the updates?
GopherAtl #2
Posted 12 October 2012 - 04:35 PM
not certain what you mean, but if you mean you want to edit, for example, excavate, in-game, you can just copy it out of rom first…

copy rom/excavate myexcavate

this would make a copy of excavate called myexcavate in the root directory which you can edit.
Lost Ninja #3
Posted 12 October 2012 - 05:10 PM
No I mean is it possible to override the entire lua directory from the zip file, I only want the turtle programs at the moment but might look at other programs as well as time goes by. Would be much easier to have them in a place where they are the default rather than having to copy them to each machine.
GopherAtl #4
Posted 12 October 2012 - 05:15 PM
You can extract the zip file, just make sure to rename it "ComputerCraft" without the version info. Other than that, no, only files in the mod directory appear on all computers.
Lost Ninja #5
Posted 12 October 2012 - 07:07 PM
Aha that is just what I wanted to do. Thanks for the help.
RoD #6
Posted 10 July 2013 - 06:12 PM
its great to see how "edit" works… AMAZING all the computercraft code to edit the programs in front of my eyes XD this is really cool thanks :D/>