Vice City: Multiplayer

VC:MP Discussion => Bugs and Crashes => Support => Closed Bug Reports => Topic started by: Xmair on Jun 13, 2018, 01:02 PM

Title: [Bug] Colour changing
Post by: Xmair on Jun 13, 2018, 01:02 PM
Description
Whenever you use hex codes in ClientMessages, the last line is always white.

Reproducible
Always

What you were doing when the bug happened
ClientMessage( "This server was scripted by [#FFFFFF]Xmair[$FF]. A huge thanks to [#FFFFFF]Joker[$FF], [#FFFFFF]UncleMeme[$FF], [#FFFFFF]Zihad[$FF], [#FFFFFF]ShadowWarrior[$FF], [#FFFFFF]Gorcee[$FF] and [#FFFFFF]Xobert[$FF] for contributing throughout the beta version.", player, 176, 176, 176 );

What you think caused the bug
No idea.
Title: Re: [Bug] Colour changing
Post by: rww on Jun 13, 2018, 02:27 PM
Here is grey?

[spoiler]
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs2.ifotos.pl%2Fimg%2F2018-06-1_qehasrq.png&hash=187294b6f1ede30e21fe1db510ea544e905a9300)

and after change the hex for a test

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs5.ifotos.pl%2Fimg%2F2018-06-1_qehasxp.png&hash=967ae0e096825df91d50471698dc12d0764fe949)
[/spoiler]
Title: Re: [Bug] Colour changing
Post by: Xmair on Jun 13, 2018, 03:57 PM
Quote from: rww on Jun 13, 2018, 02:27 PMHere is grey?

[spoiler]
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs2.ifotos.pl%2Fimg%2F2018-06-1_qehasrq.png&hash=187294b6f1ede30e21fe1db510ea544e905a9300)

and after change the hex for a test

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs5.ifotos.pl%2Fimg%2F2018-06-1_qehasxp.png&hash=967ae0e096825df91d50471698dc12d0764fe949)
[/spoiler]
Then it's strange that it's only happening to me.

Quote from: vitogta on Jun 13, 2018, 03:46 PMhmm. I've tested to type in chat
d [#FFFFFF]Xobert[$AA] for contributing
and that string was clipped after [$AA] starts
what those codes means? any documentation?
[$FF] = forces the default colour.
For example:
ClientMessageToAll("[#FF0000]h[$FF]i", 255, 255, 255 );Here 255, 255, 255 ([#FFFFFF]) becomes the default colour and it'll print hi
Title: Re: [Bug] Colour changing
Post by: Stormeus on Jun 13, 2018, 04:44 PM
Additionally, [$80] will disable color tags for any text after that.

There are no other [$] tags and using them may cause behavior like the string being clipped.

@Xmair do you have a screenshot of the behavior you're seeing?
Title: Re: [Bug] Colour changing
Post by: Xmair on Jun 14, 2018, 10:48 AM
Quote from: Stormeus on Jun 13, 2018, 04:44 PMAdditionally, [$80] will disable color tags for any text after that.

There are no other [$] tags and using them may cause behavior like the string being clipped.

@Xmair do you have a screenshot of the behavior you're seeing?
(https://i.imgur.com/CSym5QM.png)
Title: Re: [Bug] Colour changing
Post by: Xmair on Jun 16, 2018, 01:46 AM
Sooooo @Stormeus, could you fix it in the upcoming update?
Title: Re: [Bug] Colour changing
Post by: Stormeus on Jun 16, 2018, 02:47 AM
Quote from: Xmair on Jun 16, 2018, 01:46 AMSooooo @Stormeus, could you fix it in the upcoming update?

Yep, track this issue at https://bugs.vc-mp.org/browse/VCMP-150