View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-31-2021 , 01:16   Re: Using two team colors in one message is not allowed
Reply With Quote #13

okey okey okey...

One.
Game is CS:GO, it have limited colors.
Keep in mind, it also have player console variable cl_language hidden. Would be always english.

Two.
Quickdefuse https://github.com/Nerus87/QuickDefuse
It use CPrintToChatAll

...with Multicolor https://github.com/Bara/Multi-Colors
this function ignore Server Language, function try to translate phrase by each player language. What is always english, in csgo. https://github.com/Bara/Multi-Colors...olors.inc#L169

Which mean Quickdefuse base translation file, english https://github.com/Nerus87/QuickDefu...se.phrases.txt

Three.
Error code line 182
Code:
CPrintToChatAll("%t", "sm_qd_panel_defuse_incorrected", param1, wirecolours[param2-1], color, wirecolours[selectedWire-1], color2);
If we look this translation phrase from file https://github.com/Nerus87/QuickDefu...hrases.txt#L16
You see color tags, there are {blue} and {red}, which are both team colors.
Code:
"en"			"{blue}{1}{default} {red}detonated{default} the C4 with an incorrect wire choice of {{2}}{3}{default} (3:4 odds).\nThe correct wire was {{4}}{5}{default}."

Quick fixes, but not perfect.
In base translation file, replace tags {blue} and {red} to
{darkblue} and {darkred}. But there can still come wire colors which are team colors.


Or replace ...translations/quickdefuse.phrases.txt
with your version, just remember change "ro" to "en".
Make sure you not have another one in ro folder.
Bacardi is offline