By registering with us, you'll be able to discuss, share and private message with other members of our community.
Sign up now!Under which conditions does it lag? Only when a bot is running?Code:An exception has occurred in Lost and found while checking for active rs-events java.lang.NullPointerException
The error is not fixed
Also bot and game are lagging a lot since this update
Under which conditions does it lag? Only when a bot is running?
I don't see a problemarea.getCoordinates() returns an empty list (tested with a square area)
public List<Coordinate> getCoordinates() {
final List<Coordinate> coordinates = new ArrayList<>();
if (Type.CIRCLE.equals(type)) {
for (double x = center.getX() - radius; x <= center.getX() + radius; ++x) {
for (double y = bottomLeft.getY() - radius; y <= center.getY() + radius; ++y) {
final Coordinate coordinate = new Coordinate((int) x, (int) y, center.getPlane());
if (contains(coordinate)) {
coordinates.add(coordinate);
}
}
}
} else if (Type.RECTANGLE.equals(type)) {
for (int plane = bottomLeft.getPlane(); plane <= topRight.getPlane(); ++plane) {
for (int x = bottomLeft.getX(); x <= topRight.getX(); ++x) {
for (int y = bottomLeft.getY(); y <= topRight.getY(); ++y) {
coordinates.add(new Coordinate(x, y, plane));
}
}
}
}
return coordinates;
}
Well what if Type.RECTANGLE doesn't equal type?I don't see a problem
Code:public List<Coordinate> getCoordinates() { final List<Coordinate> coordinates = new ArrayList<>(); if (Type.CIRCLE.equals(type)) { for (double x = center.getX() - radius; x <= center.getX() + radius; ++x) { for (double y = bottomLeft.getY() - radius; y <= center.getY() + radius; ++y) { final Coordinate coordinate = new Coordinate((int) x, (int) y, center.getPlane()); if (contains(coordinate)) { coordinates.add(coordinate); } } } } else if (Type.RECTANGLE.equals(type)) { for (int plane = bottomLeft.getPlane(); plane <= topRight.getPlane(); ++plane) { for (int x = bottomLeft.getX(); x <= topRight.getX(); ++x) { for (int y = bottomLeft.getY(); y <= topRight.getY(); ++y) { coordinates.add(new Coordinate(x, y, plane)); } } } } return coordinates; }
-_-Well what if Type.RECTANGLE doesn't equal type?
Edit; okay nvm i accidentally typod my area rofl
I'll check it out, thanks for the report. How often does it happen?java.lang.NullPointerExceptionAn exception has occurred in Evil Twin while checking for active rs-events
About once every 15 minutes, and as a result the script goes unresponsive. It doesn't actually stop the script, it just refuses to do anything-_-
I'll check it out, thanks for the report. How often does it happen?
Ah ok, I'll get it fixed soon, thanks for the reportAbout once every 15 minutes, and as a result the script goes unresponsive. It doesn't actually stop the script, it just refuses to do anything
We use essential cookies to make this site work, and optional cookies to enhance your experience.