Jump to content

Showdown Template Import issues


Odaxis

Recommended Posts

Hey folks. Not sure if this is an import bug or if need to edit something before importing. Also, I apologize if this is the wrong place to post this.

Currently, I cannot import anything with a special character in its name.

for example: Mr. Mime (Not sure if it's the . or the space in the name that causes this.)

Mr. Mime @ Life Orb

Ability: Soundproof

EVs: 252 SpA / 4 SpD / 252 Spe

Timid Nature

- Psychic

- Thunderbolt

- Energy Ball

- Protect

This is the error i get.

GwkhkBX.png

and these are the error details.

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.IndexOutOfRangeException: Index was outside the bounds of the array.

at PKHeX.PKX.Simulator.Set..ctor(String input, String[] species, String[] items, String[] natures, String[] moves, String[] abilities)

at PKHeX.Form1.getShowdownSet()

at PKHeX.Form1.updateNickname(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Label.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

----------------------------------------

PKHeX

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Users/Odaxis/Desktop/PKHeX%20Main.exe

----------------------------------------

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Data

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Numerics

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

Also cannot seem to get the move King's Shield to populate when trying to add it to Aegislash, it just remains blank.

Edited by Odaxis
Clarification
Link to comment
Share on other sites

Oh haha.. I was looking for a solution myself and when I refreshed the github I saw you got it already Kaphotics. Looks like your fix is more universal though :P!


This is part of what I was writing up as a reply before:

It's not the most "beautiful" code, but placing this under line 1724

  Species = Array.IndexOf(species, spec.Replace(" ", ""));

should fix it:

                                        if (ld[0].Equals("Mr. Mime"))                                        {
                                           Species = Array.IndexOf(species, spec);
                                       }

Link to comment
Share on other sites

  • 2 weeks later...
If you have a copy of microsoft visual studio you can download the project from the github and compile it yourself. Otherwise, learn that patience is a virtue..

No Microsoft Visual Studio, so I can't compile it. I was only asking for an update, not demanding an answer. Knowledge is the cure for ignorance. Just trying to cure myself ;)

Link to comment
Share on other sites

  • 1 month later...
Fixed in the latest commit.

Thanks for reporting :)

Hey there. I'm not sure if i did it correctly or not but i downloaded the latest Source code from your GitHub page, compiled it (i think correctly) in MS Visual Studio and am still having this issue.

From what i can tell there is a difference in the ' in the ability King's Shield

- King's Shield (from showdown and Does NOT work)

- King’s Shield (from PKHeX and Does work)

King's Rock (from showdown and Does NOT work)

King’s Rock (from PKHeX and Does work)

The issue with Mr. Mime seems to be fixed.

Link to comment
Share on other sites

Hey there. I'm not sure if i did it correctly or not but i downloaded the latest Source code from your GitHub page, compiled it (i think correctly) in MS Visual Studio and am still having this issue.

From what i can tell there is a difference in the ' in the ability King's Shield

- King's Shield (from showdown and Does NOT work)

- King’s Shield (from PKHeX and Does work)

King's Rock (from showdown and Does NOT work)

King’s Rock (from PKHeX and Does work)

The issue with Mr. Mime seems to be fixed.

Fixed in the latest commit.

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

Not really sure if this is a bug or not. thinking so.

Filling out a request for someone who wanted a Jolteon with a nickname of Vaporeon with the following template

Vaporeon (Jolteon) (F) @ Aspear Berry

Ability: Volt Absorb

Shiny: Yes

EVs: 252 SpA / 4 SpD / 252 Spe

Timid Nature

- Thunderbolt

- Hyper Voice

- Hidden Power [Dragon]

- Heal Bell

results in a Vaporeon with a nickname of Jolteon

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

It seems like PKHeX is not accepting "forms" of Pokemon from the Showdown template generator if they have a nickname.

Without a nickname they inject fine.

With a nickname and without a "form" also injects fine.

This was attempted with the latest build as of yesterday. No error was given. just simply didn't do anything.

This Deoxys template failed:

Deo-Bae (Deoxys-Attack) @ Rocky Helmet

Ability: Pressure

Shiny: Yes

EVs: 68 Atk / 252 SpA / 188 Spe

Naive Nature

- Focus Blast

- Dark Pulse

- Extreme Speed

- Psychic

This 2nd template worked

Deo-Bae (Deoxys) @ Rocky Helmet

Ability: Pressure

Shiny: Yes

EVs: 68 Atk / 252 SpA / 188 Spe

Naive Nature

- Focus Blast

- Dark Pulse

- Extreme Speed

- Psychic

Also

This Castform was also attempted and provided an error.

Blueberry (Castform-Rainy) @ Charcoal

Ability: Forecast

Shiny: Yes

EVs: 252 Atk / 4 SpA / 252 Spe

Hasty Nature

- Avalanche

- Blizzard

- Body Slam

- Clear Smog

Error:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.IndexOutOfRangeException: Index was outside the bounds of the array.

at PKHeX.PKX.Simulator.Set..ctor(String input, String[] species, String[] items, String[] natures, String[] moves, String[] abilities)

at PKHeX.Form1.getShowdownSet()

at PKHeX.Form1.updateNickname(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Label.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

----------------------------------------

PKHeX

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/Users/Odaxis/Desktop/PKHeX%20(2).exe

----------------------------------------

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Data

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Numerics

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

Link to comment
Share on other sites

It seems like PKHeX is not accepting "forms" of Pokemon from the Showdown template generator if they have a nickname.

Without a nickname they inject fine.

With a nickname and without a "form" also injects fine.

This was attempted with the latest build as of yesterday. No error was given. just simply didn't do anything.

This Deoxys template failed:

Deo-Bae (Deoxys-Attack) @ Rocky Helmet

Ability: Pressure

Shiny: Yes

EVs: 68 Atk / 252 SpA / 188 Spe

Naive Nature

- Focus Blast

- Dark Pulse

- Extreme Speed

- Psychic

This 2nd template worked

Deo-Bae (Deoxys) @ Rocky Helmet

Ability: Pressure

Shiny: Yes

EVs: 68 Atk / 252 SpA / 188 Spe

Naive Nature

- Focus Blast

- Dark Pulse

- Extreme Speed

- Psychic

Also

This Castform was also attempted and provided an error.

Blueberry (Castform-Rainy) @ Charcoal

Ability: Forecast

Shiny: Yes

EVs: 252 Atk / 4 SpA / 252 Spe

Hasty Nature

- Avalanche

- Blizzard

- Body Slam

- Clear Smog

Fixed in latest commit.

Thanks as usual :)

Link to comment
Share on other sites

  • 1 month later...

Update on the issue..

For some reason Showdown now adds 2 spaces on each line at the end. It would be very much appreciated if PKHeX can be updated to reflect this change on Pokemon Showdown.

eLIlSgN.png

Credits to @RustInPeace for figuring it out.... Details are easily overlooked is proven again.

Old issue:

For some reason this suddenly happens in both the latest stable release on this forum as well as the latest release on your github @Kaphotics... And I have honestly no clue why. It used to work perfectly fine, but regardless of set it just doesn't work anymore. I've also asked friends on their test feedback and they get the same error so it's not just me I suppose.

Sets that I have tried to import (all failed):

Edit: I did try more than just these 4 - but 4 will suffice to show.

Tweety (Taillow) (M) @ Focus Sash  
Ability: Scrappy  
Level: 1  
Shiny: Yes  
EVs: 252 Atk / 4 SpD / 252 Spe  
Jolly Nature  
- Quick Attack  
- Endeavor  
- Protect  
- Pursuit

Windwaker (Meloetta) @ Choice Specs  
Ability: Serene Grace  
Shiny: Yes  
EVs: 4 Def / 252 Spe  
Timid Nature  
- Hyper Voice  
- Psychic  
- Shadow Ball  
- U-turn

MyScarfHax (Cinccino) (F) @ King's Rock  
Ability: Skill Link  
Shiny: Yes  
EVs: 6 HP / 252 Atk / 252 Spe  
Jolly Nature  
- Rock Blast  
- Tail Slap  
- Bullet Seed  
- U-turn

VETE AL DIABLO (Spiritomb) (M) @ Life Orb  
Ability: Infiltrator  
Shiny: Yes  
EVs: 252 HP / 252 Atk / 6 Def  
Adamant Nature  
- Sucker Punch  
- Foul Play  
- Pursuit  
- Will-O-Wisp

Gengar (M) @ Black Sludge  
Ability: Levitate  
Shiny: Yes  
EVs: 28 HP / 148 SpA / 80 SpD / 252 Spe  
Timid Nature  
- Substitute  
- Shadow Ball  
- Will-O-Wisp  
- Disable

And below the thrown exception:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.


************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PKHeX.PKX.Simulator.Set..ctor(String input, String[] species, String[] items, String[] natures, String[] moves, String[] abilities)
  at PKHeX.Form1.getShowdownSet()
  at PKHeX.Form1.updateNickname(Object sender, EventArgs e)
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.Label.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)




************** Loaded Assemblies **************
mscorlib
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.96.0 built by: NETFXREL2STAGE
   CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
PKHeX
   Assembly Version: 1.0.0.0
   Win32 Version: 1.0.0.0
   CodeBase: file:///D:/UserFiles/Pokemon%20Related/PKHaX/PKHeX.exe
----------------------------------------
System.Core
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.79.0 built by: NETFXREL2
   CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.79.0 built by: NETFXREL2
   CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.79.0 built by: NETFXREL2
   CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.79.0 built by: NETFXREL2
   CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.79.0 built by: NETFXREL2
   CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.79.0 built by: NETFXREL2
   CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.79.0 built by: NETFXREL2
   CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------


************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.


For example:


<configuration>
   <system.windows.forms jitDebugging="true" />
</configuration>


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Edited by Favna
Update and rewording
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...