Post line 166
Code:at ItemDef.forID(ItemDef.java:166)
|
|
I followed this [Only registered and activated users can see links. ] but when I log in after adding I get this
Code:Exception in thread "Thread-5" java.lang.NullPointerException at ItemDef.forID(ItemDef.java:166) at ItemDef.getSprite(ItemDef.java:2600) at client.drawInterface(client.java:9115) at client.drawTabArea(client.java:2423) at client.drawGameScreen(client.java:8886) at client.processDrawing(client.java:9877) at RSApplet.run(RSApplet.java:202) at client.run(client.java:5321) at java.lang.Thread.run(Unknown Source)
Post line 166
Code:at ItemDef.forID(ItemDef.java:166)

Code:public static ItemDef forID(int i) { for (int j = 0; j < 10; j++) if (cache[j].id == i) // line 166 return cache[j]; cacheIndex = (cacheIndex + 1) % 10; ItemDef itemDef = cache[cacheIndex]; stream.currentOffset = streamIndices[i]; itemDef.id = i; itemDef.setDefaults(); itemDef.readValues(stream); if (itemDef.modifiedModelColors != null) { for (int i2 = 0; i2 < itemDef.modifiedModelColors.length; i2++) { if (itemDef.originalModelColors[i2] == 0) { itemDef.originalModelColors[i2] = 1; } } } if (itemDef.id == i && itemDef.modifiedModelColors == null) { itemDef.modifiedModelColors = new int [1]; itemDef.originalModelColors = new int [1]; itemDef.modifiedModelColors[0] = 0; itemDef.originalModelColors[0] = 1; }
After doing that same error but I added the highlighted to unpackConfig and now I can log in further without dc'ing but it's still black screen and i get this error
Code:Error: T2 - 65,81,73 - 115,3084,3501 - 0,0,6,96,12,123,0,35,71,4,61,0,53,28,4,33,0,71,103,4,45,0,82,-128,6,47,0,95,96,10,5,0,96,35,7,127,0,100,31,5,25,0,107,-54,4,-81,0,111,-51,4,Code:cache = new ItemDef[10]; for (int k = 0; k < 10; k++) cache[k] = new ItemDef();
| « i need help please with client | how do I edit paragon cs2's? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |