Thread: Item id Out of bounds

Results 1 to 3 of 3
  1. #1 Item id Out of bounds 
    Registered Member
    Cody.'s Avatar
    Join Date
    Sep 2008
    Age
    26
    Posts
    535
    Thanks given
    0
    Thanks received
    0
    Rep Power
    291
    Code:
    Exception in thread "Thread-6" java.lang.ArrayIndexOutOfBoundsException: 14484
            at ItemDef.forID(ItemDef.java:196)
            at ItemDef.getSprite(ItemDef.java:478)
            at client.drawInterface(client.java:8159)
            at client.drawTabArea(client.java:2152)
            at client.drawGameScreen(client.java:7974)
            at client.processDrawing(client.java:8734)
            at RSApplet.run(RSApplet.java:94)
            at client.run(client.java:4981)
            at java.lang.Thread.run(Unknown Source)
    How do i change the maximum Item Id i think it only goes to like 11800 or something.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Age
    28
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    In ItemDef class you will see this array being populated:

    Code:
    streamIndices = new int[totalItems];
    make it something like:

    Code:
    streamIndices = new int[totalItems + 15000];
    Very very cheap fix, but It should work.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Cody.'s Avatar
    Join Date
    Sep 2008
    Age
    26
    Posts
    535
    Thanks given
    0
    Thanks received
    0
    Rep Power
    291
    Thank you!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. item.cfg out of bounds
    By infallible in forum Help
    Replies: 27
    Last Post: 10-20-2010, 07:16 PM
  2. out of bounds, item.cfg
    By F R 0 0 B in forum Help
    Replies: 3
    Last Post: 02-10-2010, 10:46 PM
  3. Out of bounds?
    By Byakuya Kuchiki in forum Help
    Replies: 0
    Last Post: 12-23-2009, 10:11 PM
  4. Out Of Bounds
    By Greyfield in forum Snippets
    Replies: 11
    Last Post: 11-10-2009, 04:41 AM
  5. Out of bounds
    By Hexagon in forum Help
    Replies: 0
    Last Post: 05-16-2009, 04:34 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
  •