Giter VIP home page Giter VIP logo

pkhex-plugins's Introduction

About

This project uses PKHeX.Core and PKHeX's IPlugin interface to add enhancements to the PKHeX program, namely Automated Modifications to simplify creation of legal Pokémon.

This project is owned by @architdate (Discord: thecommondude) and @kwsch (Discord: kwsch).

Feature Demonstration Video by AAron#2420.
This is an older video but features are still largely similar.

Building

This project requires an IDE that supports compiling .NET based code, such as Visual Studio 2022, and the .NET 8.0 SDK.

Regular Builds
Regular builds will usually succeed unless there are changes that are incompatible with the NuGet PKHeX.Core package dependency specified in the .csproj files of the projects. If building fails, use the bleeding edge method instead.

  • Clone the PKHeX-Plugins repository using: $ git clone https://github.com/architdate/PKHeX-Plugins.git.
  • Right-click on the solution and click Rebuild All.
  • These DLLs should be placed into a plugins directory where the PKHeX executable is.
    • The compiled DLL AutoModPlugins.dll for AutoLegality will be in the AutoLegalityMod\bin\Release\net8.0-windows directory.

Bleeding Edge Builds
Use this build method only if the regular builds fail. The Azure Pipelines CI will always use the bleeding edge build method. More details regarding this can be seen in the azure-pipelines.yml file.

  • Clone the PKHeX repository using: $ git clone https://github.com/kwsch/PKHeX.git.
  • Clone the PKHeX-Plugins repository using: $ git clone https://github.com/architdate/PKHeX-Plugins.git.
  • Open the PKHeX solution, change your environment to Release, right-click on the PKHeX.Core project, and click Rebuild to build the project.
  • Open the PKHeX-Plugins solution and right-click to Restore NuGet Packages.
  • Next, replace the most recent NuGet packages with the newly-built PKHeX.Core.dll files.
    • Copy the PKHeX.Core.dll file located in PKHeX.Core\bin\Release\net8.0 to the following folder with the most recent date:
      • C:\Users\%USERNAME%\.nuget\packages\pkhex.core\YY.MM.DD\lib\net8.0
  • Right click the PKHeX-Plugins solution and Rebuild All. This should build the mod with the latest PKHeX.Core version so that it can be used with the latest commit of PKHeX.
  • The compiled DLLs will be in the same location as with the regular builds.

Usage

To use the plugins:

  • Create a folder named plugins in the same directory as PKHeX.exe.
  • Put the compiled plugins from this project in the plugins folder. If you downloaded the plugins from online, you will need to unblock them.
  • Start PKHeX.exe.
  • The plugins should be available for use in Tools > Auto Legality Mod drop-down menu.

Support Server

Please refer to the Wiki first for usage information and help first, as most queries are answered there. If you have looked and need additional help, you can join the dedicated Discord server for this mod!

Contributing

To contribute to the repository, you can submit a pull request to the repository. Try to follow a format similar to the current codebase. All contributions are greatly appreciated! If you would like to discuss possible contributions without using GitHub, please contact us on the support server above.

Credits

Repository Owners

Credit must be given where due... This project would not be as amazing without the help of the following people who have helped me since the original Auto-Legality-Mod.

  • @kwsch for providing the IPlugin interface in PKHeX, which allows loading of this project's Plugin DLL files. Also for the support provided in the support server.
  • @berichan for adding USB-Botbase support to LiveHeX.
  • @soopercool101 for many improvements to Smogon StrategyDex imports and various other fixes.
  • @Lusamine for all the help with stress testing the code with wacky sets!
  • @ReignOfComputer for the sets found in RoCs-PC which are used for unit testing.
  • TORNADO for help with test cases.
  • @Rino6357 and @crzyc for initial help with the Wiki.
  • @hp3721 for help with adding localization based on PKHeX's implementation.
  • @Bappsack for his help on Discord in voice chats!
  • @chenzw95 for help with integration.
  • @BernardoGiordano for many ideas on improving speed.
  • @olliz0r for developing and maintaining sys-botbase as well which is necessary for LiveHeX to work.
  • @SteveCookTU and @olliz0r for LedyLib from which a lot of the NTR processing code is liberally referenced.
  • @fishguy6564 for creating USB-Botbase (by extending sys-botbase).
  • FlatIcon for their icons. Author credits (Those Icons, Pixel perfect).
  • Project Pokémon for their Mystery Gift Event Gallery.
  • And all the countless users who have helped improve this project with ideas and suggestions!

pkhex-plugins's People

Contributors

abyzab avatar architdate avatar bappsack avatar berichan avatar bert-w avatar ca1e avatar devyukine avatar djpanda065 avatar easyworld avatar fm1337 avatar foohyfooh avatar griffing1 avatar hp3721 avatar jisagi avatar koi-3088 avatar kwsch avatar legofigure11 avatar lusamine avatar manu098vm avatar pifopi avatar pplloufh avatar reignofcomputer avatar reindex-ot avatar santacrab2 avatar soopercool101 avatar sora10pls avatar thesuperiorsid avatar xiaolong11123 avatar xxphoenix1996xx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pkhex-plugins's Issues

(Livehex) Pokémon not loading in game unless I click on them.

When I drag a Pokémon into the pkhex boxes, they won’t show up in game, even if I exit the boxes in game and check them back in, but if I click on the Pokémon I inserted into game via Livehex again, they show up. Sometimes the same thing happens but only their sprites aren’t showing but they’re in the box. Sometimes they don’t show up at all.

Sometimes this doesn’t happen but it happens most of the time.

SmogonGenner and PKHeX blank save files

Hi, liking your plugins.

Recently, PKHeX included the ability for users to select a version to load a blank save file in. However, when I run SmogonGenner in a blank save file prior to Gen 7, it still collects the Smogon sets from Gen 7. Am I doing something wrong, or will this need to be worked on?

I try to use the auto-legality plugin functions and they all return the same error screen

Describe the bug
I try to use the auto-legality plugin functions and they all return the same error screen

To Reproduce
Steps to reproduce the behavior:

Go to tools- autolegality mod
Click on generate livedex or any other function of this plugin
Get this:
Exception Details:
System.MissingMethodException: Método no encontrado: 'System.Collections.Generic.IEnumerable1<PKHeX.Core.EncounterSlot> PKHeX.Core.EncounterArea6XY.GetValidFriendSafari(PKHeX.Core.PKM)'. en PKHeX.Core.AutoMod.APILegality.GetFriendSafariEncounters(PKM pk) en PKHeX.Core.AutoMod.APILegality.GetLegalFromTemplate(ITrainerInfo dest, PKM template, IBattleTemplate set, Boolean& satisfied) en PKHeX.Core.AutoMod.Legalizer.TryAPIConvert(ITrainerInfo tr, IBattleTemplate set, PKM template, PKM& pkm) en AutoModPlugins.ModLogic.GetRandomEncounter(PKM blank, ITrainerInfo tr, Int32 species) en AutoModPlugins.ModLogic.GetRandomEncounter(ITrainerInfo tr, Int32 species, PKM& pk) en AutoModPlugins.ModLogic.<GenerateLivingDex>d__4.MoveNext() en PKHeX.Core.ArrayUtil.CopyTo[T](IEnumerable1 list, IList`1 dest, Int32 start)
en AutoModPlugins.LivingDex.GenLivingDex(Object sender, EventArgs e)
en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
en System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
en System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ToolStrip.WndProc(Message& m)
en System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Loaded Assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=20.10.10.0, Culture=neutral, PublicKeyToken=null
C:\Users\zeusr\Desktop\pkhex\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

System.Windows.Forms.resources, Version=4.0.0.0, Culture=es, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_es_b77a5c561934e089\System.Windows.Forms.resources.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

AutoModPlugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\zeusr\Desktop\pkhex\plugins\AutoModPlugins.dll

QRPlugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\zeusr\Desktop\pkhex\plugins\QRPlugins.dll

PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll

WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll

WC3Plugin, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\zeusr\Desktop\pkhex\plugins\WC3Plugin.dll

mscorlib.resources, Version=4.0.0.0, Culture=es, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_es_b77a5c561934e089\mscorlib.resources.dll

User Message:
An unhandled exception has occurred.
You can continue running PKHeX, but please report this error.

Expected behavior
I expected to get the living dex in this case(any function works for me)

Additional context
If this matters im loading the program from a usb working in windows 10

Pokeball legality issue

Hello, there is an issue with Safari ball pokemon I have tried to make a Safari ball Roserade without it's hidden ability born in Galar, from an egg. it's saying that the pokeball is unobtainable, but you can catch it in the Safari zone and transfer it, thank you for everything :)

Documentation

I saw these in GitHub's Explore menu. What do these plugins do?

New PKHeX not working

With the new PKHeX update released on 12/30/20, all other plugins are working EXCEPT Auto-legality mod. Thank you.

Keep getting this error for pkhex raid plugin

Now it is working fine wth start up, but when i go to display raids i get this

Exception Details:
System.MissingMethodException: Method not found: 'Byte PKHeX.Core.RaidSpawnDetail.get_DenType()'.
at PKHeX_Raid_Plugin.RaidParameters..ctor(Int32 index, RaidSpawnDetail detail, Int32 location, Int32 x, Int32 y)
at PKHeX_Raid_Plugin.RaidManager.InitializeDenList(RaidSpawnList8 raids)
at PKHeX_Raid_Plugin.RaidManager..ctor(SaveBlockAccessor8SWSH blocks, GameVersion game, Int32 badges, UInt32 tid, UInt32 sid)
at PKHeX_Raid_Plugin.RaidList..ctor(SaveBlockAccessor8SWSH blocks, GameVersion game, Int32 badges, Int32 tid, Int32 sid)
at PKHeX_Raid_Plugin.RaidPlugin.Open()
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Loaded Assemblies:
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=20.8.7.0, Culture=neutral, PublicKeyToken=null
C:\Users\thehe\OneDrive\Desktop\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

PKHeX_Raid_Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\thehe\OneDrive\Desktop\plugins\PKHeX_Raid_Plugin.dll

Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll

System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll

System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll

User Message:
An unhandled exception has occurred.
You can continue running PKHeX, but please report this error.

unown form - use user selection

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I would like to auto-resolve a "unown" form and not let the plugin choose for me the basic form

Describe the solution you'd like
A clear and concise description of what you want to happen.
To use user selection of form

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
image

errors

Exception Details:
System.AggregateException: One or more errors occurred. ---> System.MissingMethodException: Method not found: 'PKHeX.Core.PIDType PKHeX.Core.PIDIV.get_Type()'.
at PKHeX.Core.AutoMod.APILegality.ApplySetDetails(PKM pk, IBattleTemplate set, ITrainerInfo handler, IEncounterable enc, RegenSet regen)
at PKHeX.Core.AutoMod.APILegality.GetLegalFromTemplate(ITrainerInfo dest, PKM template, IBattleTemplate set, LegalizationResult& satisfied)
at PKHeX.Core.AutoMod.APILegality.<>c__DisplayClass90_0.g__GetLegal|0()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PKHeX.Core.AutoMod.APILegality.<TimeoutAfter>d__92.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at PKHeX.Core.AutoMod.APILegality.GetLegalFromTemplateTimeout(ITrainerInfo dest, PKM template, IBattleTemplate set, LegalizationResult& satisfied)
at PKHeX.Core.AutoMod.Legalizer.TryAPIConvert(ITrainerInfo tr, IBattleTemplate set, PKM template, PKM& pkm)
at PKHeX.Core.AutoMod.Legalizer.GetLegalFromSet(ITrainerInfo tr, IBattleTemplate set, PKM template, LegalizationResult& msg)
at PKHeX.Core.AutoMod.Legalizer.ImportToExisting(SaveFile tr, IReadOnlyList1 sets, IList1 arr, List1& invalidAPISets, List1& timedoutSets, Int32 start, Boolean overwrite)
at AutoModPlugins.ShowdownSetLoader.ImportSetsToBoxes(IReadOnlyList1 sets, Boolean replace) at AutoModPlugins.ShowdownSetLoader.Import(IReadOnlyList1 sets, Boolean skipDialog)
at AutoModPlugins.URLGenning.URLGen(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
---> (Inner Exception #0) System.MissingMethodException: Method not found: 'PKHeX.Core.PIDType PKHeX.Core.PIDIV.get_Type()'.
at PKHeX.Core.AutoMod.APILegality.ApplySetDetails(PKM pk, IBattleTemplate set, ITrainerInfo handler, IEncounterable enc, RegenSet regen)
at PKHeX.Core.AutoMod.APILegality.GetLegalFromTemplate(ITrainerInfo dest, PKM template, IBattleTemplate set, LegalizationResult& satisfied)
at PKHeX.Core.AutoMod.APILegality.<>c__DisplayClass90_0.g__GetLegal|0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at PKHeX.Core.AutoMod.APILegality.d__92.MoveNext()<---

Loaded Assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=21.11.27.0, Culture=neutral, PublicKeyToken=null
D:\下载\PKHeX (211127)\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll

System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll

System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.dll

Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll

System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll

System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.Windows.Forms.resources, Version=4.0.0.0, Culture=zh-Hans, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_zh-Hans_b77a5c561934e089\System.Windows.Forms.resources.dll

System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll

AutoModPlugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
D:\下载\PKHeX (211127)\plugins\AutoModPlugins.dll

PKHeX.Core.Injection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

QRPlugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
D:\下载\PKHeX (211127)\plugins\QRPlugins.dll

PKHeX.Core.AutoMod, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

mscorlib.resources, Version=4.0.0.0, Culture=zh-Hans, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_zh-Hans_b77a5c561934e089\mscorlib.resources.dll

PKHeX.Core.Enhancements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


User Message:
An unhandled exception has occurred.
You can continue running PKHeX, b
20211226133206
ut please report this error.

Smogon LC Import

Currently all smogon-genned Pokemon default to level 100. Little Cup Pokemon should instead be defaulted to Level 5.

This is not an easy fix as the level data does not appear to be contained in the HTML for this, so the format will have to be tied to the set in some form or another in order to fix. I've been unable to do so thus far from my attempts but will open a PR if I am successful.

Legalize crashes on run.

I keep clicking "Legalize Active Pokemon", but every time I do, I get this error:

Exception Details:
System.MissingMethodException: Method not found: 'Void PKHeX.Core.SimpleTrainerInfo..ctor(PKHeX.Core.GameVersion)'.
   at PKHeX.Core.AutoMod.APILegality.GetLegalFromTemplate(ITrainerInfo dest, PKM template, ShowdownSet set, Boolean& satisfied)
   at PKHeX.Core.AutoMod.Legalizer.Legalize(ITrainerInfo tr, PKM pk)
   at AutoModPlugins.LegalizeBoxes.LegalizeActive()
   at AutoModPlugins.LegalizeBoxes.Legalize(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=19.11.25.0, Culture=neutral, PublicKeyToken=null
C:\Users\leobo\Downloads\PKHeX (191125)b\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


AutoModPlugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\leobo\Downloads\PKHeX (191125)b\plugins\AutoModPlugins.dll

PKHeX.Core.AutoMod, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\leobo\Downloads\PKHeX (191125)b\plugins\PKHeX.Core.AutoMod.dll

System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.Design.dll

--------------------
User Message:
An unhandled exception has occurred.
You can continue running PKHeX, but please report this error.

Gen Smogon Sets still not working

Hi, I decided to talk openly about the "Gen Smogon Sets" again since #9 all the back in January, as it still isn't working for me.

Trying to gen Smogon Sets from Gens 1 and 2 results in the following error.

error

Trying to gen Smogon Sets from Gen 3-7 results in this popup, and it then says the sets are genned but they aren't copied to the clipboard.

error_2

I apologize for not being open about this until now.

Official smogon melmetal toxic set not legalizing

Describe the problem
An official smogon melmetal toxic set is not legalizing.

Melmetal @ Leftovers
Ability: Iron Fist
EVs: 252 Atk / 244 SpD / 12 Spe
Adamant Nature

  • Protect
  • Double Iron Bash
  • Earthquake
  • Toxic

https://www.smogon.com/dex/ss/pokemon/melmetal/

Even just trying to inject a set with only toxic and no other moves fails
Doing a google search says that melmetal can learn toxic in lets go.

To Reproduce
Melmetal @ Leftovers
Ability: Iron Fist
EVs: 252 Atk / 244 SpD / 12 Spe
Adamant Nature

  • Protect
  • Double Iron Bash
  • Earthquake
  • Toxic

Expected behavior
I expected the set to legalize

Screenshots

Additional context
Error log is this

[Invalid] [DateTime: 12/31/2020 5:23:27 PM]
Melmetal @ Leftovers
EVs: 252 Atk / 244 SpD / 12 Spe
Ability: Iron Fist
Adamant Nature

  • Protect
  • Double Iron Bash
  • Earthquake
  • Toxic

New GPSS URL

Describe the bug
The generated URL for Pokemons in GPSS has changed (they removed "view" from it). ALM can still upload correctly but you cannot Import or view the uploaded Pokemon.

To Reproduce
Steps to reproduce the behavior:

  1. Try to import any pokemon using the new URL that doesn't have "view" in it
  2. Export to GPSS and try to use the generated URL

Expected behavior
ALM should be able to export/import using the new URLs.

Additional context
When importing:
Exception Details:
System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64String(String s)
at PKHeX.Core.Enhancements.NetUtil.GPSSDownload(Int64 code, String Url)
at AutoModPlugins.GPSSPlugin.GPSSDownload(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Loaded Assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=21.5.22.0, Culture=neutral, PublicKeyToken=null
D:\Users\User1\Downloads\games\pokemon\PKHeX\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Core, Version=21.5.22.0, Culture=neutral, PublicKeyToken=null
D:\Users\User1\Downloads\games\pokemon\PKHeX\PKHeX.Core.dll

System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
D:\Users\User1\Downloads\games\pokemon\PKHeX\System.Memory.dll

System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll

System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
D:\Users\User1\Downloads\games\pokemon\PKHeX\System.Runtime.CompilerServices.Unsafe.dll

System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll

System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.dll

Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
D:\Users\User1\Downloads\games\pokemon\PKHeX\Newtonsoft.Json.dll

System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll

System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll

System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll

PKHeX.Drawing, Version=21.5.22.0, Culture=neutral, PublicKeyToken=null
D:\Users\User1\Downloads\games\pokemon\PKHeX\PKHeX.Drawing.dll

AutoModPlugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
D:\Users\User1\Downloads\games\pokemon\PKHeX\plugins\AutoModPlugins.dll

QRPlugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
D:\Users\User1\Downloads\games\pokemon\PKHeX\plugins\QRPlugins.dll

PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll

WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll

System.IO.Compression.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IO.Compression.FileSystem\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.FileSystem.dll

System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IO.Compression\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.dll


User Message:
An unhandled exception has occurred.
You can continue running PKHeX, but please report this error.

error new plugin update

Exception Details:
System.Runtime.InteropServices.ExternalException (0x800401D0): Requested Clipboard operation did not succeed.
at System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
at PKHeX.WinForms.WinFormsUtil.SetClipboardText(String text)

Loaded Assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=21.11.27.0, Culture=neutral, PublicKeyToken=null
C:\Users\twinf\Downloads\PKHeX (211127)\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll

System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll

System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.dll

Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll

System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll

System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll


User Message:
Unable to set text to Clipboard.

Getting errors when building from source

1>------ Build started: Project: PKHeX.Core.AutoMod, Configuration: Debug Any CPU ------
1>AutoMod\APILegality.cs(34,76,34,93): error CS1729: 'SimpleTrainerInfo' does not contain a constructor that takes 1 arguments
1>AutoMod\TrainerSettings.cs(18,46,18,63): error CS1729: 'SimpleTrainerInfo' does not contain a constructor that takes 1 arguments
1>AutoMod\APILegality.cs(34,76,34,93): error CS1729: 'SimpleTrainerInfo' does not contain a constructor that takes 1 arguments
1>AutoMod\TrainerSettings.cs(18,46,18,63): error CS1729: 'SimpleTrainerInfo' does not contain a constructor that takes 1 arguments
1>Done building project "PKHeX.Core.AutoMod.csproj" -- FAILED.
2>------ Build started: Project: AutoModPlugins, Configuration: Debug Any CPU ------
3>------ Build started: Project: AutoModTests, Configuration: Debug Any CPU ------
2>CSC : error CS0006: Metadata file 'C:\Users\BetaL\Source\Repos\PKHeX-Plugins2\PKHeX.Core.AutoMod\bin\Debug\net46\PKHeX.Core.AutoMod.dll' could not be found
3>CSC : error CS0006: Metadata file 'C:\Users\BetaL\Source\Repos\PKHeX-Plugins2\PKHeX.Core.AutoMod\bin\Debug\netstandard2.0\PKHeX.Core.AutoMod.dll' could not be found
3>Done building project "AutoModTests.csproj" -- FAILED.
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

[Livehax Feature Request] Read Trade Pokemon

Would it be possible to add the ability for livehax to read the Pokemon you are being shown by your partner in a trade? It would make checking raid seeds for others much easier.
Thanks for all your work with the Autolegality mod!

Donphan (M) @ Figy Berry Ability: Sturdy EVs: 252 Atk / 4 Def / 252 SpD Relaxed Nature IVs: 0 Spe - Counter - Gunk Shot - Play Rough - Body Slam

Describe the problem
A clear and concise description of what the bug is. This is not to ask why impossible sets cannot be legalized. That should be obvious.
If you encounter a legal pokemon that timed out or didn't legalize properly, upload the error_log.txt file present in the same directory as PKHeX

To Reproduce
Please provide the exact set that failed to legalize or a PKM file that failed legalization or adequate information so that we may quickly replicate the parsing behavior on our end. Also specify if any trainerdata was being used.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots of Plugin Settings help explain your problem.

Additional context
Add any other context about the problem here.

Access denied

So i downloaded it, unblocked it from the properties folder, ran it, and said access was denied from the folder. I used the exe. plz help

Crash report - latest PKHeX and Auto legality - crashes and won't start

Exception Details:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\Users**\Desktop\PKHeX\plugins\AutoModPlugins.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'file:///C:\Users*
\Desktop\PKHeX\plugins\AutoModPlugins.dll'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__172.MoveNext()
at PKHeX.WinForms.PluginLoader.d__11.MoveNext() at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable`1 collection)
at PKHeX.WinForms.Main.FormLoadPlugins()
at PKHeX.WinForms.Main..ctor()
at PKHeX.WinForms.Program.Main()

