Page 1 of 1

[CSM] Colored names in chat [colored_names]

PostPosted: Fri Apr 13, 2018 16:02
by Krock

Colored Names


This post is more or less a converted copy of the README.md file.

Description
Image
This client mod colorizes the nicknames in-game, so communicating gets easier, even when many people are chatting with each other. On some servers with special chatting mods it may not detect the messages correctly or conflict with their formatting.

Installation
0. Close all Minetest processes
1. Join the Minetest directory which contains the directories mods, games, ...
2. (Create and) open the directory clientmods in this location
3. git clone https://github.com/SmallJoker/colored_names.git
5. (Create and) open the file mods.conf in clientmods
6. Add or update the line load_mod_colored_names = true
8. Start Minetest

Tested on: 0.4.17-dev (Dec 2017), 0.5.0-dev (fresh baked)
License: MIT
Links: GitHub Source (.git), Nasty *.zip

Re: [CSM] Colored names in chat [colored_names]

PostPosted: Fri Apr 13, 2018 16:02
by rubenwardy
Nice!

This really should be an engine feature though

Re: [CSM] Colored names in chat [colored_names]

PostPosted: Wed May 02, 2018 17:45
by Enrikoo
Krock: If I get damage I get some errors with the client. Could you find the bug?

If you find it then fix it please.

Re: [CSM] Colored names in chat [colored_names]

PostPosted: Thu May 03, 2018 16:03
by Krock
Enrikoo wrote:If I get damage I get some errors with the client.

If you see errors: they're either logged in your debug.txt file or at least in the terminal/console window when you start Minetest from there. As I cannot reproduce this error, please provide that information so I know where I can begin to search for a solution.

Re: [CSM] Colored names in chat [colored_names]

PostPosted: Thu May 03, 2018 16:34
by Enrikoo
I got this error
Code: Select all
2018-05-03 18:31:51: ERROR[Main]: ModError: Runtime error from mod '' in callback on_damage_taken(): ....17-3d0617c-win64\bin\..\builtin\client\chatcommands.lua:64: attempt to concatenate local 'param' (a nil value)
2018-05-03 18:31:51: ERROR[Main]: Siehe debug.txt für Details.

Re: [CSM] Colored names in chat [colored_names]

PostPosted: Thu May 03, 2018 17:19
by Krock
@Enrikoo: That bug is outside of this mods scope. Neither there's a "on_damage_taken" callback registered nor a call for "minetest.run_server_chatcommand". Search for the occurrence of "register_on_damage_taken" in your clientmods directory to find the bad mod which you should either update, disable or fix manually.
If this doesn't help, close all instances of Minetest and disable all client mods but colored_names. If you still get an error message, update or reinstall Minetest and check again. If the probelm persists, then post the error message here.

Re: [CSM] Colored names in chat [colored_names]

PostPosted: Thu May 03, 2018 18:39
by Enrikoo
Krock wrote:@Enrikoo: That bug is outside of this mods scope. Neither there's a "on_damage_taken" callback registered nor a call for "minetest.run_server_chatcommand". Search for the occurrence of "register_on_damage_taken" in your clientmods directory to find the bad mod which you should either update, disable or fix manually.
If this doesn't help, close all instances of Minetest and disable all client mods but colored_names. If you still get an error message, update or reinstall Minetest and check again. If the probelm persists, then post the error message here.

Ok I disabled all my csms and just have coloured_names enabled. With that I don't get errors. There's a csm issue.