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.
|
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.
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!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)
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.
And under itCode:Client c2 = (Client)PlayerHandler.players[i];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;
Delete c2 in its entirety. I did this for someone else and you didn't need that variable.
Remove both of the lines that are giving you errors. They aren't needed.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |