steven128 0 Posted September 22, 2023 (edited) I've been following the tutorial but every time I go to run the example I'm greeted with many class errors. Even the "Running first script" tutorial returns a class error for Logger.log, but that page doesn't tell you to include it at the top. Is this intended? I've started to work on my own scripts and have to import as I go, but the tutorials aren't even providing a working example without the missing import step. The "Setting Up Your Development Environment" could at the very least guide the user to enable automatic unambiguous importing. Edited September 22, 2023 by steven128
MaximusPrimo 114 Posted September 22, 2023 Usually your IDE will import this for you automatically, or prompt you that it is missing
camelCase 310 Posted September 22, 2023 14 hours ago, steven128 said: Logger.log, but that page doesn't tell you to include it at the top. knowledge of java is required.
steven128 0 Author Posted September 30, 2023 I'm well past the starting gun at this point but no, the tutorial shouldn't be providing broken examples without any explanation. They need to be fixed for people who won't be able to figure it out.
MaximusPrimo 114 Posted September 30, 2023 What are you talking about. Imports are basics 101. If you aren't familiar with at least the basics of java then scripting Dreambot probably isn't for you
camelCase 310 Posted September 30, 2023 7 hours ago, steven128 said: I'm well past the starting gun at this point but no, the tutorial shouldn't be providing broken examples without any explanation well past the starting gun? i dont know what that means the idea that the import is missing from that example and its "broken" is absurd, its not missing it thats just not included in the example same as the class header. 7 hours ago, steven128 said: They need to be fixed for people who won't be able to figure it out. if you cant figure out that when you reference another class you have to import it you cant code and you cant script, its over for you. steven128 1
steven128 0 Author Posted October 4, 2023 You're too focused on being hostile instead of taking in what I'm saying. The sites tutorials are broken. Please tend to them. They do not work. The one thing Tutorials are designed to do these ones don't.
camelCase 310 Posted October 4, 2023 (edited) 13 minutes ago, steven128 said: The sites tutorials are broken. Please tend to them. They do not work. The one thing Tutorials are designed to do these ones don't. they are not broken, the example you followed was not meant to say anything about those imports, its implicit understanding when you have the required knowledge needed for scripting. Edited October 4, 2023 by camalCase
Totomi 0 Posted October 11, 2023 I solved it by reading the javadocs and using the function "log(String message)" which seems to be inherited by the AbstractScript class from another base class. So it is available without importing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now