Thread: PI run spam (itemhandler

Results 1 to 8 of 8
  1. #1 PI run spam (itemhandler 
    Banned
    Join Date
    Feb 2012
    Posts
    341
    Thanks given
    42
    Thanks received
    9
    Rep Power
    0
    hey so i added some customs now my server is getting spammed
    with this

    Code:
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 17
            at server.world.ItemHandler.loadItemList(ItemHandler.java:381)
            at server.world.ItemHandler.<init>(ItemHandler.java:33)
            at server.Server.<clinit>(Server.java:58)
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 17
            at server.world.ItemHandler.loadItemList(ItemHandler.java:381)
            at server.world.ItemHandler.<init>(ItemHandler.java:33)
            at server.Server.<clinit>(Server.java:58)
    any ideas i dont know whats going on ?

    rep++
    Reply With Quote  
     

  2. #2  
    Not Funny
    Human's Avatar
    Join Date
    Sep 2011
    Age
    26
    Posts
    175
    Thanks given
    11
    Thanks received
    14
    Rep Power
    0
    You put the case #####: to high, make it lower, or in ItemHandler, and Config.java, chage the max item limit.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Feb 2012
    Posts
    341
    Thanks given
    42
    Thanks received
    9
    Rep Power
    0
    ahh okkkk i thought that but i didnt know how to change it cheers mate rep++
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Feb 2012
    Posts
    341
    Thanks given
    42
    Thanks received
    9
    Rep Power
    0
    okkk i changed in config.java what do i change in itemhandler still getting it
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    item.cfg you added something to an item's stats use tab instead of space


    ~flow@hacking . rs
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Feb 2012
    Posts
    341
    Thanks given
    42
    Thanks received
    9
    Rep Power
    0
    ive checked through all that, thats okkk
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    It's clearly not. Check again, replace all spaces with a tab.


    ~flow@hacking . rs
    Reply With Quote  
     

  8. #8  
    Not Funny
    Human's Avatar
    Join Date
    Sep 2011
    Age
    26
    Posts
    175
    Thanks given
    11
    Thanks received
    14
    Rep Power
    0
    Code:
    public ItemList ItemList[] = new ItemList[Config.ITEM_LIMIT];
    under you will see
    Code:
    public void newItemList(int ItemId, String ItemName, String ItemDescription, double ShopValue, double LowAlch, double HighAlch, int Bonuses[]) {
    		// first, search for a free slot
    		int slot = -1;
    		for (int i = 0; i < #####; i++) {
    			if (ItemList[i] == null) {
    				slot = i;
    				break;
    			}
    		}
    Change ##### to what you did in Config.java Good Luck!
    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. PI client run - spam get npcpos
    By youngy_james in forum Help
    Replies: 1
    Last Post: 02-14-2012, 03:38 AM
  2. PI client run - too many npc's spam
    By youngy_james in forum Help
    Replies: 2
    Last Post: 02-14-2012, 12:11 AM
  3. ItemHandler Array Out of bounds.
    By Pk0wnedall in forum Help
    Replies: 11
    Last Post: 12-22-2011, 07:04 PM
  4. [PI] ItemHandler
    By objection in forum Requests
    Replies: 8
    Last Post: 10-27-2011, 04:05 AM
  5. PotionHandler (New ItemHandler)
    By Simox in forum Tutorials
    Replies: 118
    Last Post: 10-04-2008, 03:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •