Jump to content

Madstats - Free Browser Extension For Stats Sorting


269 replies to this topic

#101 TFun90

    Member

  • PipPip
  • Littlest Helper
  • 48 posts

Posted 02 March 2015 - 05:55 PM

Hey, stumbled across this program, looks great! Minor suggestion, how about adding a column for mech class/weight?

#102 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 02 March 2015 - 06:51 PM

View PostCalico Lobster, on 02 March 2015 - 05:55 PM, said:

Hey, stumbled across this program, looks great! Minor suggestion, how about adding a column for mech class/weight?


Thanks! That's actually in the works currently. Probably around the same time as the first export features in a couple days.

#103 Bishop Steiner

    ForumWarrior

  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • The Hammer
  • The Hammer
  • 47,187 posts
  • Locationclimbing Mt Tryhard, one smoldering Meta-Mech corpse at a time

Posted 03 March 2015 - 06:24 AM

View PostMadLibrarian, on 07 November 2014 - 06:01 PM, said:

Updated: 3/2/2015
Allows statistics sorting, duplicate hiding, hero mech naming, hiding unowned mechs, filtering, tourney counting, challenge date reversal, and a sticky header. Recently added: filters and sticky header. Click help for filter info.

I also temporarily added a donate button to increase my chances of upgrading packs before the bonus ends. Donate if you like, but I still have features to add regardless, so don't worry.

Whats it do?
  • Adds filter inputs for filtering. Check the help button in top right subNav.
  • Allows for a sticky header to maintain readability when scrolling down.
  • Adds a menu to allow quick access to a new options menu, stats, and, updating.
  • Counts mercenary tourney games, and also reverse the order of past challenges.
  • Hero mech name and mech name displays on hover.
  • Toggle display of unowned mechs. Manual update button when it changes. (For now)
  • Hides duplicate (G)old and (I)nvasion Mechs.
  • Sortable Time columns, hover for original time value display.
  • Single click sorting, descending by default.
  • Added style via tablesorter's built in theme: Black Ice. ( Please give feedback. )
Auto Detect Browser




Chrome || Internet Explorer || FireFox

How to:
The default settings will add a twitter icon on the top right area so you'll know it's working. From there you can click the profile link in the top right to display a menu. You can enable or disable options, and update your owned mechs when they change. The filter button will toggle a row of text inputs that you can use to create custom filters. Click HELP in top menu for more info.

Regex is probably the fastest(and most accurate) way to search for whole strings within the first column. /cn9/ rather than ~cn9. < > and or to are probably the most useful for numeric columns. For ranges, make sure there's a space before and after the ' to '. (5 to 15) (5 - 15)

Feedback:
Are the content boxes layering properly? The profile menu should be on top of sticky table header, and options box should be over help box.
Is the search delay too quick? It's 300ms after first keypress in filter input, which usually gives you time for 3 letters if you're quick. Prefer a longer delay? 500ms worked decent in testing but it seemed a little sluggish to me.
Having any problems with filtering or the column data? Something not sorting?
Challenge mods and tourney page working okay? ( Besides the tourney page listing 0 out of -1 when there isn't an active tourney.
Any issues understanding the filters and it's functionality? Is it remembering your preference for display of filter bar properly?


Based on the tablesorter jQuery plugin and the Crossrider extension platform for easy cross browser extension support. It is basically just a userscript wrapped in an extension.

FAQ:
Spoiler


Known Bugs:
Spoiler


Plans:
Implement data exporting and time base tracking. The time periods might take a while to perfect, so expect some tests in the staging extension periodically. I'm also currently working on adding a weight and Clan column, but I haven't completed the data object yet. If you want to help add new mechs and keep it updated, you can edit the spreadsheet.

I'm also going to add the other static content (heroes) to a spreadsheet like this so I can eventually set up an automatic update based on the data customized by the community as necessary.

Developers:
Do what thou wilt with the code, but do consider sharing your changes if they might improve the experience for others. There might be other possibilities we can collaborate on, as well.

PGI web developers are welcome/invited to invalidate my efforts by adding the feature into the real stats site. I truly won't be sad. :)

woah...how'd I miss this? Fantastic man, thanks for putting this together!

#104 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 04 March 2015 - 01:49 PM

Anyone have opinions on the weight filters, table stretching, styles, donation button, output, or anything else in the staging extension?

I'm especially curious if the table stretching works well enough for high resolutions. It seems to work as intended for me, but there's some of you with crazy high resolutions, and it's max stretch might need scaled back (or configurable).

Included the Output button that downloads a csv file. Google Docs, and IDEs recognize the line endings, but notepad doesn't. I went with general settings by default, but will likely include more options later. (JSON will be included at minimum.) Will download currently filtered table, so it will show unowned mechs (if they are currently in the table), and be affected by filters. (click Reset to clear filters)

Still holding out on a full update so I can continue testing and nail down some styling issues.

The "absolutely must do list" is growing shorter.

Edited by MadLibrarian, 09 March 2015 - 04:22 PM.


#105 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 08 March 2015 - 10:33 AM

View PostOzealot, on 08 March 2015 - 10:17 AM, said:

Bought new mechs today but they aren't listed in the stats page while using Madstats. They are only showing when I deactivate the plugin. Maybe you should have a look a that problem.


Did you click Profile>Update from the mech stats page?
If you did update already, do the mechs show up properly when you go to options and enable 'unowned mechs'?


It is a manual update so as to not do unnecessary checks on owned mechs, because they change relatively infrequently compared to potential stat page views. It's up to the user to tell the plugin to check again. Maybe I'll move that out into a more obvious location too.

Edited by MadLibrarian, 08 March 2015 - 10:40 AM.


#106 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 08 March 2015 - 10:50 AM

View PostOzealot, on 08 March 2015 - 10:40 AM, said:

Well, did update again and now one of the new ones shows up but not all of them.


Do they show with the option 'show unowned mechs' enabled?
Can you turn on debug mode, press f12, click Profile>Update, Cancel the Refresh, and paste me the object listed under "line 163"?
Can you also tell me which mechs aren't showing up? Multiple chassis?

#107 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 09 March 2015 - 04:19 PM

View PostOzealot, on 09 March 2015 - 02:49 PM, said:

So I bought a new King Crab today (KGC-0000) and updated the stats but it again only shows when I select "show unowned mechs".

Sorry for delays in fixing this, I'm looking into it, but it is slow going without specifics. You can try the staging extension to see if the bug still exists in the latest code base if you want. Lots of new stuff, but I don't think I changed much in regards to the mech ownership logic. I plan to scrap that aspect and integrate it into the upcoming button filters. (Clan/IS, Light, Medium, Heavy, Assault, Owned) Time periods coming along too.

Turn on debug mode via Profile>Options
Click Profile>Update and Cancel the Refresh
Then press f12 and look at the console.
Scroll the console down while looking for "Line 163"
Then just copy / paste the data listed underneath 'Line 163" (If you see another "Line ###", you've gone too far.)

