architdate / pkhex-plugins Goto Github PK
View Code? Open in Web Editor NEWPlugins for PKHeX
License: MIT License
Plugins for PKHeX
License: MIT License
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
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
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
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.
With the new PKHeX update released on 12/30/20, all other plugins are working EXCEPT Auto-legality mod. Thank you.
On the latest commits when using Import with Auto-Legality Mod to import a set the plugin instead gives an error.
Import with Auto Legality Mod error.txt
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.
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.
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!
Can I have an independent setmatchingballs function.Sorry, my English is terrible
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.Task
1.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, IList
1 arr, List1& invalidAPISets, List
1& timedoutSets, Int32 start, Boolean overwrite)
at AutoModPlugins.ShowdownSetLoader.ImportSetsToBoxes(IReadOnlyList1 sets, Boolean replace) at AutoModPlugins.ShowdownSetLoader.Import(IReadOnlyList
1 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()<---
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
ut please report this error.
How do I make the Chinese language version
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:
Expected behavior
All boxes should be filled with a living Pokédex including all species available in the loaded save file.
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.
Hello author, pkhex has been updated to 12.30, and the plug-in is also invalid. I hope to update it,thank
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.
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
When attempting to legalize a GBPKM that is flagged, ALM sets all EVs to 252 if they are greater than such. A similar behavior appears to be blocking the behavior addressed by kwsch/PKHeX@0111c3d as imports from Smogon with ALM still generate with 0 EVs, versus Showdown clipboard entries which correctly generate with max Stat XP.
Test case:
Flamethrower Dragonite.zip
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.
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.WhereEnumerableIterator
1.MoveNext()
at System.Linq.Enumerable.d__172.MoveNext() at PKHeX.WinForms.PluginLoader.<LoadPlugins>d__1
1.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()
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.
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)
I'm not actually sure what the solution itself is, but i assume it's the sln file
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 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:
Testing, I noticed a few quirks. Here they are:
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
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.
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 ...
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
Cobalt, terrakion and virizion cannot legally flash, and cannot change their bid, Sid and trainer names
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.
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.
When having Xoroshiro disabled, it only affects raids. Your TID and SID still gets randomized when requesting a shiny from an egg.
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 ==========
I would like to ask how to change the BID, SID, name and pokemon language
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.
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.
I apologize for not being open about this until now.
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 :)
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:
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)
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.
Officially available at https://www.myget.org/F/projectpokemon/api/v3/index.json. See kwsch/PKHeX#2158.
The auto legality mod isn't working with the latest version of Pkhex that's released yesterday. Can you please fix this?
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
try to legalize everything in the active box or try to legalize all boxes,Zapdos,Moltres,Articuno,Terrakion,Virizion,Cobalion and Keldeo is Fainting
I've tried with numerous pokemon and it does not work.It worked on last build but not this one
PLEASE FIX
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).
I saw these in GitHub's Explore menu. What do these plugins do?
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__17
2.MoveNext()
at PKHeX.WinForms.PluginLoader.d__11.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()
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].
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******
\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.
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.
We hope to add some plug-in functions, such as one button self ID, one key random PID, including star flash and square flash, and add one key move record and one button legal medal
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)
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.
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:
Expected behavior
If it is legal, the IVs should be 31,31,31,2,31,31
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.