Jump to content




Making a peripheral

peripheral computer

5 replies to this topic

#1 TechMasterGeneral

  • Members
  • 149 posts
  • LocationUnited States

Posted 22 April 2015 - 06:20 PM

I'm trying to build a peripheral addon but its my first time and I'm not exactly sure what I'm doing. Here is the error from my work so far: http://paste.ee/p/GU1Ff
Here is the repository with the code:
https://github.com/C...Warri0r8/CCUUID

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 22 April 2015 - 06:29 PM

Java arrays are zero-indexed, not one-indexed.

#3 TechMasterGeneral

  • Members
  • 149 posts
  • LocationUnited States

Posted 22 April 2015 - 11:17 PM

View PostLyqyd, on 22 April 2015 - 06:29 PM, said:

Java arrays are zero-indexed, not one-indexed.
ahh duh! Sorry I'm taking a class where the flowchart thing we use is one-indexed.. :wacko:

EDIT: This happened though: http://paste.ee/p/T4wGM

Edited by TechMasterGeneral, 22 April 2015 - 11:31 PM.


#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 22 April 2015 - 11:19 PM

if it's not clear Lyqyd is probably talking about right here. which on that note
@Override
public String[] getMethodNames() {
    return new String[]{ "generateUUID" };
}
will create a new string array of the size required and add the supplied elements into it.

#5 TechMasterGeneral

  • Members
  • 149 posts
  • LocationUnited States

Posted 23 April 2015 - 03:13 AM

View Posttheoriginalbit, on 22 April 2015 - 11:19 PM, said:

if it's not clear Lyqyd is probably talking about right here. which on that note
@Override
public String[] getMethodNames() {
	return new String[]{ "generateUUID" };
}
will create a new string array of the size required and add the supplied elements into it.
Oh okay gotcha! Its working now thanks!

#6 TechMasterGeneral

  • Members
  • 149 posts
  • LocationUnited States

Posted 25 April 2015 - 12:35 AM

So I've been doing some work and I have it thus far. It doesn't apply the texture to the entity model. What do I need to do to fix that?

EDIT: Nevermind. I fixed it.

Edited by TechMasterGeneral, 25 April 2015 - 04:06 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users