Arkain 8 Posted February 10 Hey guys, As the title says, is there a way to change to the text color insde the console? I've tried applying ansi color codes to no avail. If i am able to log colors (log(" color + text");), then debugging will become way smoother, any help is appreciated!
Pandemic 2816 Posted February 10 Hey there, you can use this method to log with a specific color: https://dreambot.org/javadocs/org/dreambot/api/utilities/Logger.html#log(java.awt.Color,java.lang.Object) Hope that helps! Arkain 1
Arkain 8 Author Posted February 10 Ive tried many things by now and nothing works xd I dont get any color but only the RGB values are being displayed in the console: [SCRIPT] [java.awt.Color[r=255,g=0,b=255]]Example // this text is being displayed in blue by default [INFO] [java.awt.Color[r=255,g=0,b=255]]Example // this text is being displayed in white by default [SCRIPT] is being generated when i use the build in log, log(Color.MAGENTA + "text"); [INFO] is being generated when i use System.out.println(Color.MAGENTA + "text"); I am really lost on this, the only thing im getting when it comes to colors are blue and white with the rgb values + text or only text without color besides blue and white...
camelCase 290 Posted February 11 6 hours ago, Arkain said: Ive tried many things by now and nothing works xd I dont get any color but only the RGB values are being displayed in the console: + is doing string concatenation you need to provide it as the first arg to dreambots logger, Logger.log(Color.PINK, "penis"); fallacy87 1
fallacy87 8 Posted February 12 18 hours ago, camalCase said: + is doing string concatenation you need to provide it as the first arg to dreambots logger, Logger.log(Color.PINK, "penis"); if i had a book/website that taught me coding based off this I would have learned it years ago. Just saying you could make millions. camelCase 1
Arkain 8 Author Posted February 13 On 2/11/2024 at 7:17 AM, camalCase said: + is doing string concatenation you need to provide it as the first arg to dreambots logger, Logger.log(Color.PINK, "penis"); Yeah thx i tried this but doesn't do shit... text still shows in blue xd
Pandemic 2816 Posted February 13 13 hours ago, Arkain said: Yeah thx i tried this but doesn't do shit... text still shows in blue xd Looks like at some point it was broken, I've fixed it for the next client build. Arkain 1
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