• The moderator of this forum is jetou.
  • 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 Custom Format vs. viewed Pokemon in teambuilder

Hi,
I've successfully made a custom format in my own PS server by creating a custom-formats.ts file. However, when I choose the format in the teambuilder, it just displays the default OU tier with no regards to my format. The team validation works just fine though. Interestingly, putting 'National Dex' at the beginning of my custom formats' name changes the display of Pokemon from default OU to National Dex OU (followed by NDUUBL, NDAG, NDUBER, NDUU,...).

This proves that somewhere in the code, there has to be something checking for the format name, and then display appropriate Pokemon in the teambuilder.

My question: Does anyone know where exactly this piece of code is located? And could I manipulate it, so when it encounters my custom formats' name, to only show Pokemon from my custom format (can still be sorted by NDAG/NDUBER/NDOU/...)?
 
Back
Top