Thread: [PI] npchandler crashing my server

Results 1 to 7 of 7
  1. #1 [PI] npchandler crashing my server 
    Registered Member

    Join Date
    May 2009
    Posts
    1,434
    Thanks given
    599
    Thanks received
    526
    Rep Power
    285
    I added mossies with new drops etc. Every couple kills the server crashs and I get this

    Code:
    at server.model.npcs.NPCHandler.dropItems(NPCHandler.java:1238)
    at.server.model.npcs.NPCHandler.process.(NPCHandler.java:1076)
    at server.Server.main(Server.java:151)
    A fatal exeption has been thrown!
    Press any key to continue
    Heres my npcDrops.tsm

    Code:
    #guards
    9:1
    995:10	995:20	995:30
    #Dark Wizard 1
    172:1
    556:15	559:15	554:15	558:15	555:15	557:20	562:5	563:3	1438:1	1442:1	1444:1	561:4	581:1	561:2	1017:1	1379:1
    #Dark Wizard 2
    174:1
    556:15	559:15	554:15	558:15	555:15	557:20	562:5	563:3	1438:1	1442:1	1444:1	561:4	581:1	561:2	1017:1	1379:1
    #Moss Giants
    112:2
    556:18	560:3	561:6	562:7	564:3	563:3	557:27	1179:1	995:300	1181:1	2353:1	1617:1	884:15	886:30	1389:1	1285:1	1969:1	1193:1	1141:1	1165:1	453:1
    If you need anything else just post. Please can someone tell me what's wrong?



    Code:
    Raredrop: 0 995
    Raredrop: 0 10
    Raredrop: 1 995
    Raredrop: 1 20
    Raredrop: 2 995
    Raredrop: 2 30
    Raredrop: 0 556
    Raredrop: 0 15
    Raredrop: 1 559
    Raredrop: 1 15
    Raredrop: 2 554
    Raredrop: 2 15
    Raredrop: 3 558
    Raredrop: 3 15
    Raredrop: 4 555
    Raredrop: 4 15
    Raredrop: 5 557
    Raredrop: 5 20
    Raredrop: 6 562
    Raredrop: 6 5
    Raredrop: 7 563
    Raredrop: 7 3
    Raredrop: 8 1438
    Raredrop: 8 1
    Raredrop: 9 1442
    Raredrop: 9 1
    Raredrop: 10 1444
    Raredrop: 10 1
    Raredrop: 11 561
    Raredrop: 11 4
    Raredrop: 12 581
    Raredrop: 12 1
    Raredrop: 13 561
    Raredrop: 13 2
    Raredrop: 14 1017
    Raredrop: 14 1
    Raredrop: 15 1379
    Raredrop: 15 1
    Raredrop: 0 556
    Raredrop: 0 15
    Raredrop: 1 559
    Raredrop: 1 15
    Raredrop: 2 554
    Raredrop: 2 15
    Raredrop: 3 558
    Raredrop: 3 15
    Raredrop: 4 555
    Raredrop: 4 15
    Raredrop: 5 557
    Raredrop: 5 20
    Raredrop: 6 562
    Raredrop: 6 5
    Raredrop: 7 563
    Raredrop: 7 3
    Raredrop: 8 1438
    Raredrop: 8 1
    Raredrop: 9 1442
    Raredrop: 9 1
    Raredrop: 10 1444
    Raredrop: 10 1
    Raredrop: 11 561
    Raredrop: 11 4
    Raredrop: 12 581
    Raredrop: 12 1
    Raredrop: 13 561
    Raredrop: 13 2
    Raredrop: 14 1017
    Raredrop: 14 1
    Raredrop: 15 1379
    Raredrop: 15 1
    Raredrop: 0 556
    Raredrop: 0 18
    Raredrop: 1 560
    Raredrop: 1 3
    Raredrop: 2 561
    Raredrop: 2 6
    Raredrop: 3 562
    Raredrop: 3 7
    Raredrop: 4 564
    Raredrop: 4 3
    Raredrop: 5 563
    Raredrop: 5 3
    Raredrop: 6 557
    Raredrop: 6 27
    Raredrop: 7 1179
    Raredrop: 7 1
    Raredrop: 8 1181
    Raredrop: 8 1
    Raredrop: 9 2353
    Raredrop: 9 1
    Raredrop: 10 1617
    Raredrop: 10 1
    Raredrop: 11 884
    Raredrop: 11 15
    Raredrop: 12 886
    Raredrop: 12 30
    Raredrop: 13 1389
    Raredrop: 13 1
    Raredrop: 14 1285
    Raredrop: 14 1
    Raredrop: 15 1969
    Raredrop: 15 1
    Raredrop: 16 1193
    Raredrop: 16 1
    Raredrop: 17 1141
    Raredrop: 17 1
    Raredrop: 18 1165
    Raredrop: 18 1
    [11/09/10 2:04 PM]: Launching Project Insanity...
    [11/09/10 2:04 PM]: Server listening on port 0.0.0.0:43594
    [11/09/10 2:04 PM]: [REGISTERED]: ryan
    [11/09/10 2:05 PM]: java.lang.ArrayIndexOutOfBoundsException: 0
    [11/09/10 2:05 PM]:     at server.model.npcs.NPCHandler.dropItems(NPCHandler.jav
    a:1238)
    [11/09/10 2:05 PM]:     at server.model.npcs.NPCHandler.process(NPCHandler.java:
    1076)
    [11/09/10 2:05 PM]:     at server.Server.main(Server.java:151)
    [11/09/10 2:05 PM]: A fatal exception has been thrown!
    [11/09/10 2:05 PM]: Saved game for ryan.
    Press any key to continue . . .
    Attached Images
    Retired from RSPS 2008-2018
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2010
    Age
    25
    Posts
    430
    Thanks given
    11
    Thanks received
    19
    Rep Power
    23
    move the drops up onto the same line as the drop rarity like so:

    Code:
    NPC_ID : DROP_RARITY        ITEM_ID : AMOUNT        ITEM_ID : AMOUNT        ITEM_ID : AMOUNT
    Reply With Quote  
     

  3. #3  
    Pur3z is back!
    tehGanjaman's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    2,872
    Thanks given
    3,380
    Thanks received
    106
    Rep Power
    502
    your doing a space insteed of using the tab?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    May 2009
    Posts
    1,434
    Thanks given
    599
    Thanks received
    526
    Rep Power
    285
    Quote Originally Posted by Dubstep View Post
    move the drops up onto the same line as the drop rarity like so:

    Code:
    NPC_ID : DROP_RARITY        ITEM_ID : AMOUNT        ITEM_ID : AMOUNT        ITEM_ID : AMOUNT
    I tried that but then this happens when I start the server

    Code:
    java.util.NoSuchElementException: No line found
            at java.util.Scanner.nextLine(Scanner.java:1516)
            at server.model.npcs.NPCDrops.loadDrops(NPCDrops.java:37)
            at server.model.npcs.NPCDrops.<init>(NPCDrops.java:15)
            at server.Server.<clinit>(Server.java:67)
    [11/09/10 2:06 PM]: Launching Project Insanity...
    [11/09/10 2:06 PM]: Server listening on port 0.0.0.0:43594
    [11/09/10 2:06 PM]: [REGISTERED]: ryan
    Retired from RSPS 2008-2018
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    May 2009
    Posts
    1,434
    Thanks given
    599
    Thanks received
    526
    Rep Power
    285
    Quote Originally Posted by tehGanjaman View Post
    your doing a space insteed of using the tab?
    There are no spaces. Already checked.
    Retired from RSPS 2008-2018
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    May 2009
    Posts
    1,434
    Thanks given
    599
    Thanks received
    526
    Rep Power
    285
    K fixed. Thanks for trying anyways

    Its because I had 112:2. Seems that only 112:1 will work
    Retired from RSPS 2008-2018
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2011
    Posts
    7
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Fanz i am having the same problem, but what exactly did you mean by "Its because I had 112:2. Seems that only 112:1 will work." Thanks.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

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