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

How to install computercraft into dev-enviroment?

Started by flaghacker, 02 March 2015 - 06:53 PM
flaghacker #1
Posted 02 March 2015 - 07:53 PM
I'm trying to develop a peripheral.

I have put the computercraft api in src/api/java/… and that works perfectly. When I try to add the computercraft jar into eclipse/mods, I get a bunch of errors, properly because of obfuscation. When I de-obfuscate computercraft (using BON2) and put the de-obfuscated jar in eclipse/mods, I get an error when I open a computer or turtle:

https://www.dropbox....nipsel.PNG?dl=0
(I'm sorry for the Dropbox link, I can't upload images to Imgur for whatever reason)

I'm using computercraft 1.65. Does anyone know how to set-up a computercraft dev-enviroment correctly?
Edited on 02 March 2015 - 06:57 PM
SquidDev #2
Posted 02 March 2015 - 08:36 PM
Add CodeChickenCore (make sure you get the 1.7.10 universal/dev version - not the 1.8). It does runtime de-obfuscation. Add it to the eclipse/mods folder like any other mod and everything should just work fine.
Edited on 02 March 2015 - 07:37 PM
flaghacker #3
Posted 02 March 2015 - 08:54 PM
Thanks, that works.
flaghacker #4
Posted 02 March 2015 - 09:09 PM
Another question, how can I return a (lua) array from the "callMethod" method in IPeripheral?
flaghacker #5
Posted 02 March 2015 - 09:28 PM
Nvm, I found the solution in a quite unexpected place:
https://github.com/theoriginalbit/Peripheral-Framework/blob/master/example/java/mod/tile/TileSpecial.java#L52