Thread: Error when trying to make shops

Results 1 to 3 of 3
  1. #1 Error when trying to make shops 
    Registered Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    107
    Thanks given
    3
    Thanks received
    8
    Rep Power
    0
    So when i've followed this guide completely http://www.rune-server.org/runescape...-shops-pi.html and i've recieved this error when trying to run my source,

    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 596
    at ardi.world.ShopHandler.loadShops(ShopHandler.java: 143)
    at ardi.world.ShopHandler.<init>(ShopHandler.java:45)
    at ardi.Server.<clinit>(Server.java:122)
    Press any key to continue . . .



    Do any of you know how to fix this? would really appreciate it thanks.
    Reply With Quote  
     

  2. #2  
    Author of the first public OSRSPS

    Shadowy's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    1,499
    Thanks given
    490
    Thanks received
    241
    Rep Power
    307
    Quote Originally Posted by ServerOnRsps View Post
    So when i've followed this guide completely http://www.rune-server.org/runescape...-shops-pi.html and i've recieved this error when trying to run my source,

    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 596
    at ardi.world.ShopHandler.loadShops(ShopHandler.java:143)
    at ardi.world.ShopHandler.<init>(ShopHandler.java:45)
    at ardi.Server.<clinit>(Server.java:122)
    Press any key to continue . . .



    Do any of you know how to fix this? would really appreciate it thanks.
    the error is with an array @ shophandler line 143

    array out of bounds means ur trying to access Array[596] but that's outside the array. maybe a shop id or maybe you put an extra digit there by mistake, like it should be 59 or 96 and not 596
    Owner of OS-RSPS, the first Oldschool RuneScape Server (2014)
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    107
    Thanks given
    3
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by Shadowy View Post
    the error is with an array @ shophandler line 143

    array out of bounds means ur trying to access Array[596] but that's outside the array. maybe a shop id or maybe you put an extra digit there by mistake, like it should be 59 or 96 and not 596
    The 596 is the npc id that i'm trying to turn into a shop.

    *edit* found the issue
    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. Error when trying to complie Repp+
    By massacre215 in forum Help
    Replies: 3
    Last Post: 05-30-2009, 10:57 PM
  2. Error when trying to run server
    By nascarnate in forum Help
    Replies: 6
    Last Post: 03-30-2009, 12:19 PM
  3. Error when trying to log in to 508 server
    By Unstoppable in forum Help
    Replies: 1
    Last Post: 03-06-2009, 04:37 PM
  4. Error When Trying To Run Server
    By Chris123111 in forum Help
    Replies: 15
    Last Post: 01-25-2009, 06:52 AM
  5. Odd error when trying to run pali's 508
    By 0utl4w in forum Help
    Replies: 5
    Last Post: 11-25-2008, 03:13 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
  •