Jump to content




Running CC in eclipse. NPE


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

#1 rewbycraft

  • Members
  • 5 posts

Posted 23 December 2013 - 09:55 AM

Hi all!

After having written several peripherals for CC I wanted to start doing it "properly".
E.g. using an IDE instead of just gedit and a Makefile.
Setting up eclipse wasn't too hard (although I did have to use the official linux dl because the version in my distro repos is hopelessly outdated, so I have kepler now), the MCF tutorials are very helpful.

The thing is that, unlike previously, I now have to use a deobfuscated version of CC.
I managed to deobfuscate it just fine using BON, eclipse is happy (although I can't find net.minecraft.src.GuiButton as the guide says I should) and minecraft boots just fine.
The problem arises when I try to enter a world (created a new world to see if my new blocks are registering correctly, even if they don't do anything).
I get this error:
Spoiler
It would seem it has issues reading it's zip file. Archive Manager says that the file is fine. I do have the assets folder there and everything!
I have tried the CodeChickenCore method, but cc just keeps complaining about some field not existing on MC boot.

I am using the latest recommended MCF (953). Clean setup following tutorials.
I have not yet put in any code using the CC api (just a basic block to see if i could make it work).

Help much appreciated!

P.S. Sorry for my english, it's not my native language.

Greetings,
rewbycraft

EDIT: Forgot to spoiler the error.

Edited by rewbycraft, 23 December 2013 - 09:55 AM.


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 23 December 2013 - 08:13 PM

You don't need to deobf CC, you don't need to deobf any mod, ever!

http://www.computerc...post__p__149411

#3 rewbycraft

  • Members
  • 5 posts

Posted 24 December 2013 - 06:42 AM

View Posttheoriginalbit, on 23 December 2013 - 08:13 PM, said:

You don't need to deobf CC, you don't need to deobf any mod, ever!

http://www.computerc...post__p__149411

*facepalm* I had tried it before and it didn't work. Turns out my CodeChickenCore had gotten corrupted somehow, new one and it works just fine!

Thanks for the help TheOriginalBit, I really need to check file integrity more often...

If an admin sees this, please close the thread. (I don't know how).

Edited by rewbycraft, 24 December 2013 - 06:43 AM.


#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 24 December 2013 - 07:17 AM

View Postrewbycraft, on 24 December 2013 - 06:42 AM, said:

If an admin sees this, please close the thread. (I don't know how).
For future reference click the "report" button and type "lock please", admins/moderators do not always see textual requests. You do not need to do it now however, I have done it for you.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users