Status
Not open for further replies.

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
Is it possible? For example:

console.log("\C[10]Test");

outputs Test in the relevant colour. Or is there any other way to make certain console logs to stand out more besides you being creative?
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
703
Reaction score
636
First Language
German
Primarily Uses
RMMV
@Rink27
The text codes are only for MV text boxes. They are not available in the console.

However, you can indeed color the console log messages.
Here is a small code snippet. Just copy-paste it into a new .js file and import it as a new plugin.
Code:
function log(msg, color) {
    console.log("%c" + msg, "color:" + color);
}

Then instead of doing
Code:
console.log("This is a test!")
you do
Code:
log("This is a test!", "red")
log("This is a test!", "green")
log("This is a test!", "blue")
log("This is a test!", "orange")
log("This is a test!", "magenta")
 

Sarlecc

Veteran
Veteran
Joined
Sep 16, 2012
Messages
453
Reaction score
211
First Language
English
Primarily Uses
RMMV
Also colors in console.log are in css format: see the post by bartburkhardt on this stackoverflow question for an insane example of this.
 
Last edited:

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
Thank you very much for all the replies! Hope no one else has anything interesting to add cause I'm gonna report this thread to be closed now.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,624
Reaction score
9,218
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

And today we got some insides maps from the town i posted last time.

Map044.png
Map045.png
Map046.png
Map047.png Map048.png Map049.png Map050.png
So a big bug that was on a glue trap at home is now magically not on the glue trap. This feeling of terror I'm experiencing could be a fun thing to put in my game project (not the IGMC one).
Hoping that Unite has a character generator with black hairs/lips and other features.. it is such a pain making characters without these...
Today is my dad's birthday! And he's still going strong in his retirement days!

Forum statistics

Threads
123,395
Messages
1,156,258
Members
161,851
Latest member
fudgeymcpopsicle
Top