Forums » Bugs

Hex Color codes no longer work

Jul 01, 2019 Nick_9137 link
Not sure if this is intentional, but it seems like Hex Color codes have stopped working, and now displays the color code infront of the test instead, for example: 32faaaUser has entered the sector

Intel Core i3-7100
4GB RAM
64-bit OS
Windows 10
Intel Intergrated graphics
Jul 01, 2019 raybondo link
Is this from a plugin? We recently changed the name of the rgbtohex() function, thinking no plugins used it. We'll have to change it back.
Jul 01, 2019 starblazzz link
local function colorr()
local mat = math.random(1, 255)
local mat2 = math.random(1, 255)
local mat3 = math.random(1, 255)
local funnycolor = ""..rgbtohex(mat.." "..mat2.." "..mat3)
return funnycolor
end

I use this and like nick said the code prints in front of the msg and no color change
Jul 01, 2019 raybondo link
We had renamed rgbtohex to rgbtohexcolor and made rgbtohex return the raw hex without the \127 code.
Jul 04, 2019 Uldfert link
There are a number of plugins that use rgbtohex. Just a few: Catalog, RadarColor, Show Players In Sector, Trade Assistant, MAID.
Jul 09, 2019 urshurak link
Trade Assistant has become non-functional since 1.8.489 and it still doesn't work