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.

Integrating a library?

Featured Replies

I've tried to integrate a library off of github last week, and I'm now stuck and not sure what to search to teach myself

I have the code in my project, but I can't seem to call it and use it yet. I'm assuming I got it in there correctly too

The library also has a Mavern, but I'm not sure what it does. After looking it up, there seems to be a default Mavern people build, but I'm not sure what they then do with it, and the Mavern for this library is obviously different than just the standard one. 

If I have to, I'd be down to pay someone 5 or 10 bucks to work with me and teach me how to get it integrated.

Build a new maven project and use the existing pom.xml,etc files

  • Author
19 minutes ago, Chris said:

Build a new maven project and use the existing pom.xml,etc files

Would I build the maven this library has as a separate .jar file, and then add it to the project like how I would with OSBot at the start of a project?

19 minutes ago, Token said:

The library may be on mvnrepository if it's popular enough, search for it on that website, it usually includes a pre-compiled jar version

I think I found the precompiled jar version of this library. Similar to what I asked Chris, would I then add it as a library like how OSBot is added at the start of a project?

Edited by Dab in a Lab

5 minutes ago, Dab in a Lab said:

Would I build the maven this library has as a separate .jar file, and then add it to the project like how I would with OSBot at the start of a project?

I think I found the precompiled jar version of this library. Similar to what I asked Chris, would I then add it as a library like how OSBot is added at the start of a project?

its it something local for you yes you can add it as a library

 

if this is for a script the project files need to be in the main src folder of your script

  • Author
11 minutes ago, Chris said:

its it something local for you yes you can add it as a library

 

if this is for a script the project files need to be in the main src folder of your script

Is it enough to have it like this? 

https://gyazo.com/59fd56085e2bcf0882f38d00253b9a94 

I haven't been able to figure out what its doing when in the src like this. I'm sure its fine, but it also created its own url shortcut to the repository

 

Edit: Also is it necessary to have all the code of the library in my project too? That com.github part in the screenshot contains all the code too

Edited by Dab in a Lab

On 4/17/2019 at 11:55 AM, Dab in a Lab said:

Is it enough to have it like this? 

https://gyazo.com/59fd56085e2bcf0882f38d00253b9a94 

I haven't been able to figure out what its doing when in the src like this. I'm sure its fine, but it also created its own url shortcut to the repository

 

Edit: Also is it necessary to have all the code of the library in my project too? That com.github part in the screenshot contains all the code too

That particular library will not work straight out of the box on OSBot due to OSBot's restrictions and therefor can't be shaded in by maven without complications. You'd need to manually move the source files (Starting from the root) into your project root (Source root, not randomly placed). Then you'd need to manually replace all the code violating OSBot's permissions such as reflection, Robot, ect. Anything that prevents you from loading the library properly. 

Edited by asdttt

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.