[REL] PA Chat

Discussion in 'Released Mods' started by cola_colin, January 29, 2015.

  1. cwarner7264

    cwarner7264 Planetary Moderator

    Messages:
    4,487
    Likes Received:
    5,420
    Yeah squishy, for palobby.com ping @mikeyh :)
    squishypon3 likes this.
  2. squishypon3

    squishypon3 Post Master General

    Messages:
    7,993
    Likes Received:
    4,357
    @mikeyh

    It seeks PA lobby runs.. sort of on the default android browser, though it's really jumbled, and even more so on android Google chrome.

    @cola_colin thanks for the heads up, I just assumed the lobby would have fixed the whole issue with way too much bandwidth. Though I do have a 10 gig plan, not sure how long that'd last. If it were possible to throw away everything but the sign in and the global chat room, that'd be awesome. :)
  3. cwarner7264

    cwarner7264 Planetary Moderator

    Messages:
    4,487
    Likes Received:
    5,420
    Standalone Android app for PA chat - @cola_colin pls

    (I'm joking, I'm fully aware of how much time something like that would require)
    stuart98 likes this.
  4. mikeyh

    mikeyh Post Master General

    Messages:
    1,629
    Likes Received:
    1,366
    Even with max compression the https://palobby.com/ server browser still uses around 0.6MB to 5MB per minute depending on how many games are in the feed. eg right now it's around 1.5MB per minute or 0.2 Mbit/sec

    I'll make chat available on a separate page when I have time.
    squishypon3 likes this.
  5. elodea

    elodea Post Master General

    Messages:
    1,609
    Likes Received:
    3,004
    small thing i noticed, dont know if worth fixing.

    if you change your name, the chat history doesn't show your messages in white.
  6. cola_colin

    cola_colin Planetary Moderator

    Messages:
    11,949
    Likes Received:
    16,030
    known, won't fix

    EDIT: actually... let's not say never
    Last edited: February 4, 2015
  7. cola_colin

    cola_colin Planetary Moderator

    Messages:
    11,949
    Likes Received:
    16,030
    updated PA Chat. Changelog, also available in the main post:


    Thanks to @Sekuraz for his work on the admin features!

    - lots of new admin functions. Check /help on how to moderate channels. Channel owners are orange, channel admins are blue. owners > admins ;)
    - kick, mute and unmute are also available via the right click context menu
    - muted users are shown dark grey and cannot write anything in a given channel.
    - the ranked badge should now be much more reliable
    - messages that mention your name case insensitive have a red background
    - if you get a message mentioning your name while the chatwindow is minimized it will turn red instead of just green
    - tab autocomplete of names improved: now is case insensitive and can match with inner parts oof the string. So writing usern<tab> will autocomplete to [CLAN]UserName
    - show the number of people currently in the channel next to the channelname
    - you can now resize chats by dragging the right or left border
    - /alignleft and /alignright change the alignment of the chatwindow
    - stole the css improvements from palobby.com for your own name and the display of the time
    - autoscroll fix @masterdigital @jorgenpt in common.js there is a knockout handler for "autoscroll". It is rather hacky and fails on unusually large lines, so basically whenever somebody writes more than a 2 line long chattext. This happens not only in global chats, but also in private messages. This version of the handler fixes that issue and works without making guesses:
    Code:
        /**
        * scrolls to the bottom if the scrollable view was at the bottom before the value changed
        */
        ko.bindingHandlers.autoscroll = {
                init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
                    // right before the value changes, check if the parent of the element was scrolled to the bottom
                    var wasAtBottom = false;
                    valueAccessor().subscribe(function() {
                        if (!element || !element.parentNode)
                            return;
                        var p = element.parentNode;
                        wasAtBottom = p.scrollHeight - p.scrollTop === p.clientHeight;
                    }, null, "beforeChange");
                   
                    // right after the value changed, if the parent of the element was scrolled to the bottom, scroll it to the bottom again
                    valueAccessor().subscribe(function (value) {
                        if (!element || !element.parentNode)
                            return;
                        if (wasAtBottom) {
                            element.scrollIntoView(true);
                        }
                    });
                }
            };
    
    - removed a bug that caused a massive message spam when using the chat invite function on users in a chatroom. This was also the cause of those chatwindows becoming uncloseable.
    - added command /tryfixfriends This will attempt to repopulate your friendlist from xmpp. Try to use this if your friendlist is suddenly empty. This is not a real fix to the problem, I don't know what the problem is. After using the command you may need to restart PA to see the full effects, not sure. It helped me at least...
    - removed cpu intense animations in the background of the main menu. No more cpu wasting just to stay in the main menu while chatting
    cptconundrum and mayhemster like this.
  8. cola_colin

    cola_colin Planetary Moderator

    Messages:
    11,949
    Likes Received:
    16,030
    Also now that admins can do their work even in the ingame chat I am looking for a few more of them. Especially from the AUS and US timezones. Anyone feels like it?
  9. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,134
    Likes Received:
    2,010
    So why is this not on PAMM already? Are you really going to make me pull the GitHub repository every time there is an update? :)
  10. cola_colin

    cola_colin Planetary Moderator

    Messages:
    11,949
    Likes Received:
    16,030
    Distribution so far happens via PA Stats. And since I am lazy there is no other version.
  11. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,134
    Likes Received:
    2,010
    Ah, that explains why so many people seem to have it.

    (Bundling, eh? Didn't Microsoft get sued for that a long while ago? ;))
  12. cola_colin

    cola_colin Planetary Moderator

    Messages:
    11,949
    Likes Received:
    16,030
    Yeah all the other developers of global chats will totally sue me.
  13. squishypon3

    squishypon3 Post Master General

    Messages:
    7,993
    Likes Received:
    4,357
    I'd be up for it, especially once (if ever) it works on mobile.
  14. cola_colin

    cola_colin Planetary Moderator

    Messages:
    11,949
    Likes Received:
    16,030
    I won't put in any work for mobile devices, I am making a PA UI mod ;)
    Maybe palobby.com might support them. No idea how the support is right now.
  15. squishypon3

    squishypon3 Post Master General

    Messages:
    7,993
    Likes Received:
    4,357
    No no, the creator of PA lobby said he'd work on a chat only varient in the future.
  16. mikeyh

    mikeyh Post Master General

    Messages:
    1,629
    Likes Received:
    1,366
    Basic chat for Google Chrome without the server browser and it's bandwidth requirements: https://palobby.com/chat/

    Will add more functionality when I have time.
  17. Mogzai

    Mogzai New Member

    Messages:
    21
    Likes Received:
    14
    I'd be up for it if you'd consider me.
  18. Bsport

    Bsport Well-Known Member

    Messages:
    268
    Likes Received:
    415
    Just see this post in the big game thats coming up, and i have a question instead of derailing that thread i brought it here, when in pachat does it tag a player if they are in PTE?
  19. cola_colin

    cola_colin Planetary Moderator

    Messages:
    11,949
    Likes Received:
    16,030
    no that is not considerd at all. I guess some kind of tooltip showing "online in stable/PTE/PALOBBY" would be cool for the future. But wont happen before friday.
    Bsport likes this.
  20. tomofleeds

    tomofleeds New Member

    Messages:
    21
    Likes Received:
    2
    Accidentally closed the chat, how do I get it back? Seen the join chatroom bit but wasn't sure exactly what to type.

Share This Page