[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!

    Me talking to myself, showing colorised nicks:
    [​IMG]
    Same as before but with the online user list shown:
    [​IMG]

    Current new features:
    • All names are colorised
    • Toggle-able online user list
    • Reports joins, parts, kicks, and quits
    • Reports nick changes
    Things which still need to be done:
    • Reporting kills
    • Deal with the ctcp messages
    • Handle the invite command
    • Colors are random right now, choose a better scheme for uniqueness
    Advanced features:
    • Parse the input field for irc commands
    • Tab autocompletion for nicks and channels
    • Storing previous sent items (so you can up arrow to them)
    Last edited: December 4, 2014
  2. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    REQ - (or maybe I'm stupid and missed something) Keep me logged in button

    EDIT: Also, should the game plugin only show the top 10? And if possible a searchable ladder would be awesome
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    @dom314 that is looking amazing.

    It's on the todo list - check this post for (an incomplete) list of things I need/want to do yet. Crossed out items are implemented locally, but not released yet.

    That's a limitation of the data that Uber provides - the call to get the ladder information for each tier only returns the top 10. Searchable may be possible, as I think I can get specific data on a person.
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    What is the point of doing a search if you only see the top 10 anyway xD
  5. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    I mean an all-player search. I think you can get the rank of an arbitrary player.
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    really?
  7. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    A guess, but it's able to retrieve your own ranking; I surmise that it should be possible to use whatever call it's doing to get that, for any player.
  8. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    [​IMG]
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Afaik the call it uses is something like "getMyRank" and it accepts a session id as parameter. So you can get the rank for a session id. Good luck getting session id's :eek:
  10. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Raevn likes this.
  11. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    You can use the folder parameter that is passed into the load function to get the location of the plugin directory, eg, if you have node-irc in the following folder: content/plugin/com.pahub.content.plugin.irc/node_modules/irc
    Then this will load it (within load_plugin_irc):
    Code:
    irc = require(path.join(folder, 'node_modules', 'irc'));
    dom314 likes this.
  12. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Derp! I'll update the github repo.
  13. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    ;) I added the folder argument after I had the exact same issue trying to display an image in stored in a plugin's directory.
    dom314 likes this.
  14. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Thing is though, I saw you using it in your code, and I even used it to load my html view. And then I totally forgot about it :rolleyes:.
    Raevn likes this.
  15. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    @raevn , found a bug I think.
    When my plugin loads, it's tab is automatically selected? I am not sure if that is intended behaviour. Anyway, here is the bug.
    Right after load:
    [​IMG]
    (there is no #IRC tab)
    But then if I select another section:[​IMG]
    The #IRC tab then shows up.

    Having a look at your code it seems it's because the observable array for the current tabs is only updated on section change. I think it could be fixed by making it a pureComputed?
    Last edited: December 5, 2014
  16. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Yep, definitely should have been a computed function, but every time I try to make it one it doesn't work :confused:. I've updated the addTab function to fix the issue in the meantime.
  17. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    I had similar issues with my code too, though I managed to fix it by eliminating all the short circuit evaluation in the ko.computed function. Turns out an early return makes ko recognise a different set of dependants. o_O
    Last edited: December 6, 2014
  18. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Pulled my hair out all morning. Then found there was an update to ko deferred to fix a bug that caused the issue I was having :mad:. All working now.
    Last edited: December 6, 2014
  19. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Update - 06/12/2014
    Mostly bugfixes and prerequisite functionality for the Map Store.

    PA Hub (v0.4.0)
    PA Hub will automatically detect a new version is available and update itself.
    • Change: Update ko deferred from 3.2.0 to 3.2.1
    • Change: Reduced qty of log messages which were impacting performance
    • Change: Added unsetConstant function
    • Change: Streams now include their name as a property
    • Bugfix: Tab list now updates correctly if tab is added to the currently active section.
    • Bugfix: Layout incorrect when no installation of PA detected

    Content Hub Plugin (v0.5.0)
    Install via the Content Hub
    • Change: Sorting by text now groups symbols together
    • Change: Changed some log messages from info to verb
    • Change: custom_install_content_func is now called even in the absence of an online content URL.
    • Change: Download list now hides GET calls.
    • Bugfix: Fixed removeContentItem to only need to match content_id, rather than be completely identical
    • Bugfix: Spotlight stats tab now shows correct stream versions
    • Bugfix: Corrected layout when group by sort is disabled
    • Bugfix: Prevented overflow of content name from content tile
    • Bugfix: Sorting by name and author now ignores case
    cola_colin and Fr33Lancer like this.
  20. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Update - 07/12/2014
    Map store plugin released!

    upload_2014-12-6_23-38-11.png
    • The Find Content tab will show maps available from all current map servers
    • Installing a map will include it in an "Offline Systems" map pack in-game, if the System Sharing mod is enabled.
    • Content tiles depict the number of planets in the map:
      upload_2014-12-6_23-32-27.png
    • Clicking on a map will show the relevant information. If no description is present, then the planet names are listed.
      upload_2014-12-6_23-44-44.png
    • Two additional sort methods are available: Sort by Planets and sort by Server. All non-map content will be listed under "Not applicable"
    Grab it from the Content Store!
    dom314 and Fr33Lancer like this.

Share This Page