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:
- Move a Pokemon from gen 7 to storage
- Move that mon from storage to a gen 4 game
- Observe that the mon's nature has changed
- 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
- 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

- Gen 4 save in question

2. Ditto from ultra moon

3. Nature change from jolly to docile upon move

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

5. Nature changed to bold instead of jolly

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)

7. Set origin game byte to 0C for platinum

8. Nature editing functions normally
Information about your environment
- OS version: Sys 11.17.0-50U
- PKSM version: 10.2.4-b8d735ec
- Entrypoint:
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:
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

2. Ditto from ultra moon
3. Nature change from jolly to docile upon move
4. Attempting to change the example mon's nature back to jolly
5. Nature changed to bold instead of jolly
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)
7. Set origin game byte to 0C for platinum
8. Nature editing functions normally
Information about your environment