yeeter 520 Share Posted September 17, 2019 Pretty sure getQuest().isFinished() is not working properly. When feeding it a quest to check getting a lovely java.lang.ArrayIndexOutOfBoundsException: -1 Tried assuring the quest tab was pulled up before the check etc. My code snippet generating these errors ArrayList<Quest> curCompletedQuest = new ArrayList<Quest>(); if (getTabs().open(Tab.QUEST) || getTabs().isOpen(Tab.QUEST)) { for (Quest curQuest : Quest.values()) { log("Completed Quest - " + getQuests().isFinished(curQuest)); if (getQuests().isFinished(curQuest)) { curCompletedQuest.add(curQuest); } } } Attempted to just print all quest enums which worked properly but the moment isFinished is hit I get this trace java.lang.ArrayIndexOutOfBoundsException: -1 at org.dreambot.api.wrappers.widgets.WidgetChild.getChild(WidgetChild.java:326) at org.dreambot.api.methods.widget.Widgets.getWidgetChild(Widgets.java:117) at org.dreambot.api.methods.quest.Quest.getWidgetChild(Quest.java:192) at org.dreambot.api.methods.quest.Quest.isFinished(Quest.java:205) at org.dreambot.api.methods.quest.Quests.isFinished(Quests.java:42) at scripts.scriptIamWorkingOn.src.Main.onLoop(Main.java:88) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:256) at java.lang.Thread.run(Unknown Source) Line 88 being the log message to print out completed quest. Made a work around but still thought I was report to see if I just wrote something incorrectly or if this is just broke. Link to comment Share on other sites More sharing options...
Cystic 39 Share Posted September 18, 2019 I couldn't get it to work either, I ended up using player settings to track the quest progress. At least I know it may actually be broken and I'm not just too stupid to get it to work. (Or we're both too stupid but I'll accept that too) Link to comment Share on other sites More sharing options...
yeeter 520 Author Share Posted September 18, 2019 1 hour ago, Cystic said: I couldn't get it to work either, I ended up using player settings to track the quest progress. At least I know it may actually be broken and I'm not just too stupid to get it to work. (Or we're both too stupid but I'll accept that too) Lololol, yeah switched over to player settings as well but thought it was still worth reporting. Link to comment Share on other sites More sharing options...
Nuclear Nezz 2051 Share Posted September 18, 2019 Oh, I see. That was my bad, I forgot to put them into literally just the first quest hah. Will be fixed in next release. Link to comment Share on other sites More sharing options...
yeeter 520 Author Share Posted September 18, 2019 Thanks Nezz! Link to comment Share on other sites More sharing options...
Akris 10 Share Posted September 18, 2019 Thanks, it will be nice to see this fixed Link to comment Share on other sites More sharing options...
Cystic 39 Share Posted September 19, 2019 We did it! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.