Thread: NPCHandler.java problem

Results 1 to 8 of 8
  1. #1 NPCHandler.java problem 
    devilson1995
    Guest
    I get this when running my server.

    Code:
    DeltaScape Server.
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 19687
            at NPCHandler.newNPC(NPCHandler.java:2201)
            at NPCHandler.loadAutoSpawn(NPCHandler.java:1967)
            at NPCHandler.<init>(NPCHandler.java:548)
            at server.main(server.java:114)
    I had just added the CFG file of all the NPC's in rl RS in the config section here to my server and am now getting this.

    Please Help.
    Reply With Quote  
     

  2. #2  
    Registered Member apur3slife's Avatar
    Join Date
    Dec 2008
    Posts
    285
    Thanks given
    0
    Thanks received
    6
    Rep Power
    23
    You must have done something wrong when adding the npcs either missspelled a word or
    something


    go back and check for mistakes maybe
    Reply With Quote  
     

  3. #3  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    it either mean the maxium npcs is spawned or you pasted a npc settings wrong
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  4. #4  
    devilson1995
    Guest
    theres a limit? It's probably that. Thanks for telling me that guys.
    Reply With Quote  
     

  5. #5  
    Retired. Stop PMing me.


    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,526
    Thanks given
    1,805
    Thanks received
    2,830
    Rep Power
    5000
    Probably put a space instead of a tab somewhere.
    Attached image
    Reply With Quote  
     

  6. #6  
    Registered Member
    wizzyt21's Avatar
    Join Date
    Aug 2007
    Posts
    1,167
    Thanks given
    49
    Thanks received
    12
    Rep Power
    156
    ^ ^ wtf u talkin bout kid?
    there are too much npcs.. go into npchandler and where it says new NPC[
    insiade that add 19689

    so:

    public NPC[] npcs = new NPC[19689];
    YOU JUST GOT KNOCKED THE F*CK UP.
    Reply With Quote  
     

  7. #7  
    kieronbegley
    Guest
    Quote Originally Posted by 64base string View Post
    ^ ^ wtf u talkin bout kid?
    there are too much npcs.. go into npchandler and where it says new NPC[
    insiade that add 19689

    so:

    public NPC[] npcs = new NPC[19689];
    Lol. that did not work. i have same error.
    Code:
    - Ultimate Pk Fully Operational -
    Exception in thread "main" java.lang.NullPointerException
            at NPCHandler.process(NPCHandler.java:376)
            at server.main(server.java:57)
    Reply With Quote  
     

  8. #8  
    devilson1995
    Guest
    Thx 64base, will try
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •