June 13, 20187 yr 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 Edited June 13, 20187 yr by HumanLikeBotting
June 13, 20187 yr 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.
June 13, 20187 yr 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!
June 13, 20187 yr 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! Looks like you didn't specify a debug port; is that the case? Can't see the command you used in this image Edited June 13, 20187 yr by FrostBug
June 13, 20187 yr 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 June 13, 20187 yr by ProjectPact
June 13, 20187 yr 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!
June 13, 20187 yr 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! That is the 2.5.8 client version?
June 13, 20187 yr Author 6 hours ago, FrostBug said: You're probably right That is the 2.5.8 client version? Yes it is
June 14, 20187 yr You keep blocking out the most important part of the stack trace with your images. Mind just copying and pasting that entire log?
June 14, 20187 yr 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