WRSCH: registratie van assembly-bindingen is uitgeschakeld.
Als u assembly-bindingsfouten wilt registreren, stelt u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) in op 1.
Opmerking: er is een prestatiestraf gekoppeld aan de registratie van assembly-bindingsfouten.
Als u deze functie wilt uitschakelen, verwijdert u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog].

Loaded Assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=21.11.27.0, Culture=neutral, PublicKeyToken=null
C:\Users******
Naamloos
\Desktop\PKHeX\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll

System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll

System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.dll

Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

System.Windows.Forms.resources, Version=4.0.0.0, Culture=nl, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.Windows.Forms.resources.dll

System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll


User Message:
An unhandled exception has occurred.
PKHeX must now close.

PKHeX latest commit does not work with latest commit of PKHeX-Plugins

It looks like the PKHeX Core Utils has updated the name of one of their functions.
This means updating the two references in PKHEX-Plugins code of files: ModLogic.cs and SimpleEdits.cs.

Before
WurmpleUtil.GetWurmpleEC(wIndex);

Latest
WurmpleUtil.GetWurmpleEncryptionConstant(wIndex);

Thought I would create this issue in case anybody else was trying to build the latest of PKHeX & PKHeX Plugins.

Tried to open a PR to the branch webstercharly and got a 403 on pushing remote.

