Jump to content




Error when trying to test peripheral

java peripheral

4 replies to this topic

#1 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 27 March 2012 - 01:06 AM

Ok so I've coded a peripheral,
I recompile and reobfuscate,
I then put my code in to my mods folder to test,
And then I get this error when trying to place the peripheral next to a computer:
Spoiler


I don't have a clue as to what is happening.

#2 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 27 March 2012 - 04:26 AM

did you implement all of the IPeripheral methods?

#3 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 27 March 2012 - 05:39 AM

Yep,
I've managed to fix it now, but for some reason further back in my code was causing getMethods() to return null,
Which in my own opinion shouldn't cause minecraft to crash it should just mark it as having no methods like,
if(periph.getMethods() == null){
methods = new String[]{};
}else{
methods = periph.getMethods();
}

Now I have another error I need to figure out.
But it is a simple one.

#4 rockymc

  • Members
  • 103 posts

Posted 29 March 2012 - 04:21 PM

Are you using 1.31 for 1.2.3?

#5 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 29 March 2012 - 06:53 PM

View Postrockymc, on 29 March 2012 - 04:21 PM, said:

Are you using 1.31 for 1.2.3?

Yes I was,
But I've fixed my problems now.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users