Skip to content

Bug Report - [Gen 4] Nature randomly changes on Pokemon brought in from later generations #1550

Description

@nwgruber

Describe the bug
I moved some Dittos from ultra moon to PKSM storage, then to my copy of soul silver, only to find that all of their natures had changed. When I tried correcting their natures in PKSM, the editor would assign a random nature rather than what I picked. I played the random nature game until it landed on the one I wanted, only to find that it changed again after saving.

Playing with PKSM's hex editor I figured out this behavior is linked to the Pokemon's origin game byte. After changing that on the example Pokemon from 21 (ultra moon) to any gen 1 - 4 game, nature editing worked normally.

If you change the origin game byte of a Pokemon already in gen 4 to a later generation and save, the original nature will be retained. If you attempt to edit the nature in PKSM afterwards, the same issue of PKSM assigning a random nature rather than what you selected occurs. I tried setting the origin game to white and white 2 and the same behavior occurred. I have yet to verify but I would imagine gen 6 origin game values would also be impacted.

To Reproduce
Steps to reproduce the behavior:

  1. Move a Pokemon from gen 7 to storage
  2. Move that mon from storage to a gen 4 game
  3. Observe that the mon's nature has changed
  4. With the gen 4 save still open in PKSM, go to the editor and attempt to change the nature of the mon you just moved
  5. Observe the new nature is different than what you selected

Expected behavior
I would expect nature to be retained when transferring Pokemon from later generations into gen 4, and for nature editing to function regardless of the origin game. If this behavior is due to some limitation of gen 4 itself, I would expect PKSM to change the origin game byte when transferring into gen 4.

Screenshots
IMG_8264.BMP

  1. Gen 4 save in question

IMG_8267.BMP
2. Ditto from ultra moon

IMG_8268.BMP
3. Nature change from jolly to docile upon move

IMG_8272.BMP
4. Attempting to change the example mon's nature back to jolly

IMG_8273.BMP
5. Nature changed to bold instead of jolly

IMG_8274.BMP
6. Example mon in hex, note origin game byte of 21 right above cursor. (unsure what nature was set at the time of this screenshot)

IMG_8277.BMP
7. Set origin game byte to 0C for platinum

IMG_8279.BMP
8. Nature editing functions normally

Information about your environment

  • OS version: Sys 11.17.0-50U
  • PKSM version: 10.2.4-b8d735ec
  • Entrypoint:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions