That's readTriByte()
|
|
This is really getting annoying, but now I am getting a Thread-6 exception
Here is line 392:Code:Exception in thread "Thread-6" java.lang.NullPointerException at Model.<init>(Model.java:392) at Model.method462(Model.java:1023) at ItemDef.method201(ItemDef.java:491) at ItemDef.getSprite(ItemDef.java:376) at client.drawInterface(client.java:8988) at client.drawTabArea(client.java:2398) at client.drawGameScreen(client.java:8783) at client.processDrawing(client.java:9538) at RSApplet.run(RSApplet.java:110) at client.run(client.java:5266) at java.lang.Thread.run(Unknown Source)
Code:if (is[is.length - 1] == -1 && is[is.length - 2] == -1)

That's readTriByte()
Anywhere under public final class Stream extends NodeSub {
What? lol can you please add it into my stream and post it here I am a novice at client developing
EDIT: I will try that thanks alex
Now I am getting some errors
Sorry for asking for so much helpCode:client.java:1543: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ client.java:1555: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ client.java:1572: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ client.java:1581: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ client.java:1592: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ client.java:1611: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ client.java:1634: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ client.java:1644: cannot find symbol symbol : variable id location: class ItemDef menuActionCmd1[menuActionRow] = itemDef.id; ^ Note: client.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 8 errors Press any key to continue . . .![]()

Code:public byte readTriByte() { //YOUR CODE HEAR }

That should do it.Code:public byte readTriByte() { final int v(int i) { currentOffset += 3; return (0xff & buffer[currentOffset - 3] << 16) + (0xff & buffer[currentOffset - 2] << 8) + (0xff & buffer[currentOffset - 1]); } }
Updated op

The variable id isn't declared anywhere in your ItemDef class.
Note that it must be initialised as well.

Post the code that the array is initialised in.
| « Auto-updating Cache Help[DELTA][bluurs] | blurr webclient connection problem » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |