• The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

Programming Teambuilder Usage Stats

dhelmise

is a Site Content Manageris a Battle Simulator Administratoris a Top Social Media Contributoris a Community Leaderis a Top Programmeris a Top Community Contributoris a Metagame Resource Contributoris a Tiering Contributoris a Top Contributoris a Top Smogon Media Contributoris a Top Dedicated Tournament Hostis a Smogon Discord Contributor Alumnus
OM & UM Leader
hi

A few days ago, faded love asked for someone to write a tool that players could use to get usage stats for their own teambuilder, so I said sure and wrote it.
M5mTtFe.png

https://krisxv.github.io/teambuilder-usage-stats/

Github - https://github.com/KrisXV/teambuilder-usage-stats/

It's pretty simple; you paste your teambuilder into the text box, click the button labeled with "Generate teambuilder usage stats", and the stats will appear. Yes, it does support packed teams. Let me know if you find any bugs!

No, I do not store your teams anywhere.

Shoutouts to pre for having an easily accessible API for parsing teams!

I am planning on eventually adding a filter per format, but for the time being, you can just do this by manually copying teams from a specific format folder and pasting them instead of your whole teambuilder.

(If this doesn't work on your browser it's because I was too lazy to add polyfills at the time so sorry)
 
Last edited:
Some things:
  1. I have added basic support for team memorization in localStorage (no, this doesn't mean I get access to your teams; it's the same thing PS uses for storing user settings and teams), which means that your teambuilder is still there when you reload the page! This also means that stats will auto-generate upon loading the page; Simplest way to stop this for now is by removing your teambuilder. I will add more localStorage settings later.
  2. I added better error checking. Now, instead of just saying "Error: does not exist." if you have a bad set, it will say what set is causing the issue.
  3. I transferred to using pre's @pkmn/img API for clearer Pokemon icons.
 
Back
Top