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.

OSBot 2.5.4 - Resource Loading

Featured Replies

Download Link: https://osbot.org/devbuilds/osbot 2.5.4.jar

 

I've been getting a lot of questions about this lately and it seems that there's confusion over how loading resources works. Java is a little tricky when it comes to this as loading resources from a jar is different than loading resources that are not in a jar. I've went ahead and wrote some methods to make everyone's lives a bit easier, so you can write the same code no matter if its an SDN script, a Jar script, Zip script, or just the class files.

Script getScriptResourceAsStream - This loads resources relative to the entry of the script
Script getDataResourceAsStream - This loads resources relative to the entry of the OSBot data directory

Here are two examples so you get an idea:

 

ztfC9pq.png

 

x5gt9d6.png

 

Of course please ensure you are still following the existing SDN resources folder rules. 

This is an experimental build, please let me know if this helps.

Woohoo!!!!

Thanks for this. Just downloaded and tested the build, both SDN resource loading and local resource loading are working once again, and the new getScriptResourceAsStream is handy.

Cheers<3

  • Author
7 hours ago, Apaec said:

Woohoo!!!!

Thanks for this. Just downloaded and tested the build, both SDN resource loading and local resource loading are working once again, and the new getScriptResourceAsStream is handy.

Cheers<3

Thanks for confirming, I spent more time into this than Id like to admit.

  • Alek locked this topic
Guest
This topic is now closed to further replies.

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.