Jump to content

Sword & Shield (v1.0.0) | Live RAM Encounter Edits


Recommended Posts

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.0.0)
Pokémon Shield 01008db008c2c000 b56ca071216570e8
Pokémon Sword 0100abf008968000 8dafedbb5be81c2c

The following codes are all for Live RAM Encounter Edits:

(New Encountered Wild/Egg/Fossil Pokemon) Shiny Codes
[(v1.0.0) Always Square Shiny Wild/Egg/Fossil Pokemon]
04000000 0076FB74 54000BA0
04000000 0076FB74 1400003A

[(v1.0.0) Always Star Shiny Wild/Egg/Fossil Pokemon]
04000000 0076FB74 54000BA0
04000000 0076FB74 1400003A
04000000 00780464 2A0103E9
04000000 00780464 52000C29

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

[(v1.0.0) Always Male Wild/Egg/Fossil Pokemon]
04000000 00770328 79406261
04000000 00770328 52800001

(New Encountered Wild/Egg/Fossil Pokemon) Nature Codes

[(v1.0.0) Always Adamant Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800061
04000000 0077031C 52800061

[(v1.0.0) Always Bashful Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800241
04000000 0077031C 52800241

[(v1.0.0) Always Bold Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528000A1
04000000 0077031C 528000A1

[(v1.0.0) Always Brave Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800041
04000000 0077031C 52800041

[(v1.0.0) Always Calm Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800281
04000000 0077031C 52800281

[(v1.0.0) Always Careful Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528002E1
04000000 0077031C 528002E1

[(v1.0.0) Always Docile Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528000C1
04000000 0077031C 528000C1

[(v1.0.0) Always Gentle Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528002A1
04000000 0077031C 528002A1
20000000

[(v1.0.0) Always Hardy Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800001
04000000 0077031C 52800001

[(v1.0.0) Always Hasty Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800161
04000000 0077031C 52800161

[(v1.0.0) Always Impish Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800101
04000000 0077031C 52800101

[(v1.0.0) Always Jolly Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528001A1
04000000 0077031C 528001A1

[(v1.0.0) Always Lax Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800121
04000000 0077031C 52800121

[(v1.0.0) Always Lonely Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800021
04000000 0077031C 52800021

[(v1.0.0) Always Mild Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800201
04000000 0077031C 52800201

[(v1.0.0) Always Modest Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528001E1
04000000 0077031C 528001E1

[(v1.0.0) Always Naive Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528001C1
04000000 0077031C 528001C1

[(v1.0.0) Always Naughty Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800081
04000000 0077031C 52800081

[(v1.0.0) Always Quiet Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800221
04000000 0077031C 52800221

[(v1.0.0) Always Quirky Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800301
04000000 0077031C 52800301

[(v1.0.0) Always Rash Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800261
04000000 0077031C 52800261

[(v1.0.0) Always Relaxed Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528000E1
04000000 0077031C 528000E1

[(v1.0.0) Always Sassy Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 528002C1
04000000 0077031C 528002C1

[(v1.0.0) Always Serious Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800181
04000000 0077031C 52800181

[(v1.0.0) Always Timid Nature - Wild/Egg/Fossil Pokemon]
04000000 00770310 79406661
04000000 0077031C 79406661
04000000 00770310 52800141
04000000 0077031C 52800141

(New Encountered Wild/Egg/Fossil Pokemon) Ability Codes
[(v1.0.0) Always has First Ability Wild/Egg/Fossil Pokemon]
04000000 007703C0 3940D262
04000000 007703D8 3940D268
04000000 007703EC 3940D268
04000000 00770400 3940D268
04000000 007703C0 52800002
04000000 007703D8 52800008
04000000 007703EC 52800008
04000000 00770400 52800008

[(v1.0.0) Always has Second Ability Wild/Egg/Fossil Pokemon]
04000000 007703C0 3940D262
04000000 007703D8 3940D268
04000000 007703EC 3940D268
04000000 00770400 3940D268
04000000 007703C0 52800022
04000000 007703D8 52800028
04000000 007703EC 52800028
04000000 00770400 52800028

[(v1.0.0) Always has Hidden Ability Wild/Egg/Fossil Pokemon]
04000000 007703C0 3940D262
04000000 007703D8 3940D268
04000000 007703EC 3940D268
04000000 00770400 3940D268
04000000 007703C0 52800042
04000000 007703D8 52800048
04000000 007703EC 52800048
04000000 00770400 52800048

(New Encountered Wild/Egg/Fossil Pokemon) IV Codes
[(v1.0.0) Always All 6 IVs are “Best” Wild/Egg/Fossil Pokemon]
04000000 0076FD58 D503201F
04000000 0076FDE0 7100199F

 

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
Link to comment
Share on other sites

  • 3 years later...

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