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

[Solved] How to use externally written programs?

Started by Lettuce, 09 June 2015 - 11:45 PM
Lettuce #1
Posted 10 June 2015 - 01:45 AM
Back from the dead. Time to see if this forum is as good as it used to be.

I recently rediscovered this mod, and found it changed quite dramatically from when I last used it. When I last played, I could just go to ComputerCraft/programs/doMagic, then execute that program from any save. Now that the mod is a .jar, I don't know how to do that.

I would really rather use Notepad++ over the internal editor, if possible, and would also rather not have to put the file individually on every save, in every turtle or computer that needs it.

Additionally, a little non sequitur: do programs still have no extension? doMagic is valid, doMagic.txt (or .lua) is not?

Thank you,

Lettuce
Edited on 10 June 2015 - 12:09 AM
biggest yikes #2
Posted 10 June 2015 - 01:59 AM
To save files in the rom directory, open the jar with a tool like WinRAR or 7-Zip, navigate to assets/computercraft/lua/rom/programs and move programs to there.
Alternatively, rename the "computercraft.jar" (or whatever) to "computercraft.zip", navigate to assets/computercraft/lua/rom/programs and move programs to there. When you're done, rename "computercraft.zip" back to "computercraft.jar" (or whatever).
Files can be any extension, although standard computercraft programs have no extension.
Edited on 10 June 2015 - 12:00 AM
Quintuple Agent #3
Posted 10 June 2015 - 02:01 AM
If he is talking about non-rom files
All files should be in "saves/(your world)/computer/" then you need to find the computer id and all of that computers files are in there.
Also cc still does files with no extensions, however it will also work with files that do

However now that I look at it again it looks as if he is talking about ROM files, in which case I think the newer versions have some special files you can make to have your own custom rom file (I think i was remember some old suggestion posts). Older versions you will need to extract and remake the .jar
Edited on 10 June 2015 - 12:07 AM
Lettuce #4
Posted 10 June 2015 - 02:06 AM
Ah. I thought there was a folder somewhere that I was missing. Using 7zip will be kind of annoying everytime I test a program, but oh well. At least I know how to do it now.
Faster replies than ever. I hadn't even closed the window yet. Thanks a lot, guys.

–Lettuce
biggest yikes #5
Posted 10 June 2015 - 02:07 AM
Using 7zip will be kind of annoying everytime I test a program, but oh well.
if you really hate 7zip, you can rename it to .zip, do stuff, rename it back to .jar
I think the newer versions have some special files you can make to have your own custom rom file
that'd be resource packs.
Edited on 10 June 2015 - 12:08 AM
Lettuce #6
Posted 10 June 2015 - 02:11 AM
Using 7zip will be kind of annoying everytime I test a program, but oh well.
if you really hate 7zip, you can rename it to .zip, do stuff, rename it back to .jar

I wouldn't say "hate", it's just an extra step. I used to have a shortcut. Thanks for the help.
flaghacker #7
Posted 10 June 2015 - 06:10 AM
The proper way to do this would be resource packs.
biggest yikes #8
Posted 10 June 2015 - 03:17 PM
The proper way to do this would be resource packs.

I think the newer versions have some special files you can make to have your own custom rom file
that'd be resource packs.
flaghacker #9
Posted 10 June 2015 - 04:06 PM
The proper way to do this would be resource packs.

I think the newer versions have some special files you can make to have your own custom rom file
that'd be resource packs.

I wanted to point him to a tutorial. Really helpfull comment btw, thanks.
Edited on 10 June 2015 - 02:07 PM