#108 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 09 March 2015 - 07:16 PM

View PostOzealot, on 09 March 2015 - 06:35 PM, said:


Thanks for the response. Found everything BUT no line numbers. I'm using Chrome if that helps.


Ahh, the line number property apparently isn't working in chrome. I must have broke that recently. I'll have to include a fix in the next update. Sorry, but it looks like it'll be delayed until I get the rest of the update stabilized.

Edited by MadLibrarian, 09 March 2015 - 07:17 PM.


#109 Goose

    Member

  • PipPipPipPipPipPipPipPipPip
  • Civil Servant
  • Civil Servant
  • 3,463 posts
  • Twitch: Link
  • LocationThat flattop, up the well, overhead

Posted 13 March 2015 - 06:26 PM

Soooo why does Malwarebytes find a metric assload of PUP.Optonal.CrossRider.A every time I install this? :mellow:

#110 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 14 March 2015 - 09:22 AM

View PostGoose, on 13 March 2015 - 06:26 PM, said:

Soooo why does Malwarebytes find a metric assload of PUP.Optonal.CrossRider.A every time I install this? :mellow:


Sorry, crossrider makes it easy to create browser extensions and some people have made malware. I have the ad features that are built into crossrider disabled, and I haven't seen any other ads or tracking functionality. I have been on the fence about crossrider the whole time I've been using it, it is ridiculously easy to make an extension that injects ads and tracks users, but so far it seems like it's all optional.

#111 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 18 March 2015 - 09:18 PM

Class filters, output and reset buttons, and some other goodies are currently in a good state for testing in the staging extension. The features are still in development, so they might be changing as I go. All feedback is welcomed.

Download button is bugging and doesn't allow multiple downloads without a page refresh. I might have to take out the feature for this release if I don't get it sorted soon.

Edited by MadLibrarian, 19 March 2015 - 02:29 PM.


#112 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 20 March 2015 - 05:54 PM

I wanted to get a tourney counter out before the event ended, so I went ahead and updated today. Watch out for updates in your browser.

I wanted to include a polished output feature in this update, but I couldn't resolve all the bugs today. The download button will appear when you enable debug mode, but you can only click it once per refresh. It's still a priority, so I look forward to getting it working and exposing a lot more options. I also updated some of the ownership code that might alleviate the issue with some mechs not displaying properly.

Let me know if you find any bugs or have suggestions.

Known Issues:

Might be some instability in this update, especially in regards to the filter buttons and the previous usage of an option for similar functionality. Running update or clearing localStorage should fix it.

The download button only works once per page refresh in firefox at the moment, sorry about that. I've been working on it, but I think it's a bug in tablesorter that will take a while longer to fix.


Edited by MadLibrarian, 06 April 2015 - 01:34 PM.


#113 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 21 March 2015 - 02:10 PM

Hotfix for tourney mods rolling out. Any issues for people who have won mechbays or premium time? I haven't won either yet to test. :/

Update:
There were a couple dangling issues with the tourney mods. Should be all fixed, but mech bays and premium time still might not show up properly. No test cases still. :/

