Warrior627 0 Share Posted November 24, 2018 Update: After reinstalling my dreambot files, my script executes fine, however all objects that are found with getGameObjects().all() are all null. For example, getGameObjects().all().size() returns 7801, however when I loop through these objects, they are all null. The following works: @Override public int onLoop() { log("Running"); GameObject test; return 500; } It outputs: Running Running Running Running ect... The following doesn't work: @Override public int onLoop() { log("Running"); GameObject test = getGameObjects().closest("Tree"); return 500; } It outputs: Running And that's it, the script get stucks, no errors are thrown and the bot continues to run, except it never finishes executing getGameObjects().closest(); Link to comment Share on other sites More sharing options...
Nuclear Nezz 2051 Share Posted November 24, 2018 Could you run the client through cmd? Some errors will print to command prompt window, but not the debug console. Link to comment Share on other sites More sharing options...
Warrior627 0 Author Share Posted November 24, 2018 Here's my output: [INFO] Connecting to server... [INFO] Connected to server! log4j:WARN No such property [conversionPattern] in org.apache.log4j.PatternLayout. log4j:WARN No such property [conversionPattern] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxFileSize] in org.apache.log4j.RollingFileAppender. log4j:WARN No such property [file] in org.apache.log4j.RollingFileAppender. log4j:WARN File option not set for appender [LocalFile]. log4j:WARN Are you using FileAppender instead of ConsoleAppender? [INFO] Logged in successfully! You may now open a tab! [INFO] Your current rank(s): [VIP] [INFO] Tab Count: 0 [INFO] Successfully loaded 182 worlds! [INFO] Starting new instance... [INFO] Attempting to connect to OSRS... [INFO] Connection successful! [INFO] Attempting to start new applet... [INFO] Opened gamepack connection! [INFO] Successfully started new applet! [INFO] Loaded 372 field definitions! [INFO] Loaded 5318 web nodes successfully! [INFO] Successfully started new instance! [INFO] Successfully initialized 18 cache index files! [INFO] Starting game state listener! [INFO] Started game state listener! [INFO] Starting message listener... [INFO] Started message listener! [INFO] Script set to running! Running log4j:ERROR No output stream or file set for the appender named [LocalFile]. Looks okay to me? Not sure what this output stream / file is for... I'm using JDK 1.8.0_144 x86 JRE 1.8.0_191 x86 Link to comment Share on other sites More sharing options...
ozeki6 32 Share Posted November 24, 2018 1 hour ago, Warrior627 said: Here's my output: [INFO] Connecting to server... [INFO] Connected to server! log4j:WARN No such property [conversionPattern] in org.apache.log4j.PatternLayout. log4j:WARN No such property [conversionPattern] in org.apache.log4j.PatternLayout. log4j:WARN No such property [maxFileSize] in org.apache.log4j.RollingFileAppender. log4j:WARN No such property [file] in org.apache.log4j.RollingFileAppender. log4j:WARN File option not set for appender [LocalFile]. log4j:WARN Are you using FileAppender instead of ConsoleAppender? [INFO] Logged in successfully! You may now open a tab! [INFO] Your current rank(s): [VIP] [INFO] Tab Count: 0 [INFO] Successfully loaded 182 worlds! [INFO] Starting new instance... [INFO] Attempting to connect to OSRS... [INFO] Connection successful! [INFO] Attempting to start new applet... [INFO] Opened gamepack connection! [INFO] Successfully started new applet! [INFO] Loaded 372 field definitions! [INFO] Loaded 5318 web nodes successfully! [INFO] Successfully started new instance! [INFO] Successfully initialized 18 cache index files! [INFO] Starting game state listener! [INFO] Started game state listener! [INFO] Starting message listener... [INFO] Started message listener! [INFO] Script set to running! Running log4j:ERROR No output stream or file set for the appender named [LocalFile]. Looks okay to me? Not sure what this output stream / file is for... I'm using JDK 1.8.0_144 x86 JRE 1.8.0_191 x86 Strange. Did you used quickstart? Do you have an onStart method and if yes show us the code. We might need more context. Link to comment Share on other sites More sharing options...
Nuclear Nezz 2051 Share Posted November 24, 2018 Yeah, you may have to just post your whole script file, so we can see if there's something else causing an issue. Also, is that from debug console or from command prompt? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.