Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script won't start

Featured Replies

So.. I wrote a script. Exported it to scripts in Osbot folder. I try to start it in Osbot and nothing happens. Like i put log("Script started") at the top of onStart() and that doesnt show. I've looked over my code and overriden methods in my scripts and everything seems to be correct. if u can helps comment.. or mesage in me in chat box

  • Author

do u have the manifest? show the code?

yea.. i have everything, rather not share code publicly just because.

  • Author

Alright then how are we supposed to help? By guessing your code? emote32342.png

asking for a pm for the code or teamviewr

Edited by Qubit

yea.. i have everything, rather not share code publicly just because.

 

 

You would rather not share log("Wtf??")

 

Do you really think someone is gonna rip your log?

  • Author

You would rather not share log("Wtf??")

 

Do you really think someone is gonna rip your log?

Im assuming he wants to see the whole script. Because the problem is not with onStart(). I said i put a log in there to test if the script even starts. Which it doesn't. Obviously if I was just giving the onStart() method I would have no problem with it.....

Qubit nobody who knows what they're doing cares about your script lol. We're all capable of recreating it anyways but if you don't feel comfortable posting code for us to analyze you're crap outta luck.

 

Troubleshooting method:

after each line in the onstart add a log so you can see what checkpoint the code stops at. If you're loading a GUI built with JFormDesigner and it's complex, you might have to redo the GUI because I had that same issue.

 example:

 

@Override

public void onStart() throws InterruptedException {

log("a");

UI gui = new UI(this);

log("b");

gui.setVisible(true);

log("c");

while (gui.isVisible()) {

sleep(100);

}

log("d");

 

 

apply method as needed to figure out where the code stops being called.

 

 

 

Im assuming he wants to see the whole script. Because the problem is not with onStart(). I said i put a log in there to test if the script even starts. Which it doesn't. Obviously if I was just giving the onStart() method I would have no problem with it.....

 

If you want help post it, otherwise you will need to debug yourself. 

Nobody wants to steal your scripts, especially if its not even getting past onstart..

Edited by Mysteryy

have you tried turning it off and on again

Qubit nobody who knows what they're doing cares about your script lol. We're all capable of recreating it anyways but if you don't feel comfortable posting code for us to analyze you're crap outta luck.

Troubleshooting method:

after each line in the onstart add a log so you can see what checkpoint the code stops at. If you're loading a GUI built with JFormDesigner and it's complex, you might have to redo the GUI because I had that same issue.

example:

@Override

public void onStart() throws InterruptedException {

log("a");

UI gui = new UI(this);

log("b");

gui.setVisible(true);

log("c");

while (gui.isVisible()) {

sleep(100);

}

log("d");

apply method as needed to figure out where the code stops being called.

You can also run OSBot in debug mode to use breakpoint and other debug tools supplied in your IDE.

(Open OSBot -> @login screen -> click about)

Edited by ZappaScripts

  • Author

FIXED.. Script wouldn't get past initializing BufferedImage..

found by Okabe

 

Thanks for the attempted help for everyone. 

 

 

Mysteryy maybe you can be less of a dick?

Edited by Qubit

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.