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

Making a peripheral

Started by TechMasterGeneral, 22 April 2015 - 05:20 PM
TechMasterGeneral #1
Posted 22 April 2015 - 07: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/Cyb3rWarri0r8/CCUUID
Lyqyd #2
Posted 22 April 2015 - 07:29 PM
Java arrays are zero-indexed, not one-indexed.
TechMasterGeneral #3
Posted 23 April 2015 - 12:17 AM
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 on 22 April 2015 - 10:31 PM
theoriginalbit #4
Posted 23 April 2015 - 12:19 AM
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.
TechMasterGeneral #5
Posted 23 April 2015 - 04:13 AM
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!
TechMasterGeneral #6
Posted 25 April 2015 - 01: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 on 25 April 2015 - 03:06 PM