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

Automatically Reloading/updating Script Files From The Filesystem, Not The Zipped Cc-Mod

Started by amaasbier, 04 October 2013 - 10:10 AM
amaasbier #1
Posted 04 October 2013 - 12:10 PM
Hello,

I'm new here and to MC/CC in general, so please bear with me.

As the topic already states, I am trying to have CC script files that I can edit in an external editor and save that to the filesystem. When the file is saved, I want to immediately have it updated within MC/CC, but it seems to me this is not possible (anymore?).

I've searched around the forums and found this little flamewar, where this post stated, it would be possible to do this by creating files in the following folder:
MINECRAFT/mods/ComputerCraft/lua/rom

Unfortunately this did not work for me. I also found this information in this post.

These are the various folders I have tried for the mod file Computercraft1.56.zip (also trying if restarting MC helped):
Spoiler

~/.minecraft/mods/ComputerCraft/lua/rom
~/.minecraft/mods/ComputerCraft1.56/lua/rom
~/.minecraft/mods/ComputerCraft/assets/computercraft/lua/rom
~/.minecraft/mods/ComputerCraft1.56/assets/computercraft/lua/rom
~/.minecraft/mods/assets/computercraft/lua/rom

Changing files within the zip file works like a charm, but the problem is, that i have to restart MC for every tiny change. I am using local Single Player on GNU/Linux btw.
Thanks
Zudo #2
Posted 04 October 2013 - 12:42 PM
If you are wanting it for a specific PC, you need to go to:
~/.minecraft/saves/[savename]/computer/[computerid]

If you want it for every computer, you can't make it update instantly. However, I believe the easiest way to insert files is with resource packs.
Lyqyd #3
Posted 04 October 2013 - 12:42 PM
With the advent of resource packs, the ComputerCraft folder in mods option is gone. There are/were plans to add the ability to use unzipped folders, like other resource packs can do, so that may work in the near future. I don't know whether or not that will also require restarting the game. You can always copy the files into individual computers, if you don't need them to be in rom. Check out the saves folder, look for a computer subdirectory in whichever save file you're using.

I actually use an older version to do development work so I can still copy files across easily. Final testing is done in the latest version.