ID:2537650
 
Resolved
Clearing the output control could cause problems with subsequent output.
BYOND Version:513.1506
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Chrome 79.0.3945.117
Applies to:Dream Seeker
Status: Resolved (513.1509)

This issue has been resolved.
Descriptive Problem Summary:
After clearing the output, future messages without font color set will not respect the set color of the output set on the skin, outputting black messages (the default I assume). Outputting a new message with a color set fixes future messages without the color tag (if the color set is not the same as the foreground set in the skin).

Numbered Steps to Reproduce Problem:
1 - Set the color of the output messages (on skin) to something different than the default
2 - Send a message without color tags to show the color set is working
3 - Clear the output
4 - Send a new message without color tags. It'll be black

Code Snippet (if applicable) to Reproduce Problem:
src<<output("bla 1","output")//color you set (correct)
src<<output(null,"output")//clear the output
src<<output("bla 2","output")//color will be black (incorrect)


Expected Results:
The message is outputted in the color you set on skin

Actual Results:
Message is outputted in black

Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur? Never

Workarounds:
Setting a color for the message
Maybe you need to set the css? Seems like it shouldn't clear any properties of the element tho.
In response to Kozuma3
That'd likely solve it but the bug's still present xD
New strange but relevant info:
After clearing the output, and having a color set on skin as foreground:

Sending a new message with the same color as the color set on skin as foreground, doesn't change the color of the message from black nor fixes the problem for future messages. I use white as foreground for this example:
src<<output("<font color=white>doesn't work","output")
src<<output("<font color=#FFFFFF>doesn't work either","output")
src<<output("new messages stay in black too","output")

Sending a message with a different font color, change's the color and fixes the problem for new messages
src<<output("<font color=green>changes the color","output")
src<<output("New messages aren't black anymore","output")
This issue requires a test case.
In response to Lummox JR
outputbug testcase https://www.sendspace.com/file/10tv3h (Didn't really need one, as you can see)
In response to NSBR
It did, because the skin is also a component to this report. It can't be reproduced with a code snippet alone.
In response to Lummox JR
What I mean is that creating an output element takes 3s and there is no secret or special formula to it. But okey.
In response to NSBR
Creating it in the same way you did is the key. If I have to go setting up all the missing pieces of the environment myself, the chances of getting something wrong and not having the same environment you do are high, which means we're no longer on the same page or looking at the same thing.

The only time a test project is not relevant is when you can reproduce the issue entirely with a code snippet.
Lummox JR resolved issue with message:
Clearing the output control could cause problems with subsequent output.

Login to reply.