remote: Permission to architdate/PKHeX-Plugins.git denied to webstercharly.
fatal: unable to access 'https://github.com/architdate/PKHeX-Plugins.git/': The requested URL returned error: 403

Import with Auto-Legality Mod Bug

Using PKHeX Commit 6e8f7fe and PKHeX-Plugins Commit f6972d3 attempting to use the Import with Auto-Legality Mod option to import a set brings up this error message:

Exception.txt

I assume its the same problem as with #12 in that some code needs an update.

Fails to load file when using Google Drive File Stream

I use Google Drive File Stream so that all my installations across computer stay synced. For whatever reason, this project fails to work with Google Drive File Stream. The base PKHeX works just fine. Would you mind looking into this and fixing it when you can?

Exception Details:
System.IO.FileLoadException: Could not load file or assembly 'file:///G:\My Drive\PKHeX\plugins\AutoModPlugins.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///G:\My Drive\PKHeX\plugins\AutoModPlugins.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at PKHeX.WinForms.Main.FormLoadPlugins()
   at PKHeX.WinForms.Main..ctor()
   at PKHeX.WinForms.Program.Main()



Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=19.11.25.0, Culture=neutral, PublicKeyToken=null
G:\My Drive\PKHeX\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


--------------------
User Message:
An unhandled exception has occurred.
PKHeX must now close.

