Jump to content

PKHeX marking Pokemon as illegal after using batch editor


IamAVeryNicePereson

Recommended Posts

This is a really weird problem, so I'll try to explain this as best as I can. Below, I have created a script that'll change the Pokemon in slot one to a Phanpy.

After running the script, all the Pokemon are changed to Phanpy, but all the Pokemon have an illegal mark on all of them. I selected one of the Phanpys and clicked the illegal mark to find out what's wrong, it changes to Legal and shows the checkmark. I thought it was just PKHeX being buggy, so I left it. I injected all the changed Pokemon into my game and tried to wonder trade. For all of them, it showed "There is a problem with this Pokemon".

I go back into PKHeX and select a Phanpy, click the illegal mark so it'll show as "Legal" then replace that Phanpy with the Phanpy that is being marked as illegal. I inject that Phanpy into game and it goes through wonder trade with no problems. 

 

=Box=1
.Species=231
.IsNicknamed=True
.IsNicknamed=False
.IsNicknamed=True
.IsNicknamed=False
.Nature=3
.Ball=5
.Move1=583
.Move2=68
.Move3=420
.Move4=34
.RelearnMoves=$suggest

 

How to replicate problem:

 

1. Download .pk7 file : 546 - Cottonee - 204764F52F21.pk7

2. Place Cottonee in box 1

3. Run the script

4. The cottonee will change into Phanpy, but with an illegal mark on it. Inject this phanpy into game and the game should not allow you to trade it.

5. Do steps 1-3 again, but select the Phanpy, and click the "illegal sign", and it should say it's legal, and the symbol should change to a checkmark. Alternatively, replacing the selected Phanpy in the box again will remove the illegal mark

6. Try wonder trading phanpy and it'll go through

 

Thanks in advance to anyone who can help me.

Link to comment
Share on other sites

... pkhex automatically fixes problems when you save it from tabs

checking legality (from tabs) fixes problems.

If you check legality from the slot, you get this:

Invalid: Ability is not valid for species/form.
===

Valid Move 1: Relearnable Move.
Valid Move 2: Relearnable Move.
Valid Move 3: Relearnable Move.
Valid Move 4: Relearnable Move.
Valid Relearn Move 1: Relearnable Move.
Valid Relearn Move 2: Relearnable Move.
Valid Relearn Move 3: Relearnable Move.
Valid Relearn Move 4: Relearnable Move.

Fishy: TID and SID are 0.
Valid: Able to hatch an Egg at Met Location.
Valid: Nickname matches species name.
Valid: Current level is not below met level.
Valid: All ribbons accounted for.
Valid: Ball possible for species.
Valid: History block is valid.
Valid: Geolocation: Country is in 3DS region.
===

Encounter Type: Egg (Phanpy)
PID Type: None

Working as intended.

Link to comment
Share on other sites

3 hours ago, Kaphotics said:

... pkhex automatically fixes problems when you save it from tabs

checking legality (from tabs) fixes problems.

If you check legality from the slot, you get this:


Invalid: Ability is not valid for species/form.
===

Valid Move 1: Relearnable Move.
Valid Move 2: Relearnable Move.
Valid Move 3: Relearnable Move.
Valid Move 4: Relearnable Move.
Valid Relearn Move 1: Relearnable Move.
Valid Relearn Move 2: Relearnable Move.
Valid Relearn Move 3: Relearnable Move.
Valid Relearn Move 4: Relearnable Move.

Fishy: TID and SID are 0.
Valid: Able to hatch an Egg at Met Location.
Valid: Nickname matches species name.
Valid: Current level is not below met level.
Valid: All ribbons accounted for.
Valid: Ball possible for species.
Valid: History block is valid.
Valid: Geolocation: Country is in 3DS region.
===

Encounter Type: Egg (Phanpy)
PID Type: None

Working as intended.

I didn't know pkhex automatically fixed legality for you. that's awesome, thanks

 

Link to comment
Share on other sites

3 hours ago, Kaphotics said:

... pkhex automatically fixes problems when you save it from tabs

checking legality (from tabs) fixes problems.

If you check legality from the slot, you get this:


Invalid: Ability is not valid for species/form.
===

Valid Move 1: Relearnable Move.
Valid Move 2: Relearnable Move.
Valid Move 3: Relearnable Move.
Valid Move 4: Relearnable Move.
Valid Relearn Move 1: Relearnable Move.
Valid Relearn Move 2: Relearnable Move.
Valid Relearn Move 3: Relearnable Move.
Valid Relearn Move 4: Relearnable Move.

Fishy: TID and SID are 0.
Valid: Able to hatch an Egg at Met Location.
Valid: Nickname matches species name.
Valid: Current level is not below met level.
Valid: All ribbons accounted for.
Valid: Ball possible for species.
Valid: History block is valid.
Valid: Geolocation: Country is in 3DS region.
===

Encounter Type: Egg (Phanpy)
PID Type: None

Working as intended.

Also how would I fix the ability is not valid for species/form? what is pkhex changing that makes it legal?

 

Link to comment
Share on other sites

5 hours ago, IamAVeryNicePereson said:

Also how would I fix the ability is not valid for species/form? what is pkhex changing that makes it legal?

 

Cottonee doesn't have the same abilities as Phanpy. Loading it to tabs has PKHeX refresh its ability.

Set the ability/ability number.

https://github.com/kwsch/PKHeX/blob/999427f484398192b246f06af916e94eaa72bfe0/PKHeX.WinForms/Subforms/PKM Editors/BatchEditor.cs#L611

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...