Welcome!

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

Sign up now!

Bug javafx.fxml.LoadException on bot stop

Hexis bots go brrr
Joined
Dec 9, 2016
Messages
4,423
This error occurs rarely but often enough to be an issue. When the stop(...) method is called in the main class of my bot, occasionally it will cause the other session (second of the two) to throw this error. The bot that calls the stop method stops correctly, but causes the other session to crash.

RuneMate Version: 2.79.4
Affected Games: RS3 (though considering is an fxml error I don't believe it's relevant)
Code Used:
Code:
@Override
    public void onMessageReceived(MessageEvent messageEvent) {
        if (messageEvent != null) {
            String message = messageEvent.getMessage();
           if (message.matches("^Item could not be found: .+$")) {
                Pattern pattern = Pattern.compile(": (.+)");
                Matcher matcher = pattern.matcher(message);
                if (matcher.find()) {
                    stop("Item could not be found:" + matcher.group(1));
                }
            } else if (message.matches("Your charge pack has ran out of power .*")) {
                    stop("Out of power in Charge Pack, stopping.");
            }
        }
    }
 
Top