Schepto Posted May 10, 2018 Posted May 10, 2018 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); } }
devilsouler Posted May 10, 2018 Posted May 10, 2018 Cause osbot hasn't updated yet be patient till new update 1
Schepto Posted May 10, 2018 Author Posted May 10, 2018 (edited) 2 minutes ago, devilsouler said: Cause osbot hasn't updated yet be patient till new update Yay!!! Thank you so much. I was hoping this was not on me Edited May 10, 2018 by Schepto
HippYV Posted May 10, 2018 Posted May 10, 2018 1 minute ago, Burundanga said: it is thursday, just gotta wait for fix do you have any idea how long it is usually takes for a fix release after an update?
Schepto Posted May 10, 2018 Author Posted May 10, 2018 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 )
devilsouler Posted May 10, 2018 Posted May 10, 2018 Not always they always do a small fix update on Thursday, sometimes it breaks the bot other times it doesn't 1
Burundanga Posted May 10, 2018 Posted May 10, 2018 (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 May 10, 2018 by Burundanga 1
Schepto Posted May 10, 2018 Author Posted May 10, 2018 Thank you both @devilsouler and @Burundanga for the responses! 1
Burundanga Posted May 10, 2018 Posted May 10, 2018 1 hour ago, Schepto said: Thank you both @devilsouler and @Burundanga for the responses! no problem brother