HumanLikeBotting Posted June 13, 2018 Share Posted June 13, 2018 (edited) 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, 2018 by HumanLikeBotting Quote Link to comment Share on other sites More sharing options...
FrostBug Posted June 13, 2018 Share Posted June 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
HumanLikeBotting Posted June 13, 2018 Author Share Posted June 13, 2018 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! Quote Link to comment Share on other sites More sharing options...
FrostBug Posted June 13, 2018 Share Posted June 13, 2018 (edited) 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, 2018 by FrostBug Quote Link to comment Share on other sites More sharing options...
ProjectPact Posted June 13, 2018 Share Posted June 13, 2018 (edited) 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, 2018 by ProjectPact Quote Link to comment Share on other sites More sharing options...
HumanLikeBotting Posted June 13, 2018 Author Share Posted June 13, 2018 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! Quote Link to comment Share on other sites More sharing options...
FrostBug Posted June 13, 2018 Share Posted June 13, 2018 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? 1 Quote Link to comment Share on other sites More sharing options...
HumanLikeBotting Posted June 13, 2018 Author Share Posted June 13, 2018 6 hours ago, FrostBug said: You're probably right That is the 2.5.8 client version? Yes it is Quote Link to comment Share on other sites More sharing options...
Alek Posted June 14, 2018 Share Posted June 14, 2018 You keep blocking out the most important part of the stack trace with your images. Mind just copying and pasting that entire log? Quote Link to comment Share on other sites More sharing options...
HumanLikeBotting Posted June 14, 2018 Author Share Posted June 14, 2018 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 Quote Link to comment Share on other sites More sharing options...