• The moderator of this forum is Austin.
  • 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 Showdex - An Auto-Updating Damage Calculator Built into Showdown!

1. Yea when i build a team / paste smth and go back to the teamlist, to after reclick onto the team it replace all Pokemon's name.
2. No i can't edit my team when calcdex is open cuz the mons aren't mons they are defined as (===) so it's not possible to edit the team, i can copy the move set but i need to replace the (===) by the nick of the mon/ supp the mon and paste the moveset for each mon so it's kinda long, i prefer to just close the calcdex edit the team and reopen it after. But if it's a team in a past, i just need to repaste the team and edit the sets.
3. It happens to all the teams who don't have nicknames, when the mons have nicknames they keep their mon name so the "bug" will not affect the team.
4. It was already setted at the option never so ig it don't fix the bug
View attachment 516975
also i forgot to said it last time but when i want to copy all my entire builder i can't cuz it looks like that
View attachment 516976
I hope that what i said was understandable, english is not my main language
Hmm, on closer inspection, it appears Showdown is failing to read from its internal dex object (e.g., Dex.species.get('Ferrothorn')), which probably explains why the Pokémon field (not nickname) is set to '==' (which strangely enough, is JavaScript's equality operator) & the type is "???".

That's certainly strange since as camboi mentioned, we don't mess with the Teambuilder or even the internal dex object at all (we only use it to read data about a Pokémon, move, etc.). I cannot for the life of me reproduce this issue on my end, including editing an existing team, building a team from scratch, importing one from PokéPaste, etc. (i.e., they all work as intended!).

Do you have any other extensions installed that runs alongside Showdex, perhaps (including Showdown Randbats Tooltip, Adblock Plus, uBlock Origin, etc.)? Also, could you post a dump of your DevTools console?

If you don't know how, here are some quick instructions:
  1. Go into your Teambuilder & let the bug happen again.
  2. Press F12 or right-click on the page & select Inspect.
  3. At the top, click on Console.
  4. Right-click anywhere where the logs are & select Save as...
  5. Browse to somewhere convenient & save the *.log file.
  6. Upload it as a reply or DM me if you're concerned about personal info being in there (though that shouldn't be the case).
Thanks!!

Edit: Also I've noticed that when you go to export your Pokémon, it shows it in the format as what's stored in LocalStorage (basically a modern day cookie), not the expected PokéPaste format. We do actually hook into one of the Teambuilder functions when you make changes to them, but only read the values to update Showdex's internal state & not alter any existing functionality. It's possible that somehow that hook breaks on your end, but again, I cannot reproduce your problem, so I'm just as lost as you are :c
 
Last edited:
I’ve had some issues when laddering with unregistered alts, or to be more precise when joining a game under my main account, and then using /nick into a player.

Sometimes, the calcdex option for my side will be in the down side of the Calc, and can’t be reversed after.

I see two means of fixing this:
Add an option do switch sides of the calc
Automatically set your side in the upper is you /nick, which seems the more natural option and the more practical

(apologies if you don’t get what I say)
Typically if you're spectating a game, you can have the Calcdex switch sides by hitting the "Switch sides" button underneath the battle frame (where the battle controls typically are).

But that's interesting, you're certainly the first I've heard using the /nick command mid-battle. To help me clarify this, say there is "Player A" & "Player B" in a battle, where "Player B" is your unregistered alt & also on the far side (so they appear on the bottom half of the Calcdex). In your Calcdex settings, you have My Location set to "Top". You join the battle as a spectator under your main account "Turtlek" (idk if it is, just an example). Then with your main "Turtlek" account, you use the /nick command & set your name to "Player B".

I'm assuming at this point the Calcdex doesn't realize you're now "Player B" in the battle, so it doesn't correctly respect the My Location setting. (Expected behavior being "Player B" moving to the top half of the Calcdex.) Let me know if I got this right. I'll try testing this out on my end as well (hopefully I'll be able to reproduce the issue you're having!).
 
Typically if you're spectating a game, you can have the Calcdex switch sides by hitting the "Switch sides" button underneath the battle frame (where the battle controls typically are).

But that's interesting, you're certainly the first I've heard using the /nick command mid-battle. To help me clarify this, say there is "Player A" & "Player B" in a battle, where "Player B" is your unregistered alt & also on the far side (so they appear on the bottom half of the Calcdex). In your Calcdex settings, you have My Location set to "Top". You join the battle as a spectator under your main account "Turtlek" (idk if it is, just an example). Then with your main "Turtlek" account, you use the /nick command & set your name to "Player B".

