Jump to content




How to install computercraft into dev-enviroment?


  • You cannot reply to this topic
4 replies to this topic

#1 flaghacker

  • Members
  • 655 posts

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 by flaghacker, 02 March 2015 - 07:57 PM.


#2 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

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 by SquidDev, 02 March 2015 - 08:37 PM.


#3 flaghacker

  • Members
  • 655 posts

Posted 02 March 2015 - 08:54 PM

Thanks, that works.

#4 flaghacker

  • Members
  • 655 posts

Posted 02 March 2015 - 09:09 PM

Another question, how can I return a (lua) array from the "callMethod" method in IPeripheral?

#5 flaghacker

  • Members
  • 655 posts

Posted 02 March 2015 - 09:28 PM

Nvm, I found the solution in a quite unexpected place:
https://github.com/t...pecial.java#L52





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users