[Won't change] Part of save description gets colored with map name

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Part of save description gets colored with map name

Postby cubebert » Sun Mar 14, 2021 4:49 pm

I'm not sure if this has anything to do with this bug, so I made a seperate thread just in case, but if a map name is colored, the time recorded on a save file while on that map will be the same color as the map's string. For example, on The 12 Days of Doommas, the first map's name on the LANGUAGE file is:

Code: Select allExpand view
MAP_NAME1 = "\cgBloody Hell, It's Cold Out Here";

When you save the game and look at the save description, the time will be red just like the name's string. I have no idea if it can happen with setting the map's name through MAPINFO, but I''m fairly sure that this behavior isn't intended.

User avatar
cubebert
 
Joined: 14 Jun 2020
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: Part of save description gets colored with map name

Postby Graf Zahl » Sun Mar 14, 2021 5:09 pm

It is actually the inverse of that bug, the text formatter here does not reset colors after inserting a line break and the entire text in that window is a single string.
Colored map names were never considered to be valid.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Part of save description gets colored with map name

Postby Marisa Kirisame » Fri Mar 19, 2021 3:33 am

This is most likely a mod problem. Colored strings should always be terminated with a "\c-", it's good practice to prevent issues like these.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Part of save description gets colored with map name

Postby Graf Zahl » Fri Mar 19, 2021 5:43 am

Good point.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: sylandro and 1 guest