Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Error converting Primal Groudon #1

Closed
forsureitsme opened this issue Jan 12, 2016 · 3 comments
Closed

Error converting Primal Groudon #1

forsureitsme opened this issue Jan 12, 2016 · 3 comments
Assignees

Comments

@forsureitsme
Copy link

When I tried to convert:

Groudon-Primal @ Red Orb  
Ability: Drought  
Level: 50  
EVs: 4 HP / 252 SpA / 252 Spe  
Modest Nature  
IVs: 0 Atk  
- Earth Power  
- Flamethrower  
- Eruption  
- Protect  

It gives me the following error(in portuguese):

System.ArgumentOutOfRangeException: InvalidArgument=Value '2' não é um valor válido para 'SelectedIndex'.
Nome do parâmetro: SelectedIndex
   em System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   em PKHeX.Form1.Form1_Load(Object sender, EventArgs e)
   em PKHeX.Converter.convert_Click(Object sender, EventArgs e)
   em System.Windows.Forms.Control.OnClick(EventArgs e)
   em System.Windows.Forms.Button.OnClick(EventArgs e)
   em System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.ButtonBase.WndProc(Message& m)
   em System.Windows.Forms.Button.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

@FullLifeGames
Copy link
Owner

When you try this:

Groudon @ Red Orb  
Ability: Drought  
Level: 50  
EVs: 4 HP / 252 SpA / 252 Spe  
Modest Nature  
IVs: 0 Atk  
- Earth Power  
- Flamethrower  
- Eruption  
- Protect  

It works.
I have to see, if I will convert "-Primal" Pokémon to normal Pokémon.

@forsureitsme
Copy link
Author

Well, using the suffix(primal, mega-x/-y) you can create valid teams in Showdown, I see no point in not adding compatibility for this.

Unfortunately, I still don't know how to program in C# to make a PR, but it's simple as getting Pokemon.baseSpecies(or Pokemon.species in case baseSpecies doesn't exist) if you're using the data from Pokemon-Showdown-Client.

@FullLifeGames
Copy link
Owner

Fixed with Commit: 2473678

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants