Thread: Bug!!

Results 1 to 7 of 7
  1. #1 Bug!! 
    Registered Member
    Join Date
    Jun 2012
    Posts
    91
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11

    Please help out
    Reply With Quote  
     

  2. #2  
    Registered Member Unicode's Avatar
    Join Date
    May 2013
    Age
    30
    Posts
    296
    Thanks given
    18
    Thanks received
    6
    Rep Power
    16
    Quote Originally Posted by pindapoep View Post

    Please help out
    We need to know what you are doing to cause this problem..

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2010
    Posts
    254
    Thanks given
    14
    Thanks received
    17
    Rep Power
    12
    Array out of bounds. Show us lines code 2057 - 2380


    Why is that happening?
    Well often arrays aren't checked to see if they are "within" range of the array ex: you have an array with a length of 5 (String[] str = {"this", "is", "a", "simple", "line"}

    You want to get the "line" part of the String[] str, so you type return str[5]; well that's out of bounds, why? because an array always starts at 0 and upwards (Yes 0 is a number). So you would count like this: 0, 1, 2, 3, 4 (5 numbers right?)


    That's most-likely what this problem is.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2012
    Posts
    91
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    The lines:
    Server.itemHandler.createGroundItem(c, NPCDrops.normalDrops.get(npcs[i].npcType)[random][0], npcs[i].absX, npcs[i].absY, NPCDrops.normalDrops.get(npcs[i].npcType)[random][1], c.playerId);
    dropItems(i); // npc drops items!
    I am getting this error after i killed an barrow brother
    Reply With Quote  
     

  5. #5  
    Registered Member Unicode's Avatar
    Join Date
    May 2013
    Age
    30
    Posts
    296
    Thanks given
    18
    Thanks received
    6
    Rep Power
    16
    It's having problems trying to create a drop for the Barrows Brothers. Did you recently add anything to any of their drops?

    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2012
    Posts
    91
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    nope never editted barrows
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jun 2012
    Posts
    91
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    bump
    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. How To Stop The Trade Bug
    By william1434 in forum Tutorials
    Replies: 13
    Last Post: 10-07-2007, 10:22 AM
  2. Replies: 3
    Last Post: 08-11-2007, 08:33 AM
  3. Fixing Scamming Bug
    By blakeman8192 in forum Tutorials
    Replies: 11
    Last Post: 08-04-2007, 02:06 PM
  4. [TUT]herblore bug fix in testscape
    By lattmjolk1 in forum Tutorials
    Replies: 1
    Last Post: 06-19-2007, 03:14 PM
  5. NPC Magic Distance Bug Fix
    By Zekkalkan in forum Tutorials
    Replies: 5
    Last Post: 05-06-2007, 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
  •