Closed JeremieLeblanc closed 1 year ago
Showdown's teambuilder team restore format is not a documented team format. However, I think the intended logic for @pkmn/sets
's fromString
logic had meant to still support this, it was just wired up incorrectly. v5.0.4 includes the fix for this, but you must use Teams.fromString
not unpack (which is intended to be very liberal in what it will accept, be it JSON/the proper import format/whatever the teambuilder happens to accept).
Thanks for the bug report :)
Describe the bug:
When packing, unpacking, or exporting a Team, the name, format and folder are all ignored...
Example:
An example of this is trying to import a saved team from the Showdown's localStorage.
The packed team (from LocalStorage) looks like this:
The imported Team looks like this:
Expected behavior:
I would expect the imported Team to look like this instead
I would also expect the export to include those details as well.
The import method seems to work correctly when using
=== [format] team name ===
but the export does not add those details.