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

Using apis without the need for extracting your mod's zip/rebooting the computer after peripheral attach

Started by Xfel, 05 August 2012 - 10:25 AM
Xfel #1
Posted 05 August 2012 - 12:25 PM
One of the biggest onnoyances with custom peripherals is (in my opinion) the necessairity to extract the mod's zip file the right way and the fact that the mounted apis need to be loaded manually or by reboot.

So, I came up with a new invariant. The download includes a java class named RomInjector. It will write your api files into computercraft's rom directory. This is handy with 1.4 as the main part of CC's api can stay in the zip, and your aditions will be located in the afterload folder.

Download
Cloudy #2
Posted 05 August 2012 - 12:38 PM
Ah, nice! I will try to expose our internal jar/zip functionality to other developers (you could most likely do it using reflection right now). Won't be until next release though.
Xfel #3
Posted 05 August 2012 - 12:54 PM
Seems like something went wrong during the upload. The new version should work.
damn wrong thread