Jump to content

Recommended Posts

Posted

Hello all,

For those who do not know me, I studied under a video game development program in the early 2000's. While I did not end up pursuing development as a career, I still actively apply the knowledge to trying to understand what's under the hood of the franchise that first made me want to go into video game development: Pokémon.

The Atmosphere CFW OS for CFW uses a built-in cheat app called Edizon which means every single CFW Switch owner with Atmosphere OS are forced to use it. The homebrew app Edizon does not allow for a manual ON/OFF of individual codes which means people interested in experimenting have to maintain their own database of codes and go through the hassle of deleting and re-adding codes to the .TXT file for the codes for the game on a FREQUENT basis.

I would like to premise this thread with the following: I am not a code hunter. I simply want to share the compiled database of codes with insight so that the community can continue to better its understanding of the game's internal mechanics.

 

Game TitleID BuildID (for v1.1.0)
Pokémon Shield 01008db008c2c000 bdd027f80fab4ef4
Pokémon Sword 0100abf008968000 490648316cc1ccdc

The following codes are all for Live RAM Encounter Edits:

(New Encountered Wild/Egg/Fossil Pokemon) Shiny Codes
[(v1.1.0) Always Square Shiny Wild/Egg/Fossil Pokemon]
04000000 0076FD94 1400003A
04000000 0076FDA4 14000036
04000000 00780684 2A0103E9
 
[(v1.1.0) Always Star Shiny Wild/Egg/Fossil Pokemon]
04000000 0076FD94 1400003A
04000000 0076FDA4 14000036
04000000 00780684 52000C29

(New Encountered Wild/Egg/Fossil Pokemon) Gender Codes
[(v1.1.0) Always Female Wild/Egg/Fossil Pokemon]
04000000 00770548 79406261
04000000 00770548 52800021

[(v1.1.0) Always Male Wild/Egg/Fossil Pokemon]
04000000 00770548 79406261
04000000 00770548 52800001
 
[(v1.1.0) Always Genderless Wild/Egg/Fossil Pokemon]
04000000 00770548 79406261
04000000 00770548 52800041

