This is still not working, stage hazards are still present after the initial switch in.camboi said:Fixed stage hazards always being present in damage calculations even after the Pokémon is active on the field.
I'm also having this issue.When I mean lag I mean that when you click buttons you have to wait like 1 or 2 sec before the action happen like skip turn or switch room ect
Sorry for the late response, we wanted to make sure we figured the problem out and tested it before saying anything premature this time haha. This bug was weird because it only happened occasionally, but we're pretty sure it's been fixed now. I won't bore you with the specifics unless you're interested, but essentially we always needed to provide the calc with a value even if there were no hazards on the field.This is still not working, stage hazards are still present after the initial switch in.
This game showcases how it's still not working (skip to turn 8).
Here's is the calc that the damage calculator produced:
+1 252 SpA Kommo-o Boomburst vs. 0 HP / 4 SpD Victini: 190-224 (55.7 - 65.6%) -- guaranteed OHKO after Stealth Rock
This is despite the fact that Victini was already in the game and thus doesn't need to account for rock damage.
This should've been the actual calc:
+1 252 SpA Kommo-o Clanging Scales vs. 0 HP / 4 SpD Victini: 223-264 (65.3 - 77.4%) -- 12.5% chance to OHKO
I'm also having this issue.
Yup I started to notice this as well after you mentioned it! As far as we could tell, the lag is mostly gone in the newest patch, especially if you turn on some of the performance settings we added like clearing the game from memory after you close the tab! Hopefully that fixes the issue for you!When I mean lag I mean that when you click buttons you have to wait like 1 or 2 sec before the action happen like skip turn or switch room ect
I mean if Showdex is getting its information from what it's detecting, it sounds like something the Showdown devs needs to fix to prevent leaks. (Not that Showdex shouldn't be showing this info also).I've been playing NDBH for a while, and I've noticed that Showdex may be leaking "illegal" information.
Say, Core Enforcer suppresses abilities, if a Imposter mon switches into the suppressed mon afterwards, hovering on it will just say that its ability is "(suppressed)", however, while it effectively has no ability, the ability the user would have appears in Showdex, which is relevant as one of the main appeals of Imposter is scouting the opponent's set, and being able to see more than in normal circumstances with Showdex can easily raise red flags, unless the capability to say the ability the user would have in such cases is just a feature yet to be added to Pokémon Showdown.
Glad to know our new error handler is workingView attachment 458684
v:1.0.3;b:183C7434E14;t:firefox;e:p;g:4;fm:gen4ou;p:?/p1/p2;p1:Dracodre|1427|5|5|y|0/c,Uxie,Uxie>?,N,100,n,Psychic,42/100/n,?/0/0/0,n,?/?~Levitate/n/n,Leftovers~?/?/?/?,Adamant,75/75>?/130>?/75>?/130>?/95>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,291/204/296/167/296/226,,n/n/?,Stealth Rock+1/Psychic+1/U-turn+1,|0/c,Starmie,Starmie>?,N,100,n,Water/Psychic,0/100/y,?/0/0/0,n,?/?~Illuminate/n/n,Leftovers~?/?/?/?,Adamant,60/75>?/85>?/100>?/85>?/115>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,261/204/206/212/206/266,,n/n/?,Thunder Wave+1/Recover+1/Rapid Spin+1/Surf+1,|0/c,Machamp,Machamp>?,M,100,n,Fighting,0/100/y,?/0/0/0,n,?/?~Guts/n/n,Leftovers~?/?/?/?,Adamant,90/130>?/80>?/65>?/85>?/55>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,321/325/196/149/206/146,,n/n/?,Dynamic Punch+3,|0/c,Gyarados,Gyarados>?,F,100,n,Water/Flying,0/100/y,?/0/0/0,n,Intimidate/Intimidate~?/n/n,?~?/?/Lum Berry/eaten,Adamant,95/125>?/79>?/60>?/100>?/81>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,331/314/194/140/236/198,,n/n/?,Dragon Dance+1/Ice Fang+1/Earthquake+1,|0/c,Scizor,Scizor>?,F,100,n,Bug/Steel,0/100/y,?/0/0/0,n,?/?~Swarm/n/n,Life Orb~?/?/?/?,Adamant,70/130>?/100>?/55>?/80>?/65>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,281/325/236/131/196/166,,n/n/?,Swords Dance+1/Bullet Punch+3/Superpower+2,|0/c,Jirachi,Jirachi>?,N,100,n,Steel/Psychic,6/100/n,?/0/0/0,n,?/?~Serene Grace/n/n,?~?/?/?/?,Adamant,100/100>?/100>?/100>?/100>?/100>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/259/236/212/236/236,,n/n/?,Iron Head+2/Fire Punch+1,;p2:BTLT404 Poketglace|1526|-1|0|y|0/c,Jirachi,Jirachi>?,N,100,n,Steel/Psychic,0/100/y,par/0/0/0,n,?/?~Serene Grace/n/n,Leftovers~?/?/?/?,Adamant,100/100>?/100>?/100>?/100>?/100>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/259/236/212/236/236,,n/n/?,Iron Head+3/Stealth Rock+1/Thunder+3,|0/c,Tyranocif,Tyranitar>?,F,100,n,Rock/Dark,0/100/y,?/0/0/0,n,Sand Stream/Sand Stream~?/n/n,?~?/?/?/?,Adamant,100/134>?/110>?/95>?/100>?/61>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/334/256/203/236/158,,n/n/?,Pursuit+1/Fire Blast+2,|0/c,Airmure,Skarmory>?,M,100,y,Steel/Flying,0/100/y,?/0/0/0,n,?/?~Keen Eye/n/n,Leftovers~?/?/?/?,Adamant,65/80>?/140>?/40>?/70>?/70>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,271/215/316/104/176/176,,n/n/?,Brave Bird+1,|0/c,Chapignon,Breloom>?,M,100,n,Grass/Fighting,0/100/y,tox/0/0/0,n,Poison Heal/Poison Heal~?/n/n,Toxic Orb~?/?/?/?,Adamant,60/130>?/80>?/60>?/60>?/70>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,261/325/196/140/156/176,,n/n/?,Seed Bomb+2/Spore+2/Substitute+1/Focus Punch+1,|0/c,Latias,Latias>?,F,100,y,Dragon/Psychic,0/100/y,?/0/0/0,n,?/?~Levitate/n/n,?~?/?/?/?,Adamant,80/80>?/90>?/110>?/130>?/110>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,301/215/216/230/296/256,,n/n/?,Thunderbolt+2,|0/c,Suicune,Suicune>?,N,100,y,Water,0/100/y,?/0/0/0,n,Pressure/Pressure~?/n/n,Leftovers~?/?/?/?,Adamant,100/75>?/115>?/90>?/115>?/85>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/204/266/194/266/206,,n/n/?,Surf+1,;fd:s|Sand|?||
Currently we have it change your item automatically if it's revealed in battle, but we don't have it work the opposite way, which is a good idea actually. We'll probably add that in with the next patch, as we'll also be adding the feature to auto-replace one of the moves with a revealed move when it's detected, so it would be fitting to add this in as well. I think it probably would only work for Life Orb, Leftovers, Assault Vest (if they use a status move), not sure if there's anything else that we could deduce, I'll have to take a look.Is there a plan to make the sets it shows auto-update based on what the mons used in the battle? For example, I was in a battle and while calcdex said a mon had leftovers the mon clearly did not due to it not getting the tick healing. I do wonder if this is an issue for random battle as well.
Wow this was a really good catch, we never would have thought of this edge case (a pleasant surprise that "(suppressed)" as an ability didn't break the Calcdex). We tested it out for ourselves, and you're right, it does reveal the ability even though the tooltip doesn't show it. However, we only read the data that's publicly available in the battle state, and when we inspected the console we saw that it does tell you the ability. So if you wanted to, you could inspect the page and see what the ability was if you knew where to look.I've been playing NDBH for a while, and I've noticed that Showdex may be leaking "illegal" information.
Say, Core Enforcer suppresses abilities, if a Imposter mon switches into the suppressed mon afterwards, hovering on it will just say that its ability is "(suppressed)", however, while it effectively has no ability, the ability the user would have appears in Showdex, which is relevant as one of the main appeals of Imposter is scouting the opponent's set, and being able to see more than in normal circumstances with Showdex can easily raise red flags, unless the capability to see the ability the user would have in such cases is just a feature yet to be added to Pokémon Showdown.
This is correct! I'm thinking this was probably an oversight by Showdown that needs to be fixed. I'm not sure where we should report it, do you know? Unfortunately we just tried fixing it and it would be pretty hard on our end as it would break syncing for everything else, as we have to trust the data that Showdown provides us. We'll keep it in mind though and see if there's a better resolution, as we definitely don't want to provide any unfair competitive advantages like this.I mean if Showdex is getting its information from what it's detecting, it sounds like something the Showdown devs needs to fix to prevent leaks. (Not that Showdex shouldn't be showing this info also).
Looks like this is the best place to post it: https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/Wow this was a really good catch, we never would have thought of this edge case (a pleasant surprise that "(suppressed)" as an ability didn't break the Calcdex). We tested it out for ourselves, and you're right, it does reveal the ability even though the tooltip doesn't show it. However, we only read the data that's publicly available in the battle state, and when we inspected the console we saw that it does tell you the ability. So if you wanted to, you could inspect the page and see what the ability was if you knew where to look.
This is correct! I'm thinking this was probably an oversight by Showdown that needs to be fixed. I'm not sure where we should report it, do you know? Unfortunately we just tried fixing it and it would be pretty hard on our end as it would break syncing for everything else, as we have to trust the data that Showdown provides us. We'll keep it in mind though and see if there's a better resolution, as we definitely don't want to provide any unfair competitive advantages like this.
you can reproduce the error easily just play some gen4ou I will send you full logs if it happens again for me.Glad to know our new error handler is workingDo you happen to remember what the error message was btw? We're gonna take a look at the data and see if we can figure out what went wrong, thanks for letting us know!
Also how is the performance now after the patch, are you noticing any lag anymore?
Ok I'll try it out. And glad at least the lag is getting better LOL I guess a little lag is a bit inevitable, but hopefully it's better than having to input everything manually into the damage calc. I'm sure we'll find some further optimizations as well down the line.you can reproduce the error easily just play some gen4ou I will send you full logs if it happens again for me.
As for the lags, the "lag time" is shorter yeah, anyway that wasnt really an issue for me since I mostly want to use that for tournament games were you play slowly (i just wanted to tell you about this). It might still be an issue during long ladder session for some people maybe but with the the memory clearing improvement it shouldn't.
Super happy to hear that, glad you've found it helpful! Unfortunately I don't think we'll be able to support the desktop version as it would require a new project entirely. Sorry about that. The project is open source tho, so if someone wants to port it, they totally can :)Hey, this has been a GODSEND on the suspect ladder, fantastic project, thank you so much for making it. I just have a quick question, is it possible to use this with the desktop version of Showdown, or is there only support for the in browser version?
some more I thought of quickly, no clue how easy they are to implementCurrently we have it change your item automatically if it's revealed in battle, but we don't have it work the opposite way, which is a good idea actually. We'll probably add that in with the next patch, as we'll also be adding the feature to auto-replace one of the moves with a revealed move when it's detected, so it would be fitting to add this in as well. I think it probably would only work for Life Orb, Leftovers, Assault Vest (if they use a status move), not sure if there's anything else that we could deduce, I'll have to take a look.
Chrome currently doesn't support extensions on mobile, but we can try to make it work for Firefox mobile (android only though unfortunately). It will take us some time to test it out and make sure it's working, but I definitely think it'll be possible for Firefox and other Chromium based browsers could be supported potentially as well. I'll respond back after we've given it a try!Is there a way to get this working on mobile devices, such as Android?
Thank you for the list, this will actually be super helpful! We realized this will be a pretty big feature that could get pretty complicated, so we're going to leave it out of this patch since we want to push it out soon.some more I thought of quickly, no clue how easy they are to implement
Choice items (if they switch moves)
black sludge
berry that reduce damage
lum / chesto berry etc
heavy-duty boots
seeds
flame / toxic orb
heat / smooth / damp / icy rock
light clay
gems
protective pads
eject button / pack
rocky helmet
sitcky barb
terrain extended
weakness policy
blunder policy
Not sure if this is the right place to post this but I got while playing gen 4 ou and trying to select my jirachi in the calc. Refreshing the page and selecting the jirachi again caused another crash.
These two bugs are the same, we figured out the problem and fixed it in the coming patch (1.0.4). Thank you for the bug reports, it was an odd one for sure as it only appeared sometimes :) we're going to do a little more testing on it today to make sure it's fixed and then we'll release it!View attachment 458684
v:1.0.3;b:183C7434E14;t:firefox;e:p;g:4;fm:gen4ou;p:?/p1/p2;p1:Dracodre|1427|5|5|y|0/c,Uxie,Uxie>?,N,100,n,Psychic,42/100/n,?/0/0/0,n,?/?~Levitate/n/n,Leftovers~?/?/?/?,Adamant,75/75>?/130>?/75>?/130>?/95>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,291/204/296/167/296/226,,n/n/?,Stealth Rock+1/Psychic+1/U-turn+1,|0/c,Starmie,Starmie>?,N,100,n,Water/Psychic,0/100/y,?/0/0/0,n,?/?~Illuminate/n/n,Leftovers~?/?/?/?,Adamant,60/75>?/85>?/100>?/85>?/115>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,261/204/206/212/206/266,,n/n/?,Thunder Wave+1/Recover+1/Rapid Spin+1/Surf+1,|0/c,Machamp,Machamp>?,M,100,n,Fighting,0/100/y,?/0/0/0,n,?/?~Guts/n/n,Leftovers~?/?/?/?,Adamant,90/130>?/80>?/65>?/85>?/55>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,321/325/196/149/206/146,,n/n/?,Dynamic Punch+3,|0/c,Gyarados,Gyarados>?,F,100,n,Water/Flying,0/100/y,?/0/0/0,n,Intimidate/Intimidate~?/n/n,?~?/?/Lum Berry/eaten,Adamant,95/125>?/79>?/60>?/100>?/81>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,331/314/194/140/236/198,,n/n/?,Dragon Dance+1/Ice Fang+1/Earthquake+1,|0/c,Scizor,Scizor>?,F,100,n,Bug/Steel,0/100/y,?/0/0/0,n,?/?~Swarm/n/n,Life Orb~?/?/?/?,Adamant,70/130>?/100>?/55>?/80>?/65>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,281/325/236/131/196/166,,n/n/?,Swords Dance+1/Bullet Punch+3/Superpower+2,|0/c,Jirachi,Jirachi>?,N,100,n,Steel/Psychic,6/100/n,?/0/0/0,n,?/?~Serene Grace/n/n,?~?/?/?/?,Adamant,100/100>?/100>?/100>?/100>?/100>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/259/236/212/236/236,,n/n/?,Iron Head+2/Fire Punch+1,;p2:BTLT404 Poketglace|1526|-1|0|y|0/c,Jirachi,Jirachi>?,N,100,n,Steel/Psychic,0/100/y,par/0/0/0,n,?/?~Serene Grace/n/n,Leftovers~?/?/?/?,Adamant,100/100>?/100>?/100>?/100>?/100>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/259/236/212/236/236,,n/n/?,Iron Head+3/Stealth Rock+1/Thunder+3,|0/c,Tyranocif,Tyranitar>?,F,100,n,Rock/Dark,0/100/y,?/0/0/0,n,Sand Stream/Sand Stream~?/n/n,?~?/?/?/?,Adamant,100/134>?/110>?/95>?/100>?/61>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/334/256/203/236/158,,n/n/?,Pursuit+1/Fire Blast+2,|0/c,Airmure,Skarmory>?,M,100,y,Steel/Flying,0/100/y,?/0/0/0,n,?/?~Keen Eye/n/n,Leftovers~?/?/?/?,Adamant,65/80>?/140>?/40>?/70>?/70>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,271/215/316/104/176/176,,n/n/?,Brave Bird+1,|0/c,Chapignon,Breloom>?,M,100,n,Grass/Fighting,0/100/y,tox/0/0/0,n,Poison Heal/Poison Heal~?/n/n,Toxic Orb~?/?/?/?,Adamant,60/130>?/80>?/60>?/60>?/70>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,261/325/196/140/156/176,,n/n/?,Seed Bomb+2/Spore+2/Substitute+1/Focus Punch+1,|0/c,Latias,Latias>?,F,100,y,Dragon/Psychic,0/100/y,?/0/0/0,n,?/?~Levitate/n/n,?~?/?/?/?,Adamant,80/80>?/90>?/110>?/130>?/110>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,301/215/216/230/296/256,,n/n/?,Thunderbolt+2,|0/c,Suicune,Suicune>?,N,100,y,Water,0/100/y,?/0/0/0,n,Pressure/Pressure~?/n/n,Leftovers~?/?/?/?,Adamant,100/75>?/115>?/90>?/115>?/85>?,31/31/31/31/31/31,0/0/0/0/0/0,?/?/?/?/?/?,0~?/0~?/0~?/0~?/0~?,341/204/266/194/266/206,,n/n/?,Surf+1,;fd:s|Sand|?||
I've noticed an issue that's caused me to remove it from my browser. I use Chrome if that matters. When I am spectating multiple games, the showdex automatically opens a calc for each game. If I have more than 4ish calcs open, PS begins to lag, and eventually my browser crashes. Could there be some way to implement an option where spectating games doesn't open a calc?
Have ya'll tried it out with the new update? I'm curious to hear if it fixed the lag problem for you :) Also dex we now have an option in the settings to choose when a Calcdex tab opens, so you can have it not open when you're spectating (only when you're in a battle)its a 10yo laptop so that might be why lol, although i never lagged ever before this (also its more like after game 10)