Naton 1028 Posted August 18, 2023 Share Posted August 18, 2023 Looks like tribot actually makes a call to download the world list every time, even if it's already cached the worlds. This results in a massive amount of requests. For example, run the following script super.setLoginBotState(false); long l = Timing.currentTimeMillis(); WorldHopper.getServers(); println(Timing.timeFromMark(l)); WorldHopper.getServers(); println(Timing.timeFromMark(l)); WorldHopper.getServers(); println(Timing.timeFromMark(l)); Gives [19:45:18] Script Started: Test. [19:45:18] 145 [19:45:18] 230 [19:45:18] 327 Showing that its taking a large amount of time, so it's clearly downloading the world list. If you open the world list in-game, it gives: [19:51:10] Script Started: Test. [19:51:10] 3 [19:51:10] 3 [19:51:10] 4 It's unnecessary to make a request every time, and adds a massive amount of time/load. It could be a flag as well since it downloads from the official runescape website. Realistically, if the world list has already been downloaded once, just continue to use that. Could add a time check to invalidate if necessary. Otherwise every Query.worlds() will always make a network request. Quote View all my bots on the TRiBot store! (premium) (free) Need assistance with any of my bots? Join the nScript support discord (link below). nScripting.com nScript Support Discord Refund Policy Automate your bot management through nRestocker and the TRiBot Bulk Launcher Link to comment Share on other sites More sharing options...
SkrrtNick 236 Posted October 10, 2023 Share Posted October 10, 2023 Opened a PR that aims to resolve this 🙂 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.