Jump to content




[Solved] How to use externally written programs?


8 replies to this topic

#1 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 10 June 2015 - 12: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 by Lettuce, 10 June 2015 - 01:09 AM.


#2 biggest yikes

  • Members
  • 573 posts

Posted 10 June 2015 - 12: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 by Atenefyr, 10 June 2015 - 01:00 AM.


#3 Quintuple Agent

  • Members
  • 107 posts
  • LocationThis page

Posted 10 June 2015 - 01: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 by Quintuple Agent, 10 June 2015 - 01:07 AM.


#4 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 10 June 2015 - 01: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

#5 biggest yikes

  • Members
  • 573 posts

Posted 10 June 2015 - 01:07 AM

View PostLettuce, on 10 June 2015 - 01:06 AM, said:

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

View PostQuintuple Agent, on 10 June 2015 - 01:01 AM, said:

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 by Atenefyr, 10 June 2015 - 01:08 AM.


#6 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 10 June 2015 - 01:11 AM

View PostAtenefyr, on 10 June 2015 - 01:07 AM, said:

View PostLettuce, on 10 June 2015 - 01:06 AM, said:

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.

#7 flaghacker

  • Members
  • 655 posts

Posted 10 June 2015 - 05:10 AM

The proper way to do this would be resource packs.

#8 biggest yikes

  • Members
  • 573 posts

Posted 10 June 2015 - 02:17 PM

View Postflaghacker, on 10 June 2015 - 05:10 AM, said:

The proper way to do this would be resource packs.

View PostAtenefyr, on 10 June 2015 - 01:07 AM, said:

View PostQuintuple Agent, on 10 June 2015 - 01:01 AM, said:

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


#9 flaghacker

  • Members
  • 655 posts

Posted 10 June 2015 - 03:06 PM

View PostAtenefyr, on 10 June 2015 - 02:17 PM, said:

View Postflaghacker, on 10 June 2015 - 05:10 AM, said:

The proper way to do this would be resource packs.

View PostAtenefyr, on 10 June 2015 - 01:07 AM, said:

View PostQuintuple Agent, on 10 June 2015 - 01:01 AM, said:

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 by flaghacker, 10 June 2015 - 03:07 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users