arleypadua / PKHeX.Everywhere

Cross platform tools for interacting with Pokemon save files. The web version runs everywhere and the CLI works with Mac OS, Linux and Windows
https://pkhex-web.github.io
MIT License
34 stars 2 forks source link

Error on PKHeX.Web: Expected 1-6, got 0 Arg_ParamName_Name, value #75

Closed ken173 closed 1 month ago

ken173 commented 2 months ago

Error on PKHeX.Web

Message

Expected 1-6, got 0 Arg_ParamName_Name, value

Stack trace

   at PKHeX.Core.SaveFile.set_PartyData(IList`1 value)
   at PKHeX.Facade.PokemonParty.Commit()
   at PKHeX.Facade.Trainer.Commit()
   at PKHeX.Facade.Game.ToByteArray()
   at PKHeX.Web.Services.GameService.Export()
   at PKHeX.Web.Components.LoadGameComponent.ExportSaveAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at AntDesign.Button.HandleOnClick(MouseEventArgs args)
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )
arleypadua commented 2 months ago

Is this error happening out of a save file you loaded or an empty one?

If you tried to export an empty save file, then it's a known issue

ken173 commented 2 months ago

It's happening with a loaded save file.

arleypadua commented 2 months ago

I can't seem to reproduce the issue. Do you mind sharing your save file here so I can have a look?

arleypadua commented 1 month ago

Closing as I'm not able to reproduce