Thread: Run.bat errors - Server on though [PI] REP++ Please help

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Run.bat errors - Server on though [PI] REP++ Please help 
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    603
    Thanks given
    5
    Thanks received
    20
    Rep Power
    10
    So my server always spams errors seems to be random. It spams errors but server is running normally with a lot of players, but it's not stable of course because of the errors it's getting.
    So I'm hosting this nightmare scape source, but completely different. New customs etc just a lot done.
    I read the error list and it seems to be having something attacking npcs, oh and there was another one with player death. This is the console of the errors.
    Code:
    [7/10/15 10:04 PM]: java.lang.ArrayIndexOutOfBoundsException: 1517
    [7/10/15 10:04 PM]:     at server.model.players.CombatAssistant.attackNpc(Combat
    Assistant.java:636)
    [7/10/15 10:04 PM]:     at server.model.players.Client.process(Client.java:3159)
    
    [7/10/15 10:04 PM]:     at server.model.players.PlayerHandler.process(PlayerHand
    ler.java:328)
    [7/10/15 10:04 PM]:     at server.GameEngine.run(GameEngine.java:20)
    [7/10/15 10:04 PM]:     at server.Server$1.execute(Server.java:157)
    [7/10/15 10:04 PM]:     at server.task.Task.tick(Task.java:107)
    [7/10/15 10:04 PM]:     at server.task.TaskScheduler.run(TaskScheduler.java:125)
    
    [7/10/15 10:04 PM]:     at java.util.concurrent.Executors$RunnableAdapter.call(E
    xecutors.java:511)
    [7/10/15 10:04 PM]:     at java.util.concurrent.FutureTask.runAndReset(FutureTas
    k.java:308)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
    eadPoolExecutor.java:1142)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
    readPoolExecutor.java:617)
    [7/10/15 10:04 PM]:     at java.lang.Thread.run(Thread.java:745)
    [7/10/15 10:04 PM]: java.lang.ArrayIndexOutOfBoundsException: 1517
    [7/10/15 10:04 PM]:     at server.model.players.CombatAssistant.attackNpc(Combat
    Assistant.java:636)
    [7/10/15 10:04 PM]:     at server.model.players.Client.process(Client.java:3159)
    
    [7/10/15 10:04 PM]:     at server.model.players.PlayerHandler.process(PlayerHand
    ler.java:328)
    [7/10/15 10:04 PM]:     at server.GameEngine.run(GameEngine.java:20)
    [7/10/15 10:04 PM]:     at server.Server$1.execute(Server.java:157)
    [7/10/15 10:04 PM]:     at server.task.Task.tick(Task.java:107)
    [7/10/15 10:04 PM]:     at server.task.TaskScheduler.run(TaskScheduler.java:125)
    
    [7/10/15 10:04 PM]:     at java.util.concurrent.Executors$RunnableAdapter.call(E
    xecutors.java:511)
    [7/10/15 10:04 PM]:     at java.util.concurrent.FutureTask.runAndReset(FutureTas
    k.java:308)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
    duledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
    eadPoolExecutor.java:1142)
    [7/10/15 10:04 PM]:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
    readPoolExecutor.java:617)
    [7/10/15 10:04 PM]:     at java.lang.Thread.run(Thread.java:745)
    I will rep++ and if anybody can actually end up knowing how to fix this nulling thing in run.bat, you're the fcking best!
    Reply With Quote  
     

  2. #2  
    Banned Run.bat errors - Server on though [PI] REP++ Please help Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Go to CombatAssistant.java, line 636.

    I'm pretty sure it's trying to get the (i) value of the NPC which isn't the correct variable it should be using.

    Please post that line here.
    Reply With Quote  
     

  3. #3  
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    603
    Thanks given
    5
    Thanks received
    20
    Rep Power
    10
    Quote Originally Posted by Stealthify View Post
    Go to CombatAssistant.java, line 636.

    I'm pretty sure it's trying to get the (i) value of the NPC which isn't the correct variable it should be using.

    Please post that line here.
    Yeah here you go, and thanks.
    Code:
    Client c2 = (Client)PlayerHandler.players[i];
    And under it
    Code:
    					Client c2 = (Client)PlayerHandler.players[i];
    					final int pX = c.getX();
     					final int pY = c.getY();
    					final int nX = Server.npcHandler.npcs[c.oldNpcIndex].getX();
    					final int nY = Server.npcHandler.npcs[c.oldNpcIndex].getY();
    					final int offX = (pY - nY)* -1;
    					final int offY = (pX - nX)* -1;
    Reply With Quote  
     

  4. #4  
    Banned Run.bat errors - Server on though [PI] REP++ Please help Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Delete c2 in its entirety. I did this for someone else and you didn't need that variable.
    Reply With Quote  
     

  5. #5  
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    603
    Thanks given
    5
    Thanks received
    20
    Rep Power
    10
    Quote Originally Posted by Stealthify View Post
    Delete c2 in its entirety. I did this for someone else and you didn't need that variable.
    If I remove c2 I will be getting errors.
    Reply With Quote  
     

  6. #6  
    Banned Run.bat errors - Server on though [PI] REP++ Please help Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Quote Originally Posted by Lord View Post
    If I remove c2 I will be getting errors.
    Show me the errors you get. I'm 99% sure that c2 isn't used for anything important in that method.
    Reply With Quote  
     

  7. #7  
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    603
    Thanks given
    5
    Thanks received
    20
    Rep Power
    10
    Quote Originally Posted by Stealthify View Post
    Show me the errors you get. I'm 99% sure that c2 isn't used for anything important in that method.
    These 2 errors as you can see
    Reply With Quote  
     

  8. #8  
    Banned Run.bat errors - Server on though [PI] REP++ Please help Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Remove both of the lines that are giving you errors. They aren't needed.
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    603
    Thanks given
    5
    Thanks received
    20
    Rep Power
    10
    Quote Originally Posted by Stealthify View Post
    Remove both of the lines that are giving you errors. They aren't needed.
    Alright I'm going to be testing now ;D.
    Thanks so much it actually worked, but i think i had one about playerdeath not sure, but thanks so much! I used get this spammed in the console, sometimes it nulls and everybody dcs for a few seconds.
    Reply With Quote  
     

  11. #10  
    Banned Run.bat errors - Server on though [PI] REP++ Please help Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    839
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    Quote Originally Posted by Lord View Post
    Alright I'm going to be testing now ;D.
    Thanks so much it actually worked, but i think i had one about playerdeath not sure, but thanks so much! I used get this spammed in the console, sometimes it nulls and everybody dcs for a few seconds.
    No problem! Happy to help

    PM me if you need anything else!
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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] Server Run.Bat Error
    By Huoff in forum Help
    Replies: 0
    Last Post: 08-15-2014, 02:25 PM
  2. Run.bat error Dementhium On VPS HELP PLEASE
    By harry2001 in forum Help
    Replies: 11
    Last Post: 02-15-2012, 04:37 AM
  3. [PI] Run.bat error, On vps [PI]
    By Paradise in forum Help
    Replies: 1
    Last Post: 01-18-2011, 08:27 AM
  4. Run.bat Error (turning on server)
    By farmerscape in forum Help
    Replies: 8
    Last Post: 09-08-2010, 12:56 AM
  5. Run.bat error will rep ++
    By artemis in forum Help
    Replies: 3
    Last Post: 04-08-2010, 02:38 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
  •