ChonkyFish

  • Content Count

    11
  • Joined

  • Last visited

  • Feedback

    N/A

About ChonkyFish

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Well my compiled classes are located at the directory C:\Users\Nanybany\IdeaProjects\PowerChopper\out
  2. Yup they are being compiled to a directory in my classpath: "C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\bin\java.exe" -Xmx768m -XX:+UseG1GC -Dcom.jagex.config=www "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.2\lib\idea_rt.jar=61858:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\charsets.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\access-bridge-32.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\access-bridge.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\cldrdata.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\dnsns.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\jaccess.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\localedata.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\nashorn.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\sunec.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\sunjce_provider.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\sunmscapi.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\sunpkcs11.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\ext\zipfs.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\jce.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\jsse.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\management-agent.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\resources.jar;C:\Program Files (x86)\AdoptOpenJDK\jdk-8.0.222.10-hotspot\jre\lib\rt.jar; C:\Users\Nanybany\IdeaProjects\PowerChopper\out; C:\Users\Nanybany\IdeaProjects\PowerChopper\RSBot.jar" jagexappletviewer; my class path consists of all that stuff which I am too noobish to understand, but I can clearly see the spaced entry (spaced for readability) is where my compiled classes are located. I also tried DopeAssFreshPrince's bat file: @ECHO OFF java -Xmx768m -XX:+UseG1GC -cp "C:\Users\Nanybany\IdeaProjects\PowerChopper\out;C:\Users\Nanybany\IdeaProjects\PowerChopper\RSBot.jar" jagexappletviewer pause and it wouldn't find load the script.
  3. I followed your guide: Here is my Task: import org.powerbot.script.rt6.ClientAccessor; import org.powerbot.script.rt6.ClientContext; public abstract class Task extends ClientAccessor { public Task(ClientContext ctx) { super(ctx); } public abstract boolean activate(); public abstract void execute(); } Drop: import org.powerbot.script.rt6.ClientContext; import org.powerbot.script.rt6.Item; public class Drop extends Task { private int logId = 1511; public Drop(ClientContext ctx) { super(ctx); } @Override public boolean activate() { return ctx.backpack.select().count() == 28; } @Override public void execute() { for (Item i : ctx.backpack.id(logId)) { i.interact("Drop"); } } } Chop: import org.powerbot.script.rt6.ClientContext; import org.powerbot.script.rt6.GameObject; public class Chop extends Task { private int[] treeIds = {38616, 38627, 58006}; public Chop(ClientContext ctx) { super(ctx); } @Override public boolean activate() { return ctx.backpack.select().count() < 28 && !ctx.objects.select().id(treeIds).isEmpty() && ctx.players.local().animation() == -1; } @Override public void execute() { GameObject tree = ctx.objects.nearest().poll(); if (tree.inViewport()) { tree.interact("Chop"); } else { ctx.movement.step(tree); ctx.camera.turnTo(tree); } } } PowerChopper: import org.powerbot.script.Script; import org.powerbot.script.rt6.ClientContext; import org.powerbot.script.PollingScript; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @Script.Manifest(name="PowerChopper", description="Chops wood") public class PowerChopper extends PollingScript<ClientContext> { private List<Task> taskList = new ArrayList<Task>(); @Override public void start() { taskList.addAll(Arrays.asList(new Chop(ctx), new Drop(ctx))); } @Override public void poll() { for (Task task : taskList) { if (task.activate()) { task.execute(); } } } } Also I just got AdoptOpenJDK, which was recommended, I was hoping that maybe that would fix any issues. Now I am getting a new error: sun.awt.image.ImageFormatException: Unsupported color conversion request at sun.awt.image.JPEGImageDecoder.readImage(Native Method) at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:141) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:269) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:205) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:169) I can post pictures of my configuration too if needed.
  4. Java Version: 1.8.0_221 So i've tried RZME's guide on setting up RSBot to run local scripts but the bot wont find my local scripts. The problem is that in the scripts window it wont show my local script. It shows all my other scripts that i've added through powerbot. I get this error in the console log of IntelliJIDEA: Error: client.init:1229 sun.reflect.NativeMethodAccessorImpl.invoke0 sun.reflect.NativeMethodAccessorImpl.invoke:62 sun.reflect.DelegatingMethodAccessorImpl.invoke:43 java.lang.reflect.Method.invoke:498 Rs2Applet.a:15 Rs2Applet.init:497 app.appletviewer.lambda$load$0:103 java.awt.event.InvocationEvent.dispatch:311 java.awt.EventQueue.dispatchEventImpl:758 java.awt.EventQueue.access$500:97 java.awt.EventQueue$3.run:709 java.awt.EventQueue$3.run:703 java.security.AccessController.doPrivileged java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege:74 java.awt.EventQueue.dispatchEvent:728 java.awt.EventDispatchThread.pumpOneEventForFilters:205 java.awt.EventDispatchThread.pumpEventsForFilter:116 java.awt.EventDispatchThread.pumpEventsForHierarchy:105 java.awt.EventDispatchThread.pumpEvents:101 java.awt.EventDispatchThread.pumpEvents:93 java.awt.EventDispatchThread.run:82 | java.lang.RuntimeException | but I don't get any errors in rsbot logs. Is anyone else getting this error? Could this be preventing me from running local scripts, or rsbot from finding my scripts? Any help would be appreciated. Thank you.
  5. Is anyone else getting this error: Error: client.init:1335 sun.reflect.NativeMethodAccessorImpl.invoke0 sun.reflect.NativeMethodAccessorImpl.invoke sun.reflect.DelegatingMethodAccessorImpl.invoke java.lang.reflect.Method.invoke Rs2Applet.a:149 Rs2Applet.init:457 app.appletviewer.lambda$load$0:103 java.awt.event.InvocationEvent.dispatch java.awt.EventQueue.dispatchEventImpl java.awt.EventQueue.access$500 java.awt.EventQueue$3.run java.awt.EventQueue$3.run java.security.AccessController.doPrivileged java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege java.awt.EventQueue.dispatchEvent java.awt.EventDispatchThread.pumpOneEventForFilters java.awt.EventDispatchThread.pumpEventsForFilter java.awt.EventDispatchThread.pumpEventsForHierarchy java.awt.EventDispatchThread.pumpEvents java.awt.EventDispatchThread.pumpEvents java.awt.EventDispatchThread.run | java.lang.RuntimeException | I have no idea what it means, why I am getting it, and is it possibly stopping me from running local scripts? I can run the client, I get no errors in the log and the error above is posting to the IntelliJIDEA console but not the RSBot log. I tried both oldschool and rs3. oldschool says I don't have scripts added (which I don't) and rs3 shows all the scripts i've added. Neither of which show any local scripts. I have tried the instructions here and I believe I followed everything perfectly but I can't get local scripts to show. I think it might have something to do with the error above. If not, I have taken pictures of my IntelliJIDEA setup. If you need me to post anything I will. Any help would be appreciated. Thank you. Java Version: 1.8.0_211 (I tried 221 but that didn't work either)