LiveHeX crashing switch

Describe the bug
Sometimes when clicking write current box with LiveHeX, it crashes my switch completely (atmosphere crash)

To Reproduce
Steps to reproduce the behavior:
It seems absolutely random when it crashes, but im just doing write to box injects

Expected behavior
Not to crash

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Pkhex unhandled exception when building with bleeding edge

Describe the bug
PKHeX throws an unhandled exception when using plugins built with bleeding edge

To Reproduce
Steps to reproduce the behavior:
I followed the bleeding edge building steps and got this error

Expected behavior
As i understood it, building with the newest PKHeX core would allow these plugins to work with new PKHeX. My apologies if this is not the case. I don't really know much about this stuff

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Error is

Exception Details:
System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users(my name)\Desktop\PKHeX (201230) (1)\plugins\AutoModPlugins.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Users(my name)\Desktop\PKHeX (201230) (1)\plugins\AutoModPlugins.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at System.Linq.Enumerable.d__172.MoveNext() at PKHeX.WinForms.PluginLoader.<LoadPlugins>d__11.MoveNext()
at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection)
at PKHeX.WinForms.Main.FormLoadPlugins()
at PKHeX.WinForms.Main..ctor()
at PKHeX.WinForms.Program.Main()

Loaded Assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

PKHeX, Version=20.12.30.0, Culture=neutral, PublicKeyToken=null
C:\Users(my name)\Desktop\PKHeX (201230) (1)\PKHeX.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

