MantisBT - Zandronum
View Issue Details
0000079Zandronum[All Projects] Bugpublic2010-10-04 10:242018-09-30 20:11
unknownna 
Torr Samaho 
lowminorN/A
closedfixed 
MicrosoftWindowsXP/Vista/7
98c 
1.0 
0000079: automatically ignore the last colored character in the name of the activator of a 'Print/'PrintBold' script
Script 1 (void)
{
PrintBold(n:0, s:" activated this script for testing purposes.");
}

If the activator of a 'Print'/'PrintBold' script has a colored name, the latter part of the message, i.e. " activated this script for testing purposes.", will be displayed in the same color as the one of the last character in the said activator's name.

However, you can add a '\c-' before the message in the string to clear the color.

Script 2 (void)
{
PrintBold(n:0, s:" \c-activated this script for testing purposes.");
}

If the 'Print'/'PrintBold' ACS functions automatically ignored colored player names, it would be more convenient for modders, as they wouldn't have to think about having to manually clear colors. When I say ignored, I mean unaffected by the last colored character.
No tags attached.
? printbold_color_test.wad (1,231) 2010-10-04 10:24
/tracker/file_download.php?file_id=22&type=bug
Issue History
2010-10-04 10:24unknownnaNew Issue
2010-10-04 10:24unknownnaFile Added: printbold_color_test.wad
2010-10-07 18:56unknownnaNote Added: 0000288
2010-10-10 19:26Torr SamahoNote Added: 0000330
2010-10-10 19:26Torr SamahoStatusnew => feedback
2010-10-11 01:47unknownnaNote Added: 0000333
2010-10-11 01:47unknownnaStatusfeedback => new
2010-10-11 06:30Torr SamahoNote Added: 0000337
2010-10-11 06:31Torr SamahoCategorySuggestion => Bugs
2011-01-24 12:23Torr SamahoNote Added: 0000865
2011-01-24 12:23Torr SamahoAssigned To => Torr Samaho
2011-01-24 12:23Torr SamahoStatusnew => feedback
2011-01-24 12:28Torr SamahoNote Edited: 0000865bug_revision_view_page.php?bugnote_id=865#r398
2011-01-24 19:37unknownnaNote Added: 0000866
2011-01-24 19:37unknownnaStatusfeedback => assigned
2011-01-25 01:19Torr SamahoNote Added: 0000869
2011-01-25 01:19Torr SamahoStatusassigned => feedback
2011-01-25 01:37unknownnaNote Added: 0000870
2011-01-25 01:37unknownnaStatusfeedback => assigned
2011-01-26 02:40Torr SamahoNote Added: 0000874
2011-01-26 02:41Torr SamahoStatusassigned => resolved
2011-01-26 02:41Torr SamahoFixed in Version => 1.0
2011-01-26 02:41Torr SamahoResolutionopen => fixed
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2018-09-30 20:11Blzut3Statusresolved => closed

Notes
(0000288)
unknownna   
2010-10-07 18:56   
It also behaves like this with cheat messages, and probably others as well.
(0000330)
Torr Samaho   
2010-10-10 19:26   
I think Skulltag should treat this exactly like ZDoom does. Are Skulltag and ZDoom identical in this regard?
(0000333)
unknownna   
2010-10-11 01:47   
AFAIK from testing, ZDoom doesn't support colored player names. It's not a feature there. That's why I reported it here. It seems to be specific to Skulltag. Fixing this would make things look cleaner in custom mods, e.g. "Zombie HORDE".

Imagine if obituaries were affected by colored names too.

But please correct me if I'm wrong about ZDoom not supporting colored names/color in messages. Perhaps there is a CVAR that I've overlooked.
(0000337)
Torr Samaho   
2010-10-11 06:30   
IIRC I never tried a colored name in ZDoom, so I never noticed that you can't use colored names there. In this case, I consider the issue to be a bug.
(0000865)
Torr Samaho   
2011-01-24 12:23   
(edited on: 2011-01-24 12:28)
As mentioned here, I started to work on this, but the current version seems to cause crashes.

Can you check if it still crashes in this binary? If so, it would be great if you find out how to reproduce the crashes.

(0000866)
unknownna   
2011-01-24 19:37   
It still crashes in that binary. But I think I figured out what's going on. I tried to manually set my player name in the clean .ini. It started to crash from there. With this name in particular, it crashes.

name=\cpunknown\csna
(0000869)
Torr Samaho   
2011-01-25 01:19   
Ok, I found something with this info. Hopefully, this will work better.
(0000870)
unknownna   
2011-01-25 01:37   
It doesn't crash anymore.
(0000874)
Torr Samaho   
2011-01-26 02:40   
Alright. I think we can consider this to be resolved then.