Progress report! Me talking to myself, showing colorised nicks: Same as before but with the online user list shown: 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)
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
@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.
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.
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
@raevn, here is the github repo: https://github.com/domdom/com.pahub.content.plugin.irc You will need to install the node-irc module for this plugin to work. I could not find a nice way to do a relative "require" since the script is loaded dynamically. node-irc: https://github.com/martynsmith/node-irc/tree/0.3.x
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'));
I added the folder argument after I had the exact same issue trying to display an image in stored in a plugin's directory.
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 .
@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: (there is no #IRC tab) But then if I select another section: 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?
Yep, definitely should have been a computed function, but every time I try to make it one it doesn't work . I've updated the addTab function to fix the issue in the meantime.
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.
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 . All working now.
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
Update - 07/12/2014 Map store plugin released! 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: Clicking on a map will show the relevant information. If no description is present, then the planet names are listed. 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!