This is an error with clipping, maybe just set it to return 0 for now and debug. It looks like the error is with r.getClip() instead of r getClipping()
|
So i'm Getting This Error On Eclipse .
The Quoted things are the erros im getting and i have no clue on Fixing Them I Just bought a vps last night to start my server and i came acrossed this please anyone help?
Region.java:341Jan 06, 2016 10:14:01 AM server.core.World handleError
SEVERE: An error occurred in an executor service! The server will be halted immediately.
java.lang.NullPointerException
at server.clip.region.Region.getClipping(Region.java: 341)
at server.model.players.PathFinder.findRoute(PathFind er.java:58)
at server.model.players.PlayerAssistant.playerWalk(Pl ayerAssistant.java:4208)
at server.model.players.PlayerAssistant.followNpc(Pla yerAssistant.java:2463)
at server.model.players.Player.doFollow(Player.java:2 376)
at server.model.players.Client.process(Client.java:89 5)
at server.core.PlayerHandler.process(PlayerHandler.ja va:135)
at server.Server$1.execute(Server.java:158)
at server.core.GameEngine$1.run(GameEngine.java:47)
at server.core.GameEngine$5.run(GameEngine.java:112)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$201(ScheduledThreadPoolE xecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)pathfinder.java:58public static int getClipping(final int x, final int y, int height) {
if (height > 3) {
height = 0;
}
final int regionX = x >> 3;
final int regionY = y >> 3;
final int regionId = ((regionX / 8) << 8) + (regionY / 8);
for (final Region r : regions) {
if (r.id() == regionId) {
return r.getClip(x, y, height);
}
}
return 0;
}PlayerAssistant.java:4208&& (Region.getClipping(curAbsX, curAbsY - 1, c.heightLevel) & 0x1280102) == 0) {public void playerWalk(int x, int y) {
PathFinder.getPathFinder().findRoute(c, x, y, true, 1, 1);
}player.java:2376} else if (otherX > c.getX() && otherY < c.getY()) {
playerWalk(getMove(c.getX(), otherX - 1),
getMove(c.getY(), otherY + 1));Client.java:895} else if (otherX > c.getX() && otherY < c.getY()) {
playerWalk(getMove(c.getX(), otherX - 1),
getMove(c.getY(), otherY + 1));playerhandler.java135public void process() {// get this to print out,
super.process();
doFollow(false);
//getPA().sendFrame126("Players Online: "+PlayerHandler.getPlayerCount(), 640);
if (stunTimer > 0) {
if (stunTimer > 4)
gfx100(80);
stunTimer--;
}server.java158player.process();? error?gameengine.java:47Server.playerHandler.process();gameengine.java112task.execute(GameEngine.this);executors.java:511runnable.run();futuretask.java:266public T call() {
task.run();
return result;
}
}scheduledthreadpoolexecutor.java:180result = c.call();scheduledthreadpoolexecutor.java1142:private class ScheduledFutureTask<V>
extends FutureTask<V> implements RunnableScheduledFuture<V> {threadpoolexecutor.java1142ScheduledFutureTask.super.run();threadpoolexecutor.java617task.run();thread.java745ThreadPoolExecutorThread
This is an error with clipping, maybe just set it to return 0 for now and debug. It looks like the error is with r.getClip() instead of r getClipping()
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |