ID:2008293
 
Resolved
Icons in output controls often did not appear in the correct position.
BYOND Version:509
Operating System:Windows 8 64-bit
Web Browser:Firefox 43.0
Applies to:Dream Seeker
Status: Resolved (510.1320)

This issue has been resolved.
Descriptive Problem Summary:
http://www.byond.com/forum/?post=2006924
As explained there, I was requested to post this here.

When an image is displayed in a single output following a line break the image will appear prior to the linebreak and erase the last character in the previous line.


Numbered Steps to Reproduce Problem:

Insert html in to output.
See results.

Code Snippet (if applicable) to Reproduce Problem:

Here's a demo showing the issue. Launch it and hit the button. Pop something like...
HELLO(br)(img src="____")
as the output and see the results.

http://www.duelmonstersgenesis.com/BrokeChat.zip
http://www.duelmonstersgenesis.com/BrokeChatv2.zip

Expected Results:
Expect the image to appear in the correct location according to the html of the output.


Actual Results:
see above.

Does the problem occur:

Every time? Or how often?
Every time there's an output with a linebreak and an image afterwards.

In other games?
It happened in my personal game and in this demo i put together.

In other user accounts?
Every user on my game with the most recent version of byond experiences this issue.

On other computers?
Only have 1 computer to test on personally but other players have the same issue.

When does the problem NOT occur?
There's no way to sidestep this issue.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I can confirm this wasn't happening in 509.1313. It was brought to my attention as of 509.1318.

Workarounds:
none/dont use html
It also has a habbit of starting to have that image a bit to early. https://gyazo.com/7219e6dfbaf57c79aefd700e88da6d55

It only seems to happen for me when the image is not at the very beginning.
This bug still exists in 509.1319
Sorry this fell through the cracks; I didn't get it onto my list as planned.

I'm looking into it now, but your demo appears to be incomplete. There's nothing in it about images, only the <center> tag. If there's a bug with images I need to see a demo that uses them.
I can do a new one. If you put html in to the input though the image will display showing the mistake.
There's no image to put there, though. Something that simply displays the image problem is what I need.
That did the trick. I found the issue and it'll be fixed in the next release.
Woo. I love you. My playerbase will also thank you when they can make sense of the game outputs again.
There is a workaround, but probably not worth your time to implement. The behavior you're seeing happens because of a change made to outputs where they group write operations together, avoiding a lot of costly calls to the API. If you split up outputs and start with the image rather than ending, I believe it would work around the issue. Specifically I mean instead of "<center><img ...>" you could output "<center>\..." then "<img ...>".

The bug was caused by the fact that the image has to have a placeholder, and the placeholder was in the wrong spot because of pending text.
Yeah, I appreciate the thought but I have probably over a hundred different outputs that it's affecting. Would be a big pain in the ass at this point to go back through all of them and change them.

The game isn't unplayable at this point so it's not a big deal. Just looks a little ugly right now.
Lummox JR resolved issue with message:
Icons in output controls often did not appear in the correct position.