Jump to content

APA Sand Crabs


Apaec

Recommended Posts

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

Link to comment
Share on other sites

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!

  • Heart 1
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by Rorel
Link to comment
Share on other sites

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 by Apaec
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...