I'm assuming at this point the Calcdex doesn't realize you're now "Player B" in the battle, so it doesn't correctly respect the My Location setting. (Expected behavior being "Player B" moving to the top half of the Calcdex.) Let me know if I got this right. I'll try testing this out on my end as well (hopefully I'll be able to reproduce the issue you're having!).
Yes it’s that, I face that issue quite often as I don’t register my suspects alts before getting a good streak
 
Is there, or is there plans to add, a version we can pop into the server code rather than using an extension? My server is too different for the extension to even be viable
 
Amazing and unfathomably convenient extension, extremely useful for deducing sets and informing decisions and game plan, 10/10 tool ! :quagchamppogsire: However, Showdex has two issues that particularly affect me, who really likes playing National Dex metas, due to them both being related to Mega Evolution/Primal Reversion/Ultra Burst.
One, the option that allows you to change a PKMN's form in DMG calc isn't available for the opponent's side, which is very frustrating case as this is probably an easy fix via easy copy-pasting the existing toggle for the user's side.
Two, Showdex fails when trying to import from Smogdex the sets of in-battle forme changes in a given tier once moved out of their, due to site erroneously listing Mega sets as if they were run by the base PKMN (e.g. Primal Groudon is listed as "Groundon @ Red Orb" instead as "Groundon-Primal @ Red Orb", which is espicially annoying because this particular MF has ∞ EV potential and multiple vastly different sets that have immensely different matchups). Would it be OK if there was workaround that, say, assigned sets listed for the base form to its transformed state as well if said set includes the necessary item in it ? Thanks !
 
Last edited:
Hi, I'd like to report a bug with showdex concerning Oricorio in randbats. Even though I'm tera ground(meaning Revelation dance is a ground type move), the calc thinks that it's still an electric move, doing damage calcs as such.
Screenshot 2023-06-09 at 11.32.39 AM.png
 
Is there a way the boost from quark drive/protosynthesis could be implemented? Additionally can i control how many hits ice spear is going to land?
 
I know Inteleon doesn't have any other analyses rn, but can you blacklist analyses from certain OMs from appearing in standard format battles (i.e. no AAA in OU through PU/ZU)? This set popped up during a UU battle.
1686844380299.png
 

PokeChess

formerly Kirigon
Now the calculator is better adapted for doubles (before I'm not sure if you could switch between the 4 options, but I thought it was cool anyway). Unfortunately, the sets don't seem to be properly updated for duos in the extension yet.

nna9ndY - Imgur.png
 
Showdex seems to be using the wrong pool for Gen 9 Random Doubles, for Gumshoos it says the set is WallBreaker with either Adaptability or Stakeout, but when cross-referencing with gen9randomdoublesbattle.json there's only shows "Choice item user" with Strong Jaw (which matches with the damage dealt). Strangely enough, the percentages shown next to the abilities and moves are the correct ones.

1689241815166.png

Added console log as txt.
 

Attachments

GenOne

DOU council member. GMT-7. PS!: GenOne
is a Site Content Manager Alumnusis a Forum Moderator Alumnusis a Top Tiering Contributor Alumnusis a Contributor Alumnus
Showdex continues to be nothing short of a remarkable product. But in the interest of continuing to improve it, I am flagging an error in how Showdex currently handles the Supreme Overlord ability.

The dex, in its current state, adjusts the strength of Supreme Overlord in real-time so that if an ally of Kingambit faints, the power of Supreme Overlord updates instantaneously.

In practice, however, Supreme Overlord's multiplier is locked in from the moment you send Kingambit onto the field; if more allies faint after Kingambit has been sent in, Supreme Overlord's multiplier is supposed to remain unchanged.

This came up for me today in an OSDT game where the endgame came down to whether Kingambit's Sucker Punch was strong enough to OHKO a 50% hp Landorus-T. Showdex, believing that Supreme Overlord's multiplier was 1.5x, told me that Sucker Punch was a 100% guarunteed OHKO. In practice however, the multiplier was 1.4x and I was shocked af to see the Landorus-T live on 1% HP.

In this particular game, the calc's inaccuracy didn't actually matter; my win path and voltix's win path were already pretty much decided - it's just that what I thought was a confirmed "gg" was actually a 50/50 gamble that I lost lol. But I did want to flag this as I'm sure this will come up again in the future.
 

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

Top