• 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, Showde 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
 

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

Top