[WIP] PA Community Hub

Discussion in 'Work-In-Progress Mods' started by Raevn, August 25, 2014.

  1. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Progress report incoming!

    So I've thrown together a bit of a prototype to play with node-irc and the knockout.js API. What I have is an Atom app that can connect to a set of channels.

    Here is the full report:

    Current features:
    - magic status tab (like webchat one)
    - automatically creates tabs for joined channels and private messages
    - can connect to a set of channels
    - receives and handles most messages
    - shows an 'unread' line like in the webchat

    Things which I will do soon™:
    - allow the client to send messages (lol)
    - create more templates for different message types
    - user list
    - colorise all the nicks
    - have an online/offline token for each nick

    Things I want feedback on:
    - the look of it (although that can be touched up a bit later)
    - what kind of end-goal features are we considering for this client?
    - I've been thinking that there would be a few things like having our irc names be our PA display names for instance

    If you want to try it out yourself:

    Attached Files:

  2. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    That's excellent :)! I'll send through some templates hopefully today that you can use to turn it into a PA Hub plugin.
  3. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Wooh! Thank you senpai! :oops:
  4. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Update - 30/11/2014
    This update bring login functionality to the PA Hub, as well as an "About" section (accessed via the "?" icon in the header). Additionally, a new plugin is now available - the Game plugin, which currrently has a "Ladder" tab to see the PA 1v1 ladder. More functionality under this plugin is planned in the future, such as joining the matchmaking queue and seeing the lobby.

    PA Hub (v0.3.0)
    PA Hub will automatically detect a new version is available and update itself.
    • “Launch PA” button renamed “Play”
    • Section tabs in the header can now have text labels
    • Added Account section
    • Added About section
    • Added ability to log in with Uber ID/PlayFab account
    • “Play” button automatically logs user in if PA Hub is logged in
    • Removed excessive logging that was causing perf issues in some cases
    • Updated Play icon
    • API: Added login, logout, getUser, getSessionTicket, getSection
    Before Login:
    upload_2014-11-30_15-41-44.png
    After Login:
    upload_2014-11-30_15-42-19.png

    Game Plugin (v0.1.0)
    Install via the Content Hub
    • Displays the PA 1v1 Ladder
      upload_2014-11-30_15-41-15.png
    Fr33Lancer, cola_colin and dom314 like this.
  5. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Next Up:
    • Tutorial on creating a PA Hub Plugin (@dom314)
    • Windows Installer
    • Bug fixes
    Fr33Lancer and proeleert like this.
  6. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    If you want, I can start working on making a plugin version. I have been browsing your source code on github and it doesn't seem too complicated from your examples :p.
    Raevn likes this.
  7. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    By all means :). Assume that it will take the place of the current chat tab; so you'll need to add the community plugin as a dependency. Feel free to ask questions.

    I've started writing up the tutorial here: [GUIDE] Creating a PA Hub Plugin
    dom314 likes this.
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I think *really* cool features would include:
    - show list of games available to join
    - allow to join games (starts the game and joins automatically)
    - allow to create games (starts the game and creates lobby automatically)
    - click search ranked. Not sure what would be best: Should it search within PA hub and only start the game once a game has been found and accepted (to then join the game lobby of that game). Or should it just have a button to open PA and start the search there? For people with PA in windowed mode that would be enough, but for people with single screen the first option might prove to be better. Though a "little" harder to implement as well.

    All these points probably could kinda work like my external UI mod: Embed the game UI files, but apply a few modifications to fake the coherent environment and hook into "start/join" game calls.

    anyway great work.
    Raevn likes this.
  9. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Update!

    [​IMG]

    It's now a plugin!
    New features: you can send messages!

    Issues: there is supposed to be another tab at the top called "#irc", but it only shows up after I click on the community section button on the left.
    Raevn likes this.
  10. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Here's the current roadmap. I'm hoping to get all this done by the end of the weekend:
    • Finish the Map Store plugin, allowing users to download maps for the System Sharing Mod
    • Fix a couple of major bugs/issues (from a usability perspective) & incorporate some code changes submitted by @dom314
    • Create a Windows Installer for PA Hub
    Once this is done, and there are no other major bugs outstanding, I'll "launch" PA Hub (which basically amounts to making a post about it in General Discussion, and move this to REL :p). If the chat plugin is nearing completion at this time though, I'll delay until that is ready.
    Fr33Lancer and cwarner7264 like this.
  11. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Well, in that case. Two bugs I found. :)

    What's up with the CBC Radio icon?
    pahubbug1.png

    And in sorting by name, you regard small letters and capitals to be different.
  12. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Lulwut o_O ?? Delete the "cache" folder and see if it happens again.
  13. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Yeah, that was my reaction too. I figured it was a place holder icon. :)

    I deleted the cache and started PA Hub again, but it's still CBC. It even recreated that CBC icon in the repopulated cache folder. I did a grep for CBC on both the pahub and mods folder, but found no references. I'm not sure where it's getting it from (yet).
  14. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Those two content items are dynamically made in content/plugin/com.pahub.content.plugin.store.plugin/com.pahub.content.plugin.store.plugin.js. No icon is defined for these, so when addContentItem is called (in content/plugin/com.pahub.content.plugin.contenthub/com.pahub.content.plugin.contenthub-content.js), it should use the default ("assets/img/content.png").
  15. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    I am currently in the middle of a bit of a re-write, but it should resurface with more features! I think I would be ready to make a github repo in about 2-3 days.
    Raevn likes this.
  16. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Question: are you "DomDomDomDomDom" from twitch and "Dom" in PA? o_O
    mishtakashi likes this.
  17. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Yes, yes he is.
  18. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Hmm, I'm still not sure where it got it from, so I tried deleting pahub entirely and just reinstalled it. It has the correct icon now. Weird, but fixed. It was probably something weird I did. :)

    Sorting still differentiates between small and capital letters though. :)
    Raevn likes this.
  19. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Nope, I am actually "DomDomDomDomDomDom" from twitch. ;)
    squishypon3, Raevn and mishtakashi like this.
  20. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Finished the Map Store Plugin :)
    upload_2014-12-4_23-25-9.png upload_2014-12-4_23-25-55.png upload_2014-12-4_23-39-22.png

    Unfortunately it's not available yet, as I first need to push some other updates that it depends on.

    Other work:
    • Sorting is now case in-sensitive, and groups all symbols together.
    • Fixed bug where the content icons wouldn't flow right if group by sort was off (thanks @tHeTrOpHySyStEm )
    Fr33Lancer likes this.

Share This Page