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.

compiling issues

Featured Replies

Hey all, Its been awhile but I am coming back to osrs development and had a quick question, I have a little test script built and am trying to compile it but something is going wrong.. I am not sure if something changed or I am doing something wrong, but, I used to compile and write in eclipse. But now, when I compile it isn't compiling correctly. First thing i noticed was compiling errors in the console so I tried a few things to test it, Turns out, even with my script manifest commented out, when I compile to my script folder in OSBot it still has a name and author on it when refreshed in the client. As well as uncommented and name changed it still says an original name which the script used while it was being built. Has anyone seen this or have any recommendations?

  • Author

here is the error if it helps

 

 

[ERROR][Bot #1][12/25 10:59:38 PM]: Error in bot executor or from Error class (and not Exception)!
java.lang.Error: Unresolved compilation problem: 
    The type Main must implement the inherited abstract method Script.onLoop()

    at Core.Main.onLoop(Main.java:56)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(tk:46)
    at java.lang.Thread.run(Thread.java:748)

6 hours ago, Kangabr said:

here is the error if it helps

 

 

[ERROR][Bot #1][12/25 10:59:38 PM]: Error in bot executor or from Error class (and not Exception)!
java.lang.Error: Unresolved compilation problem: 
    The type Main must implement the inherited abstract method Script.onLoop()

    at Core.Main.onLoop(Main.java:56)
    at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(tk:46)
    at java.lang.Thread.run(Thread.java:748)

 

You're  either missing the onLoop function which is required, or it has the wrong signature. See section 2 of the following: https://osbot.org/forum/topic/115124-explvs-scripting-101/

Edited by Explv

  • Author
11 hours ago, Explv said:

 

You're  either missing the onLoop function which is required, or it has the wrong signature. See section 2 of the following: https://osbot.org/forum/topic/115124-explvs-scripting-101/

 

@Override

                     public final int onLoop() throws InterruptedException {

                          switch (getState()) {

                     case CHICKENS:

                              chickenWALK();

                              setAttackStyles1(); //switch style

                              chickenFIGHT();

                              break;

                     case IDLE:

                              chickenWALK(); //testing for the bug

                              break;

                      }

        return 0;

    }

 

Edited by Kangabr

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.