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.

2.5.24 Release Notes please? Many issues

Featured Replies

Hi Developers,

What exactly was changed in the 24 update because it broke all of my GUIs lol. They go black like the picture below and entire client crashes as well as original client (I'm using mirror mode btw). Even logger can't output anything before it freezes. Never had a problem with this code before 24. I can provide a sample code if you don't think it was something on your end.

image.png.5c9c416986cd09a79fced959a6b0ca19.png

@Token Can't bother Alek anymore , but could you look into this please mate.

Thanks

Same thing happened to me, I managed to solve it by removing any sleeps and checks that were in my onStart() and moved them to my onloop with a toggle, might be worth checking that out

2 minutes ago, ScummyBotter said:

Same thing happened to me, I managed to solve it by removing any sleeps and checks that were in my onStart() and moved them to my onloop with a toggle, might be worth checking that out

Just out of curiosity - why did you have sleeps in your onStart()?

3 minutes ago, Ragnar Lothbrok said:

Just out of curiosity - why did you have sleeps in your onStart()?

I was waiting on gui input in my onStart, setting settings (like zoom etc), reading the user setup etc. Apparently it's bad practice I think so I'll stop doing that now.

  • Author

 

1 minute ago, ScummyBotter said:

I was waiting on gui input in my onStart, setting settings (like zoom etc), reading the user setup etc. Apparently it's bad practice I think so I'll stop doing that now.

I don't have any sleeps in my GUI class and I just initialize it in OnStart. Indeed just by taking out the reference to my GUI, the script works fine.. But why did this start happening? Kind of annoying now that I have to update everything. Can we get option to use previous version or a fix please devs?

57 minutes ago, ScummyBotter said:

I was waiting on gui input in my onStart, setting settings (like zoom etc), reading the user setup etc. Apparently it's bad practice I think so I'll stop doing that now.

Yeah probably not a good idea - I usually have a variable that tells the script when the gui is compete - just set it to true on the start button action listener.

My bots got stuck in the bank after a break because the client didn't switch to putting in my pin?

My gui also broken bot is all of sudden crashing/freezing for some reason super laggy to stop start script also

7 hours ago, Ragnar Lothbrok said:

Yeah probably not a good idea - I usually have a variable that tells the script when the gui is compete - just set it to true on the start button action listener. 

I have the same thing, but you need to wait on that variable to become true before you start doing the main section of the script right? That's what I was waiting on, essentially had these in my onStart, the second one was what was causing it to break for me:


private void makeGUI() {
	frame = new GUI();
	frame.setVisible(true);
}

private void waitForGUI() throws InterruptedException {
    while(!frame.getStartButtonState()){
      sleep(200);
    }
    frame.setVisible(false);
}

 

1 hour ago, ScummyBotter said:

I have the same thing, but you need to wait on that variable to become true before you start doing the main section of the script right? That's what I was waiting on, essentially had these in my onStart, the second one was what was causing it to break for me:



private void makeGUI() {
	frame = new GUI();
	frame.setVisible(true);
}

private void waitForGUI() throws InterruptedException {
    while(!frame.getStartButtonState()){
      sleep(200);
    }
    frame.setVisible(false);
}

 

Nah I just do a check on my onLoop method like this:

i

if (started) {
	// DO SHIT
}
return 500;

 

5 hours ago, Ragnar Lothbrok said:

Nah I just do a check on my onLoop method like this:

i


if (started) {
	// DO SHIT
}
return 500;

 

I do the same. Works great.

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.