Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

V1.0.0 - Beta 16.1 Bug Reports

Discretion is advised
Joined
Jan 2, 2014
Messages
306
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
 
Last edited:
Engineer
Joined
Jul 28, 2013
Messages
2,776
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?
 
First Bot Author
Joined
Aug 7, 2013
Messages
262
I don't experience any lag at all... buttttt:
The camera focus is the location of the flax I'm picking, it's floating in the air, what's up with that? :p
8uNrU.png
 
Last edited:
Engineer
Joined
Jul 28, 2013
Messages
2,776
area.getCoordinates() returns an empty list (tested with a square area)
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;
    }
 
First Bot Author
Joined
Aug 7, 2013
Messages
262
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? :p
Edit; okay nvm i accidentally typod my area rofl
 
Last edited:
First Bot Author
Joined
Aug 7, 2013
Messages
262
java.lang.NullPointerExceptionAn exception has occurred in Evil Twin while checking for active rs-events
 
First Bot Author
Joined
Aug 7, 2013
Messages
262
-_-

I'll check it out, thanks for the report. How often does it happen?
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
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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
Ah ok, I'll get it fixed soon, thanks for the report :) A magic API is probably incoming in the next release too :)
 
Top