Jump to content

Black screen upon booting OSBot 2.5.7


Recommended Posts

Posted

Hello, Upon trying to teach a friend of mine java with this botting framework I found this error and am quite confused!

Basically we are running the same code that has always worked but upon testing our script recently after a break(Very minimal but I am wondering if this is a recent issue)

we come across this black screen. https://i.imgur.com/C33IW7L.png

What on earth have I done to bork it? Or is this a common issue. I will provide any source if needed but it is using basic classes extending MethodProvider with the safe exchangemethod (onStart) provided by explv

package Script;

import Tasks.GetBond;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import Methods.*;

@ScriptManifest(author = "Schepto", name = "Schepto", info = "", version = 1, logo = "")
public final class Main extends Script
{
    private Initialize init = new Initialize(); // Initialization logic to be ran onStart
    private Evaluate eval = new Evaluate();     // Evaluation logic to determine needed Tasks
    private Lib lib = new Lib();                // Library of generic functions and methods.
    private GetBond bond = new GetBond();


    private void ExchangeContext() {
        init.exchangeContext(getBot());
        eval.exchangeContext(getBot());
        lib.exchangeContext(getBot());
        bond.exchangeContext(getBot());
    }

    @Override
    public final void onStart() { // Happens only once when you first start the bot and after it logs in
        ExchangeContext(); // This must always be first, Prevents NullPointers via black magic.
        try {
            init.Init(); // Initialization
        }
        catch (NullPointerException n) { // Error Handling
            log("Null Pointer, Check for missing exchangeContext's " + n);
        }
    }

    @Override
    public final int onLoop() { // Gets executed once every 1~2s
        int randomDelay = random(1000, 2000); // Assigning a local var each iteration is faster then re-rolling into a global field.
        // Main logic body
        try {
            bond.Run();
        }
        // Error handling
        catch (NullPointerException n) {
            log(n.getCause() + " " + n.getMessage());
        }
        return randomDelay;
    }
}

 

package Methods;

import org.osbot.rs07.api.map.constants.Banks;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.script.MethodProvider;

public class Lib extends MethodProvider {

    private void find_bank() {
        walking.webWalk(Banks.LUMBRIDGE_UPPER);
    }

    private void withdraw_item(String item, Integer amount) {
        try {
            if (!bank.open()) {
                find_bank();
                RS2Object booth = objects.closest("Bank booth");
                if (booth != null) {
                    booth.interact();
                }
            } else {
                log("Withdrawing " + amount + " " + item);
                bank.withdraw(item, amount);
            }
        } catch (InterruptedException error) {
            log(error);
        }
    }

    protected void withdraw_item(String item) {
        withdraw_item(item, 1);
    }
}

 

Posted
5 minutes ago, HippYV said:

do you have any idea how long it is usually takes for a fix release after an update?

It is done when it is done. Your accounts are worth more then an early release.

9 minutes ago, Burundanga said:

it is thursday, just gotta wait for fix

Dunno what thursday means in terms of OSRS botting. Is this downtime normal? ( I am a noob in this scene )

Posted (edited)
5 minutes ago, Schepto said:

It is done when it is done. Your accounts are worth more then an early release.

Dunno what thursday means in terms of OSRS botting. Is this downtime normal? ( I am a noob in this scene )

Jagex pushes game udates on thursdays regularly, and sometimes the update breaks the osb client. fix usually takes a couple hours to a day. but sometimes it can take up to a couple of days if unlucky

Edited by Burundanga
  • Heart 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...