Programming PS Replay Usage Stats Generator / Scouter

Eo Ut Mortus

Elodin Smells
is a Programmeris a Tournament Director Alumnusis a Site Content Manager Alumnusis a Senior Staff Member Alumnusis a Community Contributor Alumnusis a Top Tiering Contributor Alumnusis a Top Contributor Alumnusis a Smogon Media Contributor Alumnusis a Battle Simulator Moderator Alumnusis a Past SCL Championis a Past WCoP Champion
http://replaystats-eo.herokuapp.com/

There are issues in terms of design right now, but enough people have used it to assure me that this is at least functional, so no point in not releasing it. Please report all bugs in this thread, or PM me on here or on Discord (eOut#1657) about any issues you may have.

1. Main Page
Enter replays and get stats.

From thread: Parses a Smogon thread for every link to a Pokemon Showdown replay. So think SPL/WCOP replay threads, or threads where people include replay links in their victory posts.

From range: Every replay has a number N appended to the end of its URL, where N designates it as the Nth match played on the server. Designating a range parses all the replays of a given tier from that range. Useful for live tour stats, but there's a designated page for that. Currently, this only works on replays played on the Smogtours server.

From links: Takes a newline separated list of replays as input. Can be used in conjunction with the aforementioned methods.

Note: You don't actually have to click on "From Links" to use this; you can just leave the form empty. Good design y/n.

2. Live Tours
Enter a tournament thread and a range and match replays from that range to the pairings. Then, generate stats.

First, the script will attempt to match pairings with names based on a fuzzy matching algorithm, and you will be taken to a second page with three tables corresponding to pairings, replay matches, and unmatched replays, as shown here:



There are three types of matches: exact matches (pairings correspond exactly to names), fuzzy matches (the name(s) in both pairings correspond roughly to each name), and partial matches (one player in the pairing matches one player in the replay), designated by green, yellow, and red, respectively.

From there, you can double-check the script output and match the remaining pairings and replays. To do this, click on a replay and either drag/drop or click on another replay/empty cell to swap/drop. When hitting submit, everything in the second table will be accepted as a replay and parsed. Right now, it makes no difference what pairing they're matched to; that leftmost table is just a visual aid.

Note that this script will once again only work on Smogtours, and it will detect hidden replays.

Common issues:
- Corrupted replays will sometimes not show up in the list (as of now), so if you're missing replays, that's probably what happened.
- There are usually duplicate replays as a result of both players accepting a challenge at the same time, so make sure you select the correct replay.
- The matches are NOT saved if you navigate away from the page, which is a problem if you accidentally click on a replay link without opening it in a new tab. Hope to fix this eventually.

3. Scouter
Enter a list of replay URLs or a name and a tier, and parse teams/movesets.

From links: Parses both players' teams and movesets.

From player: Enter player and tier. Returns only that player's teams/movesets, as well as their usage stats.

Note: All this does is query the replay site. It does NOT reveal hidden replays, and it only shows the last 10 pages' worth of replays saved to PS's site. It is nothing but a timesaver; on its own, it does not provide any non-public information. AKA you can continue to put snowflakes and chess pieces in your name to avoid being scout.

Known Issues:
- Please excuse our look during redesign
- Win rates are broken on the scouter.
- Magic Bounced, Copycat-selected moves, etc. are all displayed in the moveset stats and will mess up the tables on the scouter.
- Certain sprites are messed up.

Code available on my Github; PM me for access.
 
Hey, just wanted to report a quick bug I found when looking at OU tour data for a Data Science Project:

Under Moves and Teammates, Urshifu consistently has no moves listed under it. This error can be found in the SPL, SCL, and WCoP data, among other places.
 

Arcticblast

Trans rights are human rights
is a Forum Moderatoris a Tiering Contributoris a Social Media Contributor Alumnusis a Senior Staff Member Alumnusis a Community Contributor Alumnusis a Battle Simulator Moderator Alumnusis a Past SPL Champion
I don't know if this is a bug or if it's something I'm missing in calculation.

Multiple rounds in a row in the Winter DOU seasonal, I've noticed Pokemon with odd usage numbers getting exactly 50% winrate, among other things that look wrong. Using round 6 Armarouge as an example, I ran stats using only Armarouge replays, and despite inputting exactly nine games, it still listed a 50% winrate. In the actual games, Armarouge won five games and lost four.

I know "win rates are broken on the scouter" is included in the known issues, but I wanted to bring it up anyway. (the From Thread function also doesn't seem to work at all, but that's not what I'm here for and could also be user error)
 

Eo Ut Mortus

Elodin Smells
is a Programmeris a Tournament Director Alumnusis a Site Content Manager Alumnusis a Senior Staff Member Alumnusis a Community Contributor Alumnusis a Top Tiering Contributor Alumnusis a Top Contributor Alumnusis a Smogon Media Contributor Alumnusis a Battle Simulator Moderator Alumnusis a Past SCL Championis a Past WCoP Champion
- Fixed broken new gen sprites; there might be some broken edge cases.
- Old gens/team previewless doubles replays can be parsed now; thanks to BigFatMantis for bringing it to my attention.

I don't know if this is a bug or if it's something I'm missing in calculation.

Multiple rounds in a row in the Winter DOU seasonal, I've noticed Pokemon with odd usage numbers getting exactly 50% winrate, among other things that look wrong. Using round 6 Armarouge as an example, I ran stats using only Armarouge replays, and despite inputting exactly nine games, it still listed a 50% winrate. In the actual games, Armarouge won five games and lost four.
Thanks, fixed. FYI, the exact cause of this bug was any user with a < in their name not being properly parsed as a winner, notably one "RelicanthPrimal <><". Any stats involving their won matches will have produced inaccurate win rates.

(the From Thread function also doesn't seem to work at all, but that's not what I'm here for and could also be user error)
Fixed, note that you have to explicitly specify the tier; the UI is kind of bad/misleading as of now.

Hey, just wanted to report a quick bug I found when looking at OU tour data for a Data Science Project:

Under Moves and Teammates, Urshifu consistently has no moves listed under it. This error can be found in the SPL, SCL, and WCoP data, among other places.
Late but fixed, thanks.
 
I'm finding a bug where sometimes, when I send a wrong link, instead of ignoring it the site just crashes down needing to restart all over again. It's not even consistent on it, it just happens.
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top