bigbob420 Posted March 28, 2020 Posted March 28, 2020 import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.ui.Message; import java.awt.*; @ScriptManifest(author = "TEst", name = "Test", info = "Test", version = 0.1, logo = "") public final class Test extends Script { @Override public final int onLoop() throws InterruptedException { return 0; } @Override public final void onStart() { log("Started"); } @Override public final void onExit() { log("Exiting"); } @Override public final void onMessage(final Message message) { log("Message Hook : A message arrived in the chatbox: " + message.getMessage()); } @Override public void onPaint(final Graphics2D g) { g.drawString("Paint", 10, 10); } } I compile it, goes into the OSBot/Scripts folder and I refresh my scripts and viola still none. HELP PLZ
Khaleesi Posted March 28, 2020 Posted March 28, 2020 Looks good to me! You sure its in the right folder?
bigbob420 Posted March 28, 2020 Author Posted March 28, 2020 (edited) 58 minutes ago, Sibbernski said: Check if your java language level has been set to 8 It wasn't but even still the problem persists 40 minutes ago, Khaleesi said: Looks good to me! You sure its in the right folder? I thought it did too, confusing right! Still having this issue - here are my settings https://u.teknik.io/4NZWN.mp4 EDIT Just saw that I don't have the right JDK version - changed it and still I'm having the problem Edited March 28, 2020 by bigbob420 MAYBE A FIX
Gunman Posted March 28, 2020 Posted March 28, 2020 (edited) @bigbob420Pretty sure project SDK needs to be set to java 8 and in artifacts you don't put the osbot jar there and you're not exporting the script file. Open test element and double click the test out file Edited March 28, 2020 by Gunman
bigbob420 Posted March 28, 2020 Author Posted March 28, 2020 16 minutes ago, Gunman said: @bigbob420Pretty sure project SDK needs to be set to java 8 and in artifacts you don't put the osbot jar there and you're not exporting the script file. Open test element and double click the test out file Thanks @Gunman - it was because I wasn't exporting the test compile output 2