PKHeX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

PKHeX.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null


User Message:
An unhandled exception has occurred.
PKHeX must now close.

.AbilityNumber Batch Edit Bug

Encountering weird issue with the batch edit .AbilityNumber=4 while using bleeding edge build of PKHex

The way I'm loading the save file is exporting it to my SDcard and loading it up via version 3.7.4 of Checkpoint

After a batch edit this turns all pokemon in PKHex HA which is supposed to happen
But, when I load the save file in game it makes all of the mons have Battle Armour as an ability

I think this may be an issue with something related to the .Ability=4 which would give a mon Battle Armour, maybe the game is reading the information incorrectly.

Double checking and using LiveHex as the other inject method instead shows that within PKHEx the pokemon to have HA but in game they all have battle armour

image

image

Report on results of kwsch's pull requests

I am aware these pull requests aren't quite ready to be submitted to the master branch, but I found some interesting information I thought I'd let you know about, plus I was impatient. I copied the raw files of kwsch's pull requests into my local copy and further edited the SmogonSetLists.cs file to include the Smogon urls for previous generations. Here is the edited file:

SmogonSetList.zip

Testing, I noticed a few quirks. Here they are:

  1. Gen 3 and onward pkm files now collect the appropriate Smogon sets, but Gen 1 and 2 returns the following error. I believe this may be because of things like Abilities being absent from Gen 2, and Held Items being absent from Gen 1:

pkhex error

  1. Species names have a "-" symbol after them e.g. "Venusaur-" instead of "Venusaur".
  2. There is no space between EVs/IVs and the stats e.g. It says "31HP" instead of "31 HP".
  3. Gens 3 and 4 return the ability as "items". Gen 5 and onwards return the appropriate ability correctly.

Cannot generate living dex for HGSS

Describe the bug
The following error appears after a minute or so when trying to generate a living dex for HGSS:
https://pastebin.com/64P5gX6r

To Reproduce
Steps to reproduce the behavior:

  1. Have Blank Save Version set to: HeartGold
  2. Open PKHeX 20210401 with PKHeX-Plugins RC 21.04.01
  3. Click on Tools->Auto-Legality Mod->Generate Living Dex
  4. Wait over a minute
  5. See the error above

Expected behavior
All boxes should be filled with a living Pokédex including all species available in the loaded save file.

Smogon Import Gen 1/2

Currently the Smogon Import for the first two generations sets Stat XP to 0. This should instead be maxed to 65535 as this is the assumed default for all stats in these gens.

