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 Development in Scala

Featured Replies

Hello all, 

I am new to the osbot script development community (wrote some scripts for a different bot back in the day). Was wondering if anyone has had experience building scripts in a language that compiles down to Java (scala, kotlin, etc). I am working on a simple POC (fish, chop trees, cook, repeat) in scala and running into a bunch of classdefnotfound exceptions during runtime. ie:

```
java.lang.NoClassDefFoundError: scala/collection/Seq

java.lang.NoClassDefFoundError: scala/math/Ordering
```

I have tried packaging scala into the jar through intelliJ's project structure page, but no positive results. This is probably because the OSBot client doesn't package the scala jars itself, and just dynamically loads the selected script? (but not that script's dependencies)

Would love to be able to write these scripts in scala, code looks much cleaner that way.
Any suggestions would be much appreciated.

Edited by volatile474
removed references to censored text.

  • Author

The size of script doesnt matter if it's all local ?

The syntactic benefits of using scala far outweighs any concerns around sizing of the jar, also it isnt nearly that big lol.

  • Author

Well... I admit defeat, unless I can add scala jars as core dependencies of the osbot client, dont think any scala features will compile. :( Java it is I suppose

On 6/15/2018 at 10:25 PM, volatile474 said:

The size of script doesnt matter if it's all local ?

The syntactic benefits of using scala far outweighs any concerns around sizing of the jar, also it isnt nearly that big lol.

Seems hardly worth the effort for a preference in style

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.