hsahovic / poke-env

A python interface for training Reinforcement Learning bots to battle on pokemon showdown
https://poke-env.readthedocs.io/
MIT License
284 stars 94 forks source link

TeamBuilder: Validate teams? #327

Open akashsara opened 1 year ago

akashsara commented 1 year ago

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.

RobertKrmpotic1 commented 11 months ago

any answers for this one?