Edited by MadLibrarian, 22 March 2015 - 11:23 PM.


#114 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 17 April 2015 - 11:53 AM

Hello Mechwarriors. Been a while since I posted here, so an update seems appropriate. The extension currently has almost 800 installs and 350 daily users from approximately 37 countries. Thank you all for validating my efforts and highlighting the need for sortable statistics.

I have been busy with life and other projects, so I haven't been working on this much, but I am still around. I have passed up a bit of time when I could have worked on this. (Mostly due to being annoyed with the game and its performance. Sorry about that. :/)

Big thanks to Scruffy416 for donating. I'm still hoping to move the time/xp/cBill sums to the base stats page like we talked about, but I can't make any promises on a completion time at this point.

I'm currently going through to remove defunct code experiments and useless comments, as well as a couple structural changes to organize the code better. At the very least, I plan to get the code back to some semblance of cleanliness before I hang up my hat.

I really want to implement time based tracking, but I don't know if I can devote the time to do it well. We'll see how things go in the coming weeks, I might have time enough to get it started by then, at least.


And now, some questions for you:

Any issues with weight/sphere/owned filter buttons?
Should we keep the output button?
Any opinions on the table stretching? Unnecessary?
Anyone using Firefox have a download button that works more than once without refreshing? (Chrome seems to work as intended, but FF is giving me grief.)
Any suggestions for other modifications to the script or website that people might like?
Any interest in stat signature images?
Anyone know if there's a need for multiple languages?
Anyone want to collaborate with me on this or other projects?
Any bug reports or questions?

Edited by MadLibrarian, 17 April 2015 - 11:59 AM.


#115 OznerpaG

    Member

  • PipPipPipPipPipPipPip
  • The Bludgeon
  • The Bludgeon
  • 977 posts
  • LocationToronto, Canada

Posted 18 April 2015 - 03:30 PM

the only thing that 'regressed' from the previous version is that Madstats used to clean up the multiple clan Prime entries but it no longer does that. i think it may do that when i deselect 'unowned', but i noticed that if i have 'unowned' selected it no longer shows my urbie stats

otherwise to me Madstats is ESSENTIAL - great work!

Edited by JagdFlanker, 18 April 2015 - 03:32 PM.


#116 DustySkunk

    Member

  • PipPipPipPipPipPip
  • Wrath
  • Wrath
  • 257 posts
  • LocationNew England

Posted 18 April 2015 - 10:13 PM

I just need to put a huge stamp of approval on this app. This makes the stats page sooooooooo much better!

Thank you so much for putting this together!

#117 OznerpaG

    Member

  • PipPipPipPipPipPipPip
  • The Bludgeon
  • The Bludgeon
  • 977 posts
  • LocationToronto, Canada

Posted 29 April 2015 - 01:04 PM

so i got 2 new mech chassis'ezes since i installed this firefox script - 3 urbies and 3 cicadas. it seems madstats classifies all 6 as 'unowned' since maybe i got them after i put the last patch on? in any case, when i turn off 'unowned' all 6 of these mechs disappear from the stats page along with all the extraneous 'prime' entries

#118 MadLibrarian

    Member

  • PipPipPipPipPipPip
  • Urban Commando
  • Urban Commando
  • 334 posts
  • Twitter: Link
  • Twitch: Link
  • LocationYou Essay

Posted 29 April 2015 - 09:02 PM

View PostJagdFlanker, on 29 April 2015 - 01:04 PM, said:

so i got 2 new mech chassis'ezes since i installed this firefox script - 3 urbies and 3 cicadas. it seems madstats classifies all 6 as 'unowned' since maybe i got them after i put the last patch on? in any case, when i turn off 'unowned' all 6 of these mechs disappear from the stats page along with all the extraneous 'prime' entries

Hmm. The unowned mech behavior is a little wonky since I converted to the filter buttons. Duplicates are showing up because they aren't 'owned', so I still do need to fix that. Have you clicked 'Update' from inside the profile menu yet? I'm working to make the updating automatic, but until then that click is required. If that doesn't work for you, let me know.

Next version is half done. Couple more things to add, but a few bug fixes and changes going already. Sorry I haven't communicated much.

#119 That Dawg

    Member

  • PipPipPipPipPipPipPipPip
  • FP Veteran - Beta 1
  • 1,876 posts

Posted 30 April 2015 - 03:10 AM

I've said it a couple of times........why didn't PGI pick this stupidly sensible webdesign in the first place..oh, ok, busy.
A fan creates, fixes debugs it...so all they have to do is......what steal it? oh, still busy..

they should give this guy a free something and just. take. it.

#120 OznerpaG

    Member

  • PipPipPipPipPipPipPip
  • The Bludgeon
  • The Bludgeon
  • 977 posts
  • LocationToronto, Canada

Posted 30 April 2015 - 03:10 AM

i pressed reset and it worked but i think 'owned' and 'unowned' are reversed so maybe that's what's confusing me - i turn off 'owned' and it shows all the mechs i own without the extra prime variants





11 user(s) are reading this topic

0 members, 11 guests, 0 anonymous users