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.

How to include external dependencies in my script?

Featured Replies

I tried to include a few external depedencies, but after I added them, all osbot says is "Failed to start script."

 

Is there a certain thing I need to do?

 

ptse9ib.png

Even packed them into the jar

  • Author
1 minute ago, raijin said:

dont think u can cause security issues

even on a local script ?

Just now, MadDev said:

even on a local script ?

yeah pretty sure, its mainly bc alek doesnt have the time to check external lib for hackering stuff even if they are like public/open-source etc

I think I've had a similar problem using the Gson library, because it uses a lot of reflection which is disabled in OSBot's security policy I believe...at the time I used another method to use the Gson library without reflection however the CLI seems to have parameters to allow certain things...you can probably try those

Edited by Reveance

Looks like you are trying to add Cleverbot. It's Terrible :doge: 

Anyways, OSBot does not allow you to add certain things to your dependencies. I know that You will get a permission error from okhttp and okio. These are probably why you are getting an error starting your script.

I add external dependencies all the time mainly for my websocket server integration. In eclipse you can build it as a runnable jar instead of just a jar.

Edited by LoudPacks

  • Author

I've been trying to include a socket.io library, but it never lets me connect sadly, haven't tried http yet.

2 hours ago, MadDev said:

omg gson is blocked too? wdf

You can use some other standard json library instead and if you need to send objects, you can serialize them and send them as base64 and decode them on the other side.

  • Author

Sad, even local http servers are blocked too, do they just want to have no way to communicate with the script lol

I am trying to use SQLite now but having trouble... is it not possible?

Need a way to "monitor" accounts on gold farm... currently once the bot starts it is not possible to track whether or not the bot successfully loads (when you load the jar from cli, it starts a new process, would need to monitor that process to know when it closes), logs in and runs script (bot can error and not run script, or login issues like ban, already logged in, etc... gonna use a database).

Anyone have any suggestions rather than just using PHP/SQL on a webserver?

Edited by Trees

On 3/30/2017 at 0:47 PM, LoudPacks said:

I add external dependencies all the time mainly for my websocket server integration. In eclipse you can build it as a runnable jar instead of just a jar.

Alright so this is working when I run from eclipse using org.osbot.Boot in the launch configuration, but when I try to build the runnable JAR it says no main class found... Also do you extract or package the library for the runnable jar?

1 hour ago, Trees said:

Alright so this is working when I run from eclipse using org.osbot.Boot in the launch configuration, but when I try to build the runnable JAR it says no main class found... Also do you extract or package the library for the runnable jar?

Make sure OSBot is still in your build path and select whatever the top option is (I think its extract but I could be wrong, I just know its the top of the two options)

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.