parnukaido Posted December 18, 2021 Share Posted December 18, 2021 I still have the same problem. Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 18, 2021 Author Share Posted December 18, 2021 1 hour ago, parnukaido said: I still have the same problem. Thanks for letting me know. To try and recreate this, please could you let me know: Are you using stealth injection, or mirror mode? What operating system are you on? -Apa Quote Link to comment Share on other sites More sharing options...
str1de Posted December 19, 2021 Share Posted December 19, 2021 Any chance no ammo detection could be added? Like no more arrows or darts, the script will turn itself off. I ran out of scales today and the script was just sitting there for quite a while. Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 19, 2021 Author Share Posted December 19, 2021 5 hours ago, str1de said: Any chance no ammo detection could be added? Like no more arrows or darts, the script will turn itself off. I ran out of scales today and the script was just sitting there for quite a while. Hey, The script does have detection to stop when you run out of ammo, however i've just checked and the script only verifies that your blowpipe is out of darts, not scales. I'll implement a feature to detect running out of scales too, but in the mean time I would recommend making sure you have lots of scales in your blowpipe. Cheers for letting me know about this! -Apa Quote Link to comment Share on other sites More sharing options...
str1de Posted December 23, 2021 Share Posted December 23, 2021 On 12/19/2021 at 6:13 AM, Apaec said: Hey, The script does have detection to stop when you run out of ammo, however i've just checked and the script only verifies that your blowpipe is out of darts, not scales. I'll implement a feature to detect running out of scales too, but in the mean time I would recommend making sure you have lots of scales in your blowpipe. Cheers for letting me know about this! -Apa And this is why I'll always support your scripts! You're the man! 1 Quote Link to comment Share on other sites More sharing options...
bclomas Posted December 24, 2021 Share Posted December 24, 2021 hey script still isnt starting up for me.... is it going to get fixed? [INFO][12/24 09:41:37 AM]: Welcome to OSBot 2.6.41! [INFO][12/24 09:41:37 AM]: Loaded 1 RS accounts! [INFO][12/24 09:41:38 AM]: Script list refreshed and loaded 14 scripts. [INFO][12/24 09:42:10 AM]: Updated injection hooks for client revision : 202! [DEBUG][Bot #1][12/24 09:42:10 AM]: Initializing stealth injection bot... [INFO][Bot #1][12/24 09:42:10 AM]: Downloading latest RS2 old-school client parameters... [INFO][Bot #1][12/24 09:42:11 AM]: Downloading latest RS2 old-school client... [DEBUG][Bot #1][12/24 09:42:13 AM]: Injected bot reference into client! [DEBUG][Bot #1][12/24 09:42:14 AM]: Injected world accessors! [DEBUG][Bot #1][12/24 09:42:14 AM]: Injected 38 class and 341 field accessors! [DEBUG][Bot #1][12/24 09:42:14 AM]: Injected canvas! [DEBUG][Bot #1][12/24 09:42:23 AM]: Loading RS world : 3205 [INFO][Bot #1][12/24 09:42:24 AM]: Initializing 39 API modules... [INFO][12/24 09:42:24 AM]: Started bot #1 [INFO][Bot #1][12/24 09:42:27 AM]: Loaded 4 built-in random solvers! [INFO][Bot #1][12/24 09:42:30 AM]: Started random solver : Auto Login [INFO][Bot #1][12/24 09:42:33 AM]: Successfully logged in, waiting for welcome screen. [INFO][Bot #1][12/24 09:42:39 AM]: Random solver exited : Auto Login [INFO][Bot #1][12/24 09:42:39 AM]: Started random solver : Welcome Screen [INFO][Bot #1][12/24 09:42:42 AM]: Random solver exited : Welcome Screen [INFO][Bot #1][12/24 09:42:42 AM]: Starting script: APA Sand Crabs v3.16 [ERROR][Bot #1][12/24 09:42:43 AM]: Error in script onStart(): APA Sand Crabs java.lang.ExceptionInInitializerError at java.util.HashMap.readObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at uk.co.ramyun.sandcrabs.l.auX.f(r:220) at uk.co.ramyun.sandcrabs.f.Prn.e(p:584) at uk.co.ramyun.sandcrabs.f.Prn.<init>(p:255) at uk.co.ramyun.sandcrabs.core.Main.onStart(ua:211) at org.osbot.rs07.event.ScriptExecutor.iiIiIiiIIiiI(re:216) at org.osbot.rs07.event.ScriptExecutor.start(re:510) at org.osbot.Lpt8.iiIiIiiIIiiI(kab:44) at org.osbot.lPt3.iiIiIiiIIiiI(nw:147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks") at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at org.osbot.Hb.checkPermission(mt:120) at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source) at java.util.HashMap$UnsafeHolder.getLoadFactorField(Unknown Source) at java.util.HashMap$UnsafeHolder.<clinit>(Unknown Source) ... 30 more [INFO][Bot #1][12/24 09:42:43 AM]: Terminating script APA Sand Crabs... [INFO][Bot #1][12/24 09:42:43 AM]: Script stopped: APA Sand Crabs v3.16 by Apaec. [INFO][Bot #1][12/24 09:42:43 AM]: Script APA Sand Crabs has exited! Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 25, 2021 Author Share Posted December 25, 2021 On 12/24/2021 at 9:40 AM, bclomas said: hey script still isnt starting up for me.... is it going to get fixed? [INFO][12/24 09:41:37 AM]: Welcome to OSBot 2.6.41! [INFO][12/24 09:41:37 AM]: Loaded 1 RS accounts! [INFO][12/24 09:41:38 AM]: Script list refreshed and loaded 14 scripts. [INFO][12/24 09:42:10 AM]: Updated injection hooks for client revision : 202! [DEBUG][Bot #1][12/24 09:42:10 AM]: Initializing stealth injection bot... [INFO][Bot #1][12/24 09:42:10 AM]: Downloading latest RS2 old-school client parameters... [INFO][Bot #1][12/24 09:42:11 AM]: Downloading latest RS2 old-school client... [DEBUG][Bot #1][12/24 09:42:13 AM]: Injected bot reference into client! [DEBUG][Bot #1][12/24 09:42:14 AM]: Injected world accessors! [DEBUG][Bot #1][12/24 09:42:14 AM]: Injected 38 class and 341 field accessors! [DEBUG][Bot #1][12/24 09:42:14 AM]: Injected canvas! [DEBUG][Bot #1][12/24 09:42:23 AM]: Loading RS world : 3205 [INFO][Bot #1][12/24 09:42:24 AM]: Initializing 39 API modules... [INFO][12/24 09:42:24 AM]: Started bot #1 [INFO][Bot #1][12/24 09:42:27 AM]: Loaded 4 built-in random solvers! [INFO][Bot #1][12/24 09:42:30 AM]: Started random solver : Auto Login [INFO][Bot #1][12/24 09:42:33 AM]: Successfully logged in, waiting for welcome screen. [INFO][Bot #1][12/24 09:42:39 AM]: Random solver exited : Auto Login [INFO][Bot #1][12/24 09:42:39 AM]: Started random solver : Welcome Screen [INFO][Bot #1][12/24 09:42:42 AM]: Random solver exited : Welcome Screen [INFO][Bot #1][12/24 09:42:42 AM]: Starting script: APA Sand Crabs v3.16 [ERROR][Bot #1][12/24 09:42:43 AM]: Error in script onStart(): APA Sand Crabs java.lang.ExceptionInInitializerError at java.util.HashMap.readObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at uk.co.ramyun.sandcrabs.l.auX.f(r:220) at uk.co.ramyun.sandcrabs.f.Prn.e(p:584) at uk.co.ramyun.sandcrabs.f.Prn.<init>(p:255) at uk.co.ramyun.sandcrabs.core.Main.onStart(ua:211) at org.osbot.rs07.event.ScriptExecutor.iiIiIiiIIiiI(re:216) at org.osbot.rs07.event.ScriptExecutor.start(re:510) at org.osbot.Lpt8.iiIiIiiIIiiI(kab:44) at org.osbot.lPt3.iiIiIiiIIiiI(nw:147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks") at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at org.osbot.Hb.checkPermission(mt:120) at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source) at java.util.HashMap$UnsafeHolder.getLoadFactorField(Unknown Source) at java.util.HashMap$UnsafeHolder.<clinit>(Unknown Source) ... 30 more [INFO][Bot #1][12/24 09:42:43 AM]: Terminating script APA Sand Crabs... [INFO][Bot #1][12/24 09:42:43 AM]: Script stopped: APA Sand Crabs v3.16 by Apaec. [INFO][Bot #1][12/24 09:42:43 AM]: Script APA Sand Crabs has exited! Hey there, A few others have reported this issue too. The issue occurs when the script tries to read the configuration save file from your system. I suspect it's something to do with either the Java version in use, or the OS. This has only recently started happening and I've not been able to recreate this issue myself. For now, you should still be able to run the script without a save file (if you already have a save file, delete it - it's in`~/OSBot/Data/`). To help me debug this further, could you also let me know: Your operating system Your Java version? (type `java -version` into your command line) Cheers Apa Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 25, 2021 Author Share Posted December 25, 2021 On 12/23/2021 at 11:39 PM, str1de said: And this is why I'll always support your scripts! You're the man! Script update: Version 3.17. Script now detects (and safely stops) when you run out of scales in your blowpipe -Apa PS: Merry Christmas! Quote Link to comment Share on other sites More sharing options...
Rorel Posted December 27, 2021 Share Posted December 27, 2021 (edited) On 12/25/2021 at 6:44 AM, Apaec said: Hey there, A few others have reported this issue too. The issue occurs when the script tries to read the configuration save file from your system. I suspect it's something to do with either the Java version in use, or the OS. This has only recently started happening and I've not been able to recreate this issue myself. For now, you should still be able to run the script without a save file (if you already have a save file, delete it - it's in`~/OSBot/Data/`). To help me debug this further, could you also let me know: Your operating system Your Java version? (type `java -version` into your command line) Cheers Apa Hey APA, Still having issues with the script reading the config. Operating System: Mac OS Monterey (12.1) Java Version: java version "1.8.0_311" Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode) Mirror / Stealth: Mirror mode Below is the Logger readout: Quote [INFO][Bot #1][12/27 02:20:10 PM]: Loaded 4 built-in random solvers! [INFO][Bot #1][12/27 02:20:10 PM]: Starting script: APA Sand Crabs v3.17 [ERROR][Bot #1][12/27 02:20:10 PM]: Error in script onStart(): APA Sand Crabs java.lang.NoClassDefFoundError: Could not initialize class java.util.HashMap$UnsafeHolder at java.util.HashMap.readObject(HashMap.java:1386) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1185) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2319) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2210) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1690) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2428) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2352) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2210) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1690) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2428) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2352) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2210) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1690) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:508) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:466) at uk.co.ramyun.sandcrabs.r.con.f(u:218) at uk.co.ramyun.sandcrabs.k.Aux.f(e:547) at uk.co.ramyun.sandcrabs.k.Aux.<init>(e:632) at uk.co.ramyun.sandcrabs.core.Main.onStart(ga:18) at org.osbot.rs07.event.ScriptExecutor.iiIiIiiIIiiI(re:216) at org.osbot.rs07.event.ScriptExecutor.start(re:510) at org.osbot.Lpt8.iiIiIiiIIiiI(kab:44) at org.osbot.lPt3.iiIiIiiIIiiI(nw:147) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [INFO][Bot #1][12/27 02:20:10 PM]: Terminating script APA Sand Crabs... [INFO][Bot #1][12/27 02:20:10 PM]: Script stopped: APA Sand Crabs v3.17 by Apaec. [INFO][Bot #1][12/27 02:20:10 PM]: Script APA Sand Crabs has exited! Edited December 27, 2021 by Rorel Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 28, 2021 Author Share Posted December 28, 2021 (edited) 4 hours ago, Rorel said: Hey APA, Still having issues with the script reading the config. Operating System: Mac OS Monterey (12.1) Java Version: java version "1.8.0_311" Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode) Mirror / Stealth: Mirror mode Below is the Logger readout: Thanks for the detailed info Rorel Spent this evening debugging this issue, it's an interesting one! Turns out that a bug was introduced somewhere between java 1.8.0_221 and java 1.8.0_311 which prevented the deserialisation of the data structure I was using to store the amount of each potion you bring with you each trip. I've fixed this issue by creating a serialisable wrapper class with the same interface as the structure I was previously using. Not the most elegant solution, but the best I can do with the time available to me. Script update: Version 3.18 Fixed issue where the saved script configuration fails to deserialise on the latest version of Java. Prevent script crash if images fail to load. Best Apa NOTE: An unfortunate consequence of this update is that saved configurations will need recreating. Edited December 28, 2021 by Apaec 1 Quote Link to comment Share on other sites More sharing options...
Cyanide Posted December 31, 2021 Share Posted December 31, 2021 (edited) Solved Edited December 31, 2021 by Cyanide solved after restarting Quote Link to comment Share on other sites More sharing options...
Rorel Posted January 5, 2022 Share Posted January 5, 2022 Just wanted to report that the script is working great and loading/saving configs now without issue. Thanks for the fast update Apa 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted January 5, 2022 Author Share Posted January 5, 2022 10 hours ago, Rorel said: Just wanted to report that the script is working great and loading/saving configs now without issue. Thanks for the fast update Apa Great to hear! No worries. Happy new year! -Apa Quote Link to comment Share on other sites More sharing options...
JAG98 Posted January 8, 2022 Share Posted January 8, 2022 Is there a way to configure the script so that it stops at a certain level? For instance, after reaching level 40 attack, I want the script to exit. Any way to do that? Quote Link to comment Share on other sites More sharing options...
Sir Farms A Lot Posted January 9, 2022 Share Posted January 9, 2022 Can you add gearing to the script? Quote Link to comment Share on other sites More sharing options...