PlumpRump Posted April 9, 2019 Share Posted April 9, 2019 (edited) I was testing a new script and I found world hopping isn't working anymore. The bot opens the world hopping interface where the list of worlds is and then just does nothing. I just tested this on an older script that I know worked and there was the same issue. I don't know when this problem started because I haven't tested a script with world hop in a couple days. I think this is a client bug, but I can't be sure. Has anyone else had this issue? Edited April 9, 2019 by PlumpRump Quote Link to comment Share on other sites More sharing options...
PlumpRump Posted April 9, 2019 Author Share Posted April 9, 2019 I created a bare bones script to isolate this issue package script; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import util.Sleep; import java.util.Arrays; @ScriptManifest(author = "PlumpRump", name = "HopTest", info = "", version = 0.1, logo = "") public class HopTest extends Script { private static final Integer[] F2P_WORLDS = new Integer[]{301, 308, 316, 326, 335, 379, 380, 382, 383, 384, 393, 394, 397, 398, 399, 417, 418, 425, 426, 430, 431, 433, 434, 435, 436, 437, 438, 439, 440, 451, 452, 453, 454, 455, 456, 457, 458, 459, 469, 470, 471, 472, 473, 474, 475, 476, 477, 497, 498, 499, 500, 501, 502, 503, 504}; @Override public int onLoop() throws InterruptedException { int worldToHop = nextF2pWorld(); log("HopWorld: Attempting to hop to world " + worldToHop); getWorlds().hop(worldToHop); new Sleep(() -> getWorlds().getCurrentWorld() == worldToHop && myPlayer().isVisible(), 5000).sleep(); if (getWorlds().getCurrentWorld() == worldToHop) { log("HopTest: Successfully hopped to world " + worldToHop); } else { log("HopTest ERROR: Unable to hop to world " + worldToHop); } return 1000; } private int nextF2pWorld() { int currentWorldIndex = Arrays.binarySearch(F2P_WORLDS, getWorlds().getCurrentWorld()); int nextIndex = (currentWorldIndex + 1) % F2P_WORLDS.length; return F2P_WORLDS[nextIndex]; } } This produces output Quote [INFO][Bot #1][04/09 07:02:40 AM]: Loaded 3 built-in random solvers! [INFO][Bot #1][04/09 07:02:40 AM]: Started script : HopTest [INFO][Bot #1][04/09 07:02:40 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:02:42 AM]: Terminating script HopTest... [INFO][Bot #1][04/09 07:02:42 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:02:42 AM]: Script HopTest has exited! [INFO][Bot #1][04/09 07:02:47 AM]: Loaded 3 built-in random solvers! [INFO][Bot #1][04/09 07:02:50 AM]: Started random solver : Auto Login [INFO][Bot #1][04/09 07:02:56 AM]: Successfully logged in, waiting for welcome screen. [INFO][Bot #1][04/09 07:02:56 AM]: Random solver exited : Auto Login [INFO][Bot #1][04/09 07:03:00 AM]: Started random solver : Welcome Screen [INFO][Bot #1][04/09 07:03:03 AM]: Random solver exited : Welcome Screen [INFO][Bot #1][04/09 07:03:04 AM]: Started script : HopTest [INFO][Bot #1][04/09 07:03:04 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:11 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:12 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:17 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:18 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:23 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:24 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:29 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:30 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:35 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:36 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:41 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:42 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:47 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:48 AM]: HopWorld: Attempting to hop to world 475 [INFO][Bot #1][04/09 07:03:49 AM]: Terminating script HopTest... [INFO][Bot #1][04/09 07:03:49 AM]: HopTest ERROR: Unable to hop to world 475 [INFO][Bot #1][04/09 07:03:49 AM]: Script HopTest has exited! Please, can anyone help? This is really a show stopper for me... Quote Link to comment Share on other sites More sharing options...
Kramnik Posted April 9, 2019 Share Posted April 9, 2019 Happened couple months ago too, develops fixed it in two days Quote Link to comment Share on other sites More sharing options...
Thiccboi Posted April 9, 2019 Share Posted April 9, 2019 Why not just use worlds.hopToF2PWorld() then return if hopped world? Quote Link to comment Share on other sites More sharing options...
RawTech Posted April 9, 2019 Share Posted April 9, 2019 (edited) 3 minutes ago, Thiccboi said: Why not just use worlds.hopToF2PWorld() then return if hopped world? For certain scripts you need to hop to a specific world. I guess this would be a workaround if you didn't need to do that. I just noticed this same issue when I got home from work today, hopefully its something the developers can resolve in good time. @Patrick edit: From my brief testing, it doesn't look like the problem specifically affects certain worlds, seems to be broken across the board. Edited April 9, 2019 by rawtech Added testing notes. Quote Link to comment Share on other sites More sharing options...
Developer Patrick Posted April 9, 2019 Developer Share Posted April 9, 2019 I'll check it out. Edit: just checked, it works for me. Maybe restart the client. Quote Link to comment Share on other sites More sharing options...
RawTech Posted April 9, 2019 Share Posted April 9, 2019 Restarting the client doesn't seem to help. worlds.hop() is just returning false in the cases where it doesn't work. The client opens the world switcher tab but doesn't attempt to scroll to the desired world, if the desired world is in view, it will click on it. Quote Link to comment Share on other sites More sharing options...
PlumpRump Posted April 9, 2019 Author Share Posted April 9, 2019 I just tried my exact same HopTest script I wrote earlier and it works this time. This morning when I experienced the problem, I restarted the client numerous times and even ran it on two different operating systems. I wonder if it's due to some weird widget ID shenanigans in the OSRS client. I can't think of anything else that's changed Quote Link to comment Share on other sites More sharing options...
Kramnik Posted April 10, 2019 Share Posted April 10, 2019 @Patrick Hi, Patrick. Want to update you on this issue. Tested some world hopping scripts today so in fact hopping is working, but after update it became very buggy, fails to half the time. Hope you could look into this Quote Link to comment Share on other sites More sharing options...
Darek855 Posted April 17, 2019 Share Posted April 17, 2019 Not working for me. just hovers the world it is trying to hop to. could be because uk worlds are down today due to maintenance (it is trying to hop to german world tho) Quote Link to comment Share on other sites More sharing options...
ryank645 Posted April 17, 2019 Share Posted April 17, 2019 also down for me, will just need to wait for a fix. Quote Link to comment Share on other sites More sharing options...
Darek855 Posted April 18, 2019 Share Posted April 18, 2019 18 hours ago, Darek855 said: Not working for me. just hovers the world it is trying to hop to. could be because uk worlds are down today due to maintenance (it is trying to hop to german world tho) UK worlds are back and it is working again so that was the reason Quote Link to comment Share on other sites More sharing options...