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.

Issue running local script

Featured Replies

Hello people, 

I'm having an issue with running my first script, there are no errors when compiling. But, the client always seems to not want to load it. Anyone have any solutions? 

 

Thanks

Capture.PNG

Edited by HumanLikeBotting

Launch the client in debug mode with CLI ('java -jar "OSBot.jar" -debug 5005'). It should provide some more information on why it fails.
Also verify that your Script manifest is filled out correctly.

  • Author

Thanks for the reply I double checked my manifest. I also tried to debug but the only thing that has happened is it is not saying it can't run. Which is strange, due to running fine normally.

Cheers!

Debug.PNG

10 minutes ago, HumanLikeBotting said:

Thanks for the reply I double checked my manifest. I also tried to debug but the only thing that has happened is it is not saying it can't run. Which is strange, due to running fine normally.

Cheers!

Debug.PNG

Looks like you didn't specify a debug port; is that the case?
Can't see the command you used in this image

Edited by FrostBug

8 minutes ago, FrostBug said:

Looks like you didn't specify a debug port; is that the case?
Can't see the command you used in this image

Thought -debug automatically assign a default port if none are given?

Edited by ProjectPact

  • Author

Sorry, I did specify it but once you've already used one it auto-assigns it to the last used port.

 

import org.osbot.rs07.script.Script;

import org.osbot.rs07.script.ScriptManifest;

import java.awt.*;

@ScriptManifest(name = "Skeleton", author = "HumanLikeBotting", version = 1.0, info = "", logo = "") 
public class BotBuilder extends Script {

    @Override

    public void onStart() {

      //  frame.setSize(200, 200);
      //  frame.serReszable(false);
        //Code here will execute before the loop is started
        
    }

    @Override

    public int onLoop() throws InterruptedException {
       // getWalking().walkPath(path);

        return 100; //The amount of time in milliseconds before the loop starts over

    }


    @Override

    public void onExit() {

        //Code here will execute after the script ends

    }


    @Override

    public void onPaint(Graphics2D g) {

        //This is where you will put your code for paint(s)

    }
}

This is the code as well, if there is anything noticeable I've done wrong. There was more but I removed it to the skeleton just to double check if I'd wrote something wrong or what is not in the library.

Thank you!

Debug.PNG

19 minutes ago, ProjectPact said:

Thought -debug automatically assign a default port if none are given?

You're probably right

18 minutes ago, HumanLikeBotting said:

Sorry, I did specify it but once you've already used one it auto-assigns it to the last used port.

 


import org.osbot.rs07.script.Script;

import org.osbot.rs07.script.ScriptManifest;

import java.awt.*;

@ScriptManifest(name = "Skeleton", author = "HumanLikeBotting", version = 1.0, info = "", logo = "") 
public class BotBuilder extends Script {

    @Override

    public void onStart() {

      //  frame.setSize(200, 200);
      //  frame.serReszable(false);
        //Code here will execute before the loop is started
        
    }

    @Override

    public int onLoop() throws InterruptedException {
       // getWalking().walkPath(path);

        return 100; //The amount of time in milliseconds before the loop starts over

    }


    @Override

    public void onExit() {

        //Code here will execute after the script ends

    }


    @Override

    public void onPaint(Graphics2D g) {

        //This is where you will put your code for paint(s)

    }
}

This is the code as well, if there is anything noticeable I've done wrong. There was more but I removed it to the skeleton just to double check if I'd wrote something wrong or what is not in the library.

Thank you!

Debug.PNG

That is the 2.5.8 client version?

You keep blocking out the most important part of the stack trace with your images. Mind just copying and pasting that entire log?

  • Author

Hello Guys,

Thanks for your replies and help I found out that it was becuase I was using JRE-10 instead of JRE-1.8. Thank you very much!

 

HumanLikeBotting

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.