-
Posts
10 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by McLovin
-
-
I'm trying to connect to localhost (a local web server I'm hosting) in my script but when I run OSBot and the script, it doesn't connect to it. How does one connect to a local web server within a script?
-
Update: Getting an error when trying to access details of Item objects as well e.g. item.getName(), item.getId(), etc. Seems to be an issue with multiple classes.
-
25 minutes ago, blogans said:
It's a problem with all bots currently, all local player methods (Including ones on other botting clients) are broken. There's no fix on our end, just need to wait for the next update.
Not true in my experience. A few other methods I've tested work, like myPlayer.isUnderAttack(). Right now through running my scripts, the only issue I've had so far is with the myPlayer().getName() method.
-
I don't know why but recently I've been getting this stacktrace error whenever I do myPlayer().getName() in the onStart method:
[INFO][Bot #1][02/01 08:59:16 PM]: Loaded 4 built-in random solvers! [INFO][Bot #1][02/01 08:59:19 PM]: Started random solver : Auto Login [INFO][Bot #1][02/01 08:59:26 PM]: Random solver exited : Auto Login [INFO][Bot #1][02/01 08:59:30 PM]: Started random solver : Welcome Screen [ERROR][02/01 08:59:31 PM]: Uncaught exception! java.lang.AbstractMethodError: bc.getName()Ljava/lang/String; at org.osbot.rs07.api.model.Player.getName(bi:268) at core.ClayMiner.onStart(ClayMiner.java:38) at org.osbot.rs07.event.ScriptExecutor.iIIiIiiiIIIi(yn:153) at org.osbot.rs07.event.ScriptExecutor.start(yn:484) at org.osbot.GB.run(qf:8) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [INFO][Bot #1][02/01 08:59:33 PM]: Random solver exited : Welcome Screen
I updated to 2.4.161 yesterday and it was fine, but today I'm getting this error. I've tried deleting the OSBot folder, downloading the client again but it still gives the same results.
Also, whenever a random event pops up I get the same error, so whenever it tries to call myPlayer().getName() it generates that. For now for my use case I'm using bot.getUsername() but it is still prone to crashing when a random event occurs. Any thoughts?
-
Same here. My 2.4.160 fails to update to .161 because it had issues connecting with the osbot servers. I downloaded the update from the site directly and seems to work, but my account was banned for like 10 minutes when I tried to login and it failed.
-
It's good in theory, and it's a good outline of how the method works. But in practise, a shit ton of other things come into play =P
Connect to localhost inside script?
in Scripting Help
Posted
Can I not use Sockets to connect to a server then?