This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Adding programs to rom without modifying zip?
Started by gronkdamage, 13 March 2013 - 07:57 PMPosted 13 March 2013 - 08:57 PM
I'm unable to post a new post, and have a quick question: As we add new programs, what's the easiest way to include them for all bots, without having to edit the computercraft.zip mod; and then add them manually everytime. (I'm running a server, and I hate having to take the server down just to update the .zip file…) - Thanks!
Posted 14 March 2013 - 05:43 AM
Split into new topic.
Go into your mods folder. Create a new folder named ComputerCraft. Create directories inside it:
lua
lua/rom
lua/rom/programs
lua/rom/apis
lua/rom/programs/turtle (if desired)
You'll notice that these match directories found in the zip. ComputerCraft will use both locations. You can add files to the folder structure without shutting down the server.
Go into your mods folder. Create a new folder named ComputerCraft. Create directories inside it:
lua
lua/rom
lua/rom/programs
lua/rom/apis
lua/rom/programs/turtle (if desired)
You'll notice that these match directories found in the zip. ComputerCraft will use both locations. You can add files to the folder structure without shutting down the server.
Posted 14 March 2013 - 11:48 AM
Thanks! Will this update on the fly; or will I still have to reboot my server? (having issues with 1.5 and my mods; so can't test it just yet…)
Thanks again!
Thanks again!
Posted 14 March 2013 - 12:12 PM
They are available immediately.
Posted 14 March 2013 - 02:21 PM
Awesome! Thanks. Now I just gotta get my server back up and running ;)/>
Posted 22 March 2013 - 12:00 AM
Nice but how can I do this with CC Emu? It just doesn't seem to be working.
Posted 22 March 2013 - 12:17 AM
should be exactly the same for cc-emu, except in the folder where the zip is.
Posted 22 March 2013 - 12:19 AM
It doesn't seem to work. Can you/someone test it for me. I am currently on a mobile device. ( I just left home )
Posted 22 March 2013 - 02:18 AM
On the server me and my brother use, we just unpacked the entire zip file into a folder called "ComputerCraft" (matching the directory structure given in a previous post) and removed the .zip file…. The server loads the unpacked mod just fine and will update on the fly if we edit/add/remove any programs.
Posted 22 March 2013 - 02:25 AM
It doesn't always play nice though. especially with the newer versions of CC it seems.On the server me and my brother use, we just unpacked the entire zip file into a folder called "ComputerCraft" (matching the directory structure given in a previous post) and removed the .zip file…. The server loads the unpacked mod just fine and will update on the fly if we edit/add/remove any programs.
Posted 22 March 2013 - 02:31 AM
Mac:It doesn't seem to work. Can you/someone test it for me. I am currently on a mobile device. ( I just left home )
- Extract the computercraft.jar located in the bin folder in cc-emu's 'Application Support' folder
- Modify the files you wish to change
- Remove the META-INF folder
- Zip the contents of the extracted folder
- Name the zip 'computercraft.jar' and hit '.jar' on the 'do you wish to use jar extension'
- Boot up cc-emu
- done
- Use WinRar to open (not extract) the 'computercraft.jar' located in the bin folder of cc-emu's %APPDATA% folder
- Make the changes you wish to make
- Remove META-INF
- Boot up cc-emu
- done
- No idea, I'd assume similar to Mac OS except it cc-emu's folder would be in 'home' or something like that.
Posted 10 May 2014 - 06:59 PM
will this work in cc 1.63?
Posted 10 May 2014 - 07:17 PM
Just an FYI, you may want to change the file extension to .zip to easily extract the contents :D/>Mac:
- Extract the computercraft.jar located in the bin folder in cc-emu's 'Application Support' folder
- Modify the files you wish to change
- Remove the META-INF folder
- Zip the contents of the extracted folder
- Name the zip 'computercraft.jar' and hit '.jar' on the 'do you wish to use jar extension'
- Boot up cc-emu
- done
Posted 11 May 2014 - 02:33 AM
or you just right-click the jar and open it with 'Archive Utility' and not have to worry about changing extensions…Just an FYI, you may want to change the file extension to .zip to easily extract the contents :D/>
Posted 11 May 2014 - 04:07 AM
True, but some human beings I have helped with computery stuff in the past have considered that to be above their level of competence.or you just right-click the jar and open it with 'Archive Utility' and not have to worry about changing extensions…Just an FYI, you may want to change the file extension to .zip to easily extract the contents :D/>
Posted 15 July 2014 - 04:04 AM
Hello, my question is similar to this thread, so i am using it instead of creating my own. I have my own program in /rom and it is working until I want to make it configurable via config file in basic computer, can you tell me the path I should use to load in my program in /rom some variables from main computer directory? I tried to use os.loadAPI("/config_file"), but it just has broken my computer. :)/> I need users to configure advanced functions which are used to communicate with world for example over e-mail, need the functions loaded from start, so I added it to ROM, but also need them to be configurable for users. Thank you very much!