Random IVs from ShowdownSet

Describe the problem
I try this c# code to generate pkm from pokemon showdown

using PKHeX.Core;
using PKHeX.Core.AutoMod;
using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string ps2 = @"Stakataka @ Weakness Policy  
Ability: Beast Boost  
EVs: 252 HP / 252 Atk / 4 SpD  
Brave Nature  
IVs: 2 Spe  
- Body Press  
- Gyro Ball  
- Rock Slide  
- Trick Room  
";
            var set = new ShowdownSet(ps2);
            Console.WriteLine(string.Join(",", set.IVs));
            RibbonStrings.ResetDictionary(GameInfo.Strings.ribbons);
            var sav = TrainerSettings.GetSavedTrainerData(8);
            var pkm = sav.GetLegalFromSet(set, out var type);
            Console.WriteLine(string.Join(",", pkm.IVs));
            Console.ReadLine();
        }
    }
}

And found the second console output gave random IVs, like 31,11,31,31,31,26. (first console output is correct, which is 31,31,31,2,31,31)

To Reproduce
I try to generate by myself in PKHex with Auto-Legality Mod (805 - Stakataka - 1695A7B79620.zip)
It seems that IVs are legal:
capture

Expected behavior
If it is legal, the IVs should be 31,31,31,2,31,31

ArgumentNullException when genning Smogon sets

Hi, thanks for #13 and really sorry to bother you again, but now when I try to import a Smogon set it returns the following error:

Exception Details:
System.ArgumentNullException: Value cannot be null.
Parameter name: type
   at System.Reflection.IntrospectionExtensions.GetTypeInfo(Type type)
   at PKHeX.Core.PKMConverter.GetBlank(Type t)
   at PKHeX.Core.PKMConverter.GetBlank(Int32 gen)
   at PKHeX.Core.PKMConverter.GetBlank(Int32 gen, GameVersion ver)
   at PKHeX.Core.AutoMod.Legalizer.GetLegalFromSet(ITrainerInfo tr, ShowdownSet set, LegalizationResult& msg, Boolean allowAPI)
   at PKHeX.Core.AutoMod.Legalizer.ImportToExisting(ITrainerInfo tr, IReadOnlyList`1 sets, IList`1 arr, Int32 start, Boolean overwrite, Boolean allowAPI)
   at AutoModPlugins.ShowdownSetLoader.ImportSetsToBoxes(IReadOnlyList`1 sets, Boolean replace, Boolean allowAPI)
   at AutoModPlugins.ShowdownSetLoader.Import(IReadOnlyList`1 sets)
   at AutoModPlugins.SmogonGenner.GenSmogonSets(PKM rough)
   at AutoModPlugins.SmogonGenner.SmogonGenning(Object sender, EventArgs e)

Level on specific Showdown import not respected

Interesting phenomena:

Importing:

Cobalion
Level: 49
Adamant Nature
– Sacred Sword

Will result in a Level 49 Cobalion with the origin of Black 2 (Level 45 Met).

Importing:

Cobalion
Level: 60
Adamant Nature
– Sacred Sword

Will result in a Level 60 Cobalion with the origin of Ultra Sun (Level 60 Met).

Importing:

Cobalion
Level: 51
Adamant Nature
– Sacred Sword

Will result in a Level 51 Cobalion with the origin of Omega Ruby (Level 50 Met).

BUT importing:

Cobalion
Level: 50
Adamant Nature
– Sacred Sword

Will result in a Level 100 Cobalion with the origin of Omega Ruby (Level 50 Met).

Legalize hangs if two unlegalizable Pokemon attempt to be legalized at the same time.

During the rewrite of CoreConsole to CoreAPI, I ran into the same bug that existed in CoreConsole (which I originally thought was cause by an issue on my end), it seems that trying to legalize two Pokemon that cannot be legalized, at the same time will cause the application/threads to hang and become unresponsive to any further legalization attempts.

Originally I thought if I turned off AllowBruteforce that it would fix it, but the same results happened even if the bool was set to false.

All living dex are fainted when in game boxes

I used the plugin to get a living dex, everything worked fine, but then when I launch the game, all gen pokemons have the status "fainted" in box and can't be revived in pokemon center ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.