(New Encountered Wild/Egg/Fossil Pokemon) Nature Codes
[(v1.1.0) Always Adamant Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800061
04000000 0077053C 52800061
 
[(v1.1.0) Always Bashful Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800241
04000000 0077053C 52800241
 
[(v1.1.0) Always Bold Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528000A1
04000000 0077053C 528000A1
 
[(v1.1.0) Always Brave Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800041
04000000 0077053C 52800041
 
[(v1.1.0) Always Calm Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800281
04000000 0077053C 52800281
 
[(v1.1.0) Always Careful Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528002E1
04000000 0077053C 528002E1
 
[(v1.1.0) Always Docile Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528000C1
04000000 0077053C 528000C1
 
[(v1.1.0) Always Gentle Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528002A1
04000000 0077053C 528002A1
 
[(v1.1.0) Always Hardy Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800001
04000000 0077053C 52800001
 
[(v1.1.0) Always Hasty Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800161
04000000 0077053C 52800161
 
[(v1.1.0) Always Impish Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800101
04000000 0077053C 52800101
 
[(v1.1.0) Always Jolly Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528001A1
04000000 0077053C 528001A1
 
[(v1.1.0) Always Lax Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800121
04000000 0077053C 52800121
 
[(v1.1.0) Always Lonely Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800021
04000000 0077053C 52800021
 
[(v1.1.0) Always Mild Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800201
04000000 0077053C 52800201
 
[(v1.1.0) Always Modest Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528001E1
04000000 0077053C 528001E1
 
[(v1.1.0) Always Naive Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528001C1
04000000 0077053C 528001C1
 
[(v1.1.0) Always Naughty Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800081
04000000 0077053C 52800081
 
[(v1.1.0) Always Quiet Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800221
04000000 0077053C 52800221
 
[(v1.1.0) Always Quirky Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800301
04000000 0077053C 52800301
 
[(v1.1.0) Always Rash Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800261
04000000 0077053C 52800261
 
[(v1.1.0) Always Relaxed Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528000E1
04000000 0077053C 528000E1
 
[(v1.1.0) Always Sassy Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 528002C1
04000000 0077053C 528002C1
 
[(v1.1.0) Always Serious Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800181
04000000 0077053C 52800181
 
[(v1.1.0) Always Timid Nature Wild/Egg/Fossil Pokemon]
04000000 00770530 79406661
04000000 0077053C 79406661
04000000 00770530 52800141
04000000 0077053C 52800141

(New Encountered Wild/Egg/Fossil Pokemon) Ability Codes
[(v1.1.0) Always has First Ability Wild/Egg/Fossil Pokemon]
04000000 007705E0 3940D262
04000000 007705F8 3940D268
04000000 0077060C 3940D268
04000000 00770620 3940D268
04000000 007705E0 52800002
04000000 007705F8 52800008
04000000 0077060C 52800008
04000000 00770620 52800008
 
[(v1.1.0) Always has Second Ability Wild/Egg/Fossil Pokemon]
04000000 007705E0 3940D262
04000000 007705F8 3940D268
04000000 0077060C 3940D268
04000000 00770620 3940D268
04000000 007705E0 52800022
04000000 007705F8 52800028
04000000 0077060C 52800028
04000000 00770620 52800028
 
[(v1.1.0) Always has Hidden Ability Wild/Egg/Fossil Pokemon]
04000000 007705E0 3940D262
04000000 007705F8 3940D268
04000000 0077060C 3940D268
04000000 00770620 3940D268
04000000 007705E0 52800042
04000000 007705F8 52800048
04000000 0077060C 52800048
04000000 00770620 52800048
 

(New Encountered Wild/Egg/Fossil Pokemon) IV Codes
[(v1.1.0) Always "Best" Rated Hit Point (HP) IV Wild/Egg/Fossil Pokemon]
04000000 00770594 528003E1
 
[(v1.1.0) Always "No Good" Rated Hit Point (HP) IV Wild/Egg/Fossil Pokemon]
04000000 00770594 528003E0
 
[(v1.1.0) Always "Best" Rated Attack IV Wild/Egg/Fossil Pokemon]
04000000 007705A0 528003E1
 
[(v1.1.0) Always "No Good" Rated Attack IV Wild/Egg/Fossil Pokemon]
04000000 007705A0 528003E0
 
[(v1.1.0) Always "Best" Rated Defense IV Wild/Egg/Fossil Pokemon]
04000000 007705AC 528003E1
 
[(v1.1.0) Always "No Good" Rated Defense IV Wild/Egg/Fossil Pokemon]
04000000 007705AC 528003E0
 
[(v1.1.0) Always "Best" Rated Special Attack IV Wild/Egg/Fossil Pokemon]
04000000 007705B8 528003E1
 
[(v1.1.0) Always "No Good" Rated Special Attack IV Wild/Egg/Fossil Pokemon]
04000000 007705B8 528003E0
 
[(v1.1.0) Always "Best" Rated Special Defense IV Wild/Egg/Fossil Pokemon]
04000000 007705C4 528003E1
 
[(v1.1.0) Always "No Good" Rated Special Defense IV Wild/Egg/Fossil Pokemon]
04000000 007705C4 528003E0
 
[(v1.1.0) Always "Best" Rated Speed IV Wild/Egg/Fossil Pokemon]
04000000 007705D0 528003E1
 
[(v1.1.0) Always "No Good" Rated Speed IV Wild/Egg/Fossil Pokemon]
04000000 007705D0 528003E0
 

The result of these codes being hunted has allowed us to establish that there is ONLY a single module in the game which is used to determine all the random values for encountered Pokémon. For each of the individual variables which make up a Pokémon (in lamens: each of the individual fields you see in PKHeX), the module passes the data known/pre-determined elements to their respective space in MEMORY and for any blanks/missing elements those are calculated and stored into their respective space in MEMORY.

The module does NOT know when Live RAM Encounter Edits (cheats) are active and as such will not attempt to correct any mistakes. For example: applying a Gender to a Genderless Pokémon. Sword & Shield makes it abondantly clear when huge mistakes are made but replacing the 2D sprite with a black PokéBall symbol.

The module is used for all NPC Pokémon, Wild Pokémon, in-game gift Pokémon (including Fossil), and Eggs (obviously at time of receiving the egg.) This same module is used for Mystery Gift Pokémon as they are being received. Finally, this same module is used for all non-player Pokémon: both the NPC's Pokémon when less than four humans as well as the Raid Pokémon itself. (Note: due to checks between turns if any of the Pokémon in the Raid become abondantly illegal the Raid will crash 100% for the non-host and most of the time for the host.)

Live RAM Encounter Edits (cheats) both can create LEGAL and ILLEGAL Pokémon. The use of Live RAM Encounter Edits (cheats) serves to bypass randomization to reduce the number of times you need to encounter the same Pokémon to get the desired result. It's the "whole infinite monkeys with typewriters" factor: with enough time you would get the desired result so this allows you to jump to that desired result. However, it's only the game breaking Live RAM Encounter Edits (cheats) which are highlighted a black PokéBall symbol. The game doesn't know which Hidden Abilities are LEGAL and which ones are ILLEGAL.

  • Like 1

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