Jump to content
Korean Random

Customize nicknames in chat (colorize, add info, etc)


Recommended Posts

Implemented in latest version. This is disabled by default, so you should set customColors to true to enable it. Only the XVM scale is supported, so have a look to this post to find out the conversions to other scales.

 

BTW, if you only want to disable colorization, just set colorizeAuthor and colorizeTarget to false.

Thank you;)

Link to comment
Short link
Share on other sites

hi tey

have many error in python.log like this


[WARNING] (res_mods/configs/xvm/py_macro\mod_chat_color.py, 130): Cannot find VID for player with name "<yaya070"

[WARNING] (res_mods/configs/xvm/py_macro\mod_chat_color.py, 130): Cannot find VID for player with name "M40/M43"

Link to comment
Short link
Share on other sites

germany-G13_VK3001H_38_mannerheim_line.wotreplay

 

in python log

2017-02-08 18:34:02.316: WARNING: [WARNING] (res_mods/configs/xvm/py_macro\mod_chat_color.py, 146): Cannot find VID for player with name "Grille"
2017-02-08 18:34:11.234: WARNING: [WARNING] (res_mods/configs/xvm/py_macro\mod_chat_color.py, 146): Cannot find VID for player with name "leFH18B2"

 

but the message was send in chat

Link to comment
Short link
Share on other sites

I've checked the replay and the warnings are harmless. Download the latest version of the mod and they should go away.

 

Note that if you want the arty names to be colorized as well in these messages, you should make sure they have the same format as player names (that is, something like "player_name (vehicle)" instead of "vehicle (player_name)").

Link to comment
Short link
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

The flag feature is awesome, I love it. I can now easily dismiss certain comments based on their nationality alone. :D

 

I find the messages a bit too long as they include firstly the name that can be over 12 characters, then the clan name which can be even 7 characters I think and then the vehicle name which is also often quite long. And if you ask support fire, it then also shows all the same info for the target too. The message then goes on two lines and becomes messy.

 

I was wondering if you could implement the config so that there would be this "format" field into which I could format how the nick should be displayed and whether there should be the vehicle name or not. Like this:

"authorformat": "<font color='{{c:r}}>{{name%.10s~..}}</font><font color='{{vtype}}'>{{vehicle}}</font>",
"targetformat": "<font color='{{c:r}}>{{name%.7s~..}}</font><font color='{{vtype}}'>{{vehicle}}</font>",

I looked into the python code but aren't at all familiar with how to modify or create those. Is there some documentation what I can do with xvm?

Link to comment
Short link
Share on other sites

Where is this error coming from?

2017-03-09 01:22:47.616: WARNING: [WARNING] (res_mods/configs/xvm/py_macro\mod_chat_color.py, 130): Cannot find VID for player with name "<michal_1986"

I can post full log if needed.

Link to comment
Short link
Share on other sites

@HekePrkl: that's a good suggestion, but I need time to add it.

 

@Aslain: I guess this comes from other mods that either use the chat to print custom messages or modify chat messages (like this addon does). I could tell more with a replay, but unless this addon does not work as expected, this should be a harmless warning which do not appear in latest version (unless you change the default logging level).

Link to comment
Short link
Share on other sites

  • 1 month later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...