Thread: Loading OSRS Data

Results 1 to 6 of 6
  1. #1 Loading OSRS Data 
    Donator

    Chief Sosa's Avatar
    Join Date
    Jun 2012
    Posts
    1,165
    Thanks given
    48
    Thanks received
    234
    Rep Power
    83
    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)

    Reply With Quote  
     

  2. #2  
    Ex RuneScape Pioneer

    Join Date
    Jun 2008
    Posts
    3,540
    Thanks given
    457
    Thanks received
    1,259
    Rep Power
    1015
    Post line 166

    Code:
    at ItemDef.forID(ItemDef.java:166)
    Reply With Quote  
     

  3. #3  
    Donator

    Chief Sosa's Avatar
    Join Date
    Jun 2012
    Posts
    1,165
    Thanks given
    48
    Thanks received
    234
    Rep Power
    83
    Quote Originally Posted by SeVen View Post
    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;
    		}

    Reply With Quote  
     

  4. #4  
    Registered Member
    Totty's Avatar
    Join Date
    Jan 2015
    Age
    22
    Posts
    222
    Thanks given
    53
    Thanks received
    382
    Rep Power
    602
    Did you update your ItemDef ReadValues + Pack OS Items?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Donator

    Chief Sosa's Avatar
    Join Date
    Jun 2012
    Posts
    1,165
    Thanks given
    48
    Thanks received
    234
    Rep Power
    83
    Quote Originally Posted by Totty View Post
    Did you update your ItemDef ReadValues + Pack OS Items?
    yeah

    Reply With Quote  
     

  6. #6  
    Donator

    Chief Sosa's Avatar
    Join Date
    Jun 2012
    Posts
    1,165
    Thanks given
    48
    Thanks received
    234
    Rep Power
    83
    Quote Originally Posted by fanofpackers View Post
    yeah just make
    Code:
    if (cache[j].id == i)
    into
    Code:
    if (cache[j] != null && cache[j].id == i)
    or something
    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();

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 30
    Last Post: 07-18-2015, 04:24 PM
  2. Loading OSRS data
    By Lennard in forum Show-off
    Replies: 6
    Last Post: 03-22-2015, 01:20 PM
  3. 317 Client Loading 474 Data
    By Mikey` in forum Downloads
    Replies: 30
    Last Post: 09-01-2012, 04:02 AM
  4. Loading 474 data.
    By I Justin I in forum Help
    Replies: 3
    Last Post: 07-07-2010, 10:41 AM
  5. Loading NPC data through SQL
    By HcoFlame in forum Tutorials
    Replies: 15
    Last Post: 07-11-2008, 07:21 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •