Results 1 to 7 of 7

Thread: Grouping broadcastToAll messages when timed close to one another

  1. #1

    Unhappy Grouping broadcastToAll messages when timed close to one another

    It would be great if messages from broadcastToAll() would show up in order if they are sent in close timing to one another

    Here's my problem: I'm making a script for a mod that broadcasts messages to the player. I want to broadcast 2 messages (A and B, in that order) that come at nearly the same time. In chat, A would appear then B, as normal. But on the top of the screen, those message would appear in the reverse order, B then A, because every message gets pushed to the top.

    It would be great if new on-screen messages would appear below previous ones (keeping the order of appearance) if the top ones haven't started fading off yet. That way messages in chat and on-screen will keep that same order.

    I realize this is a pretty minor improvement, but would make scripting more consistent.

  2. #2
    Join Date
    Jan 2014
    Posts
    998
    The onscreen messages are in order of the newest message on top.

  3. #3
    Yes I know that ("because every message gets pushed to the top"). But I'm saying that if 2 messages appear back to back pretty quickly (specifically, if the 2nd message appears before the first has started fading) then it should appear below the previous message instead of above.

    The reason being that you then have a message appearing in one order onscreen, and in the reverse order in chat, which is problematic.

  4. #4
    I agree with this sentiment. It's quite confusing.

    To get around this issue you can include line breaks in your print.
    Code:
    function onLoad()
        broadcastToAll("Hello World!\nHow are you today?", {1,1,1})
    end

  5. #5
    Yea I figured that out and use it, but it shrinks the onscreen text a bit. It's fine with 2 lines, but with 3 the text is really quite smaller

  6. #6
    I try using the line break an it puts the /n in there anyway

  7. #7
    @maximo
    I dunno if this actually works in this case, but the newline character is '\n', ([backslash n], not [slash n]).

Similar Threads

  1. Replies: 8
    Last Post: 05-21-2017, 05:07 AM
  2. Don't automatically close the color tint window
    By Unreal_Ed in forum Suggestions
    Replies: 2
    Last Post: 02-28-2017, 04:08 PM
  3. [SUPPORT] Error Messages
    By rgeer in forum Technical Support
    Replies: 0
    Last Post: 01-17-2017, 08:01 PM
  4. [SOLVED] Steam Session Ticket Timed Out
    By AndrewD2 in forum Technical Support
    Replies: 1
    Last Post: 08-12-2016, 04:03 PM
  5. [SOLVED] The game crashes every time im triing to close it.
    By Sagitor in forum Technical Support
    Replies: 1
    Last Post: 10-05-2015, 01:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •