poke-env
poke-env copied to clipboard
TeamBuilder: Validate teams?
Hi, I was wondering if there would be some way of validating a team we set up via team builder. I know Pokemon Showdown has a validator on their teambuilder page, would there be some way of accessing that?
I'm trying to run battles via the general API using custom teams and I sometimes get errors like this:
2022-08-26 18:01:34,207 - GeneralAPISimple 1 - WARNING - Popup message received: |popup|Your team was rejected for the following reasons:||||- Pichu must be shiny because it has a move only available from an event.
2022-08-26 18:36:40,486 - GeneralAPISimple 1 - WARNING - Popup message received: |popup|Your team was rejected for the following reasons:||||- Poliwhirl's moves Fissure, Power-Up Punch are incompatible.
This normally wouldn't be an issue except it causes the code to just freeze with nothing happening after this. Ideally it would be nice if we could run yield_team
again or raise some sort of exception.
any answers for this one?