ROM Hack Pokemon Sword and Shield Cheats/Hacks/PKHex

Th3Alic3

Well-Known Member
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
So.. its basically pointless to have on/off(unless of course you want to change between the different shinies)
You are not quite getting it. A Nintendo Switch game can load anywhere from 0% to 100% of it's programming code into memory. The ON/OFF toggle in your Cheats Menu (called EdiZon if you use Atomosphere) only works for Cheat Codes which edit the portion of game's programming code NOT scanned into the Switch's memory while playing the game.

Toggling ON a cheat edit's the programming code in memory. If you toggle that code to OFF, then the next time that programming code is replaced... it will reset. For games like Pokémon which scan most of the game into memory, don't rescan the installed eShop title or Physical Game card it stays on.

TLDR: There are many games on the Switch with the Toggle works with BUT Pokémon games aren't one of them.

I remember using a cheat where you'd have to hold R in order to catch a shiny...and dont hold R if u want the game to give you a non shiny. is there a way we can use the same form of cheat?
You can add those hold commands to almost every cheat code. (Some specific cheats don't work properly with a HOLD button requirement added due to the timing... ie: the game is loading an element that you are trying to modify BUT while it's loading the game is ignoring button inputs.)

Here's a reference of the buttons which you can also use to change which button is the HOLD button on any Nintendo Switch code:
temp.PNG

The lines are like book ends.
Start with: 8kkkkkkk (replacing the K's with the value that equals the button/combination of buttons)
Ends with: 20000000
 
Last edited by Th3Alic3,

lvlann

Well-Known Member
Newcomer
Joined
Apr 19, 2014
Messages
81
Trophies
0
Age
37
XP
322
Country
United States
You can add those hold commands to almost every cheat code. (Some specific cheats don't work properly with a HOLD button requirement added due to the timing... ie: the game is loading an element that you are trying to modify BUT while it's loading the game is ignoring button inputs.)

Here's a reference of the buttons which you can also use to change which button is the HOLD button on any Nintendo Switch code:
View attachment 232463

The lines are like book ends.
Start with: 8kkkkkkk (replacing the K's with the value that equals the button/combination of buttons)
Ends with: 20000000

So.. for example..
here are the codes
[Shiny Star (v1.3.0)]
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 52000C29
[Shiny Square (v1.3.0)]
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 2A0103E9

In order to have a Square shiny AFTER HOLDING R the code should be:

[Shiny Square (v1.3.0)]
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 2A0103E9
80000080 20000000

??
 

mc711

Well-Known Member
Newcomer
Joined
Mar 28, 2008
Messages
75
Trophies
1
XP
705
Country
United States
So.. for example..
here are the codes
[Shiny Star (v1.3.0)]
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 52000C29
[Shiny Square (v1.3.0)]
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 2A0103E9

In order to have a Square shiny AFTER HOLDING R the code should be:

[Shiny Square (v1.3.0)]
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 2A0103E9
80000080 20000000

??

ill make it easy for you bruh

[shiny square:r star:zr]
04000000 00766844 54000BA0
04000000 00766854 540006C0
04000000 007773C4 2A0103E9
80000080
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 2A0103E9
20000000
80000200
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 52000C29
20000000

hold R for square shiny and ZR for star shiny before encounter

in the future, you can easily make any code trigger based as long as there is a disable code

[code name]
<insert disable code>
8000xxxx
<insert enable code>
20000000


to change the trigger button edit the 8000xxxx part
80000001 A
80000002 B
80000004 X
80000008 Y
80000040 L
80000080 R
80000100 ZL
80000200 ZR
80002000 D-Up
80004000 D-Right
80008000 D-Down
80001000 D-Left
80000400 Plus
80000800 Minus
80000010 Left Stick (L3)
80000020 Right Stick (R3)

if you want dual buttons just add the numbers in hex
80000C00 = Plus + Minus

if you just want a disable shiny code
[x]
04000000 00766844 54000BA0
04000000 00766854 540006C0
04000000 007773C4 2A0103E9
 

Th3Alic3

Well-Known Member
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
The Dynamax Adventures were found to use a SEED.
Pathway Seed (UInt64): 0D74AA40 (PKHeX Key)

It determines almost everything about the Dynamax Adventures. This means for anyone who cares about Pokémon legality: like Raids, the stats are determined by the SEED. This means if you are using any of the Gender/IV/Ability/Nature codes... there will be away to tell you cheated. This means one day GameFreak will impliment those detection methods on Pokémon Home to clear out hacked Pokémon.

Just a reminder: Shiny-ness for Dynamax Adventures has nothing to do with the SEED. It's completely Dynamic. So, you will be able to hunt for the perfect stats but you will still be sitting there with that 1:100 Shiny rate (with the Charm.)

The first tool we are expecting to allow us to view these details calculated from the SEED is the homebrew app: Capture Sight (https://github.com/zaksabeast/CaptureSight). The development team has been tweeting these features are coming in the next update ( ).

Once we have those tools, you will be able to start hunting for SEEDs then with PKHeX you will be able to update those SEEDs in your save!!
 
  • Like
Reactions: femuck

Wooteevar

Active Member
Newcomer
Joined
Dec 25, 2018
Messages
37
Trophies
0
Age
105
XP
364
Country
United States
Once we have those tools, you will be able to start hunting for SEEDs then with PKHeX you will be able to update those SEEDs in your save!!

Would this therefore imply that anything caught legitimately is obviously okay, but anything that may have been cloned from it (say copying the mon and rerolling for shiny status) be flaggable?
 

Th3Alic3

Well-Known Member
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
copying the mon and rerolling for shiny status) be flaggable?
Yes, we will be there in time. At this point in time, the calculations are extremely intense on a computer so programs like PKHeX will not be able to do so automatically without taking hours on an expensive computer.

On that note, we have had the tools to detect this manually (1 Pokémon at a time) since December 2019 for Raid Pokémon:
upload_2020-11-4_19-39-57.png


The community was able to find out how the game used a Den's individual SEED to calculate stats so we could do searches for Shiny, 6 IVs, etc. This also means we were able to do the same but in reverse. Since ALL the stats (PID, IVs, Gender, Nature, Abiltity, Characteristic... and Shiny-ness for regular Raids) are determined by that SEED, we can also calculate the SEED from scanning the Pokémon which shows whether or not it has an "illegal" combination.

The community was able to start to work on the Dynamax Adventure Pokémon in the first few days of the games release. The Dynamax Adventures unfortunately use a COMBINATION of the Pathway SEED (akin to how Raids use their individual Den SEED) and some dynamic calculations which homebrew apps like Capture Sight can scan from the game's memory.

This means that OFW cannot hunt stats... but ALL but Shiny can be hunted by CFW with aid of the app!!

In time, computers will get faster. The long and short of it is that due to technical limitations... a program like PKHeX has to ignore checking this aspect of Legality when you open your save so it doesn't take half a day to open. The unfortunate side is these calculations can be done simple on something like Pokémon Home.

So, it's more likely your Pokémon will be deleted for being cheated from Pokémon Home before this feature can be implimented in PKHeX. (This is essentially same thing for both regular Raids and Adventure Raids.)

... but no worries @Wooteevar, you would never hack a mon in PKHeX!
 
Last edited by Th3Alic3,
  • Like
Reactions: Wooteevar

Wooteevar

Active Member
Newcomer
Joined
Dec 25, 2018
Messages
37
Trophies
0
Age
105
XP
364
Country
United States
Local trade immunity just keep it out of home. Perfect reason to have a hacked switch and an unmodded Mariko. Thanks for the info as always. Your breakdowns are always very thorough and appreciated.
 

m0mij1

Active Member
Newcomer
Joined
May 24, 2020
Messages
30
Trophies
0
Age
32
XP
154
Country
Australia
Sorry if this is a stupid question, but if I generate a Pokemon that's not in SWSH for example "Ariados" in pkhex. Would it actually show in game?
 

Emenaria

Well-Known Member
Member
Joined
Nov 6, 2015
Messages
272
Trophies
0
XP
1,423
Country
Japan
I'm playing the Crown Tundra DLC with a new save data now. I just finished Calyrex's storyline, but the game won't let me fight Calyrex because I haven't beaten the main story. When I go to challenge him I get this: "Calyrex's full power is too much to withstand! You can't even hold on to your Poke Balls! You should come back when you're as strong as the Champion."

Is it possible to bypass it by editing Event Flag with PKHex? I'm guessing that if I could find and edit the Event Flag that dictates if Champion is beaten, I could bypass this.
I found a post explaining how to enable/disable Event Flags in SW/SH, but can't find the block key containing the "Champion beaten" Event Flag. Does anyone know where it's located?
https://projectpokemon.org/home/forums/topic/58060-enablingdisabling-event-flags-in-sword-shield/

I beat the game last year, but accidentally lost my save data a while ago, which is why I had to start with a new save data.
So I really don't want to spend like 20 hours to beat the main story again just so I can continue the DLC.
 

Ultimos54

Well-Known Member
OP
Member
Joined
Aug 27, 2018
Messages
1,270
Trophies
0
XP
3,480
Country
Australia
I don't think flagging that you have beat the champion will work as you will need to do the gym flags aswell probably amongst any other story flags, It doesn't take long to steam roll the game if you just have level 100s on your team with your TID/SID with max friendship, there is the of chance of them hitting themselves but then again they take no damage and just one shot
 

lvlann

Well-Known Member
Newcomer
Joined
Apr 19, 2014
Messages
81
Trophies
0
Age
37
XP
322
Country
United States
ill make it easy for you bruh

[shiny square:r star:zr]
04000000 00766844 54000BA0
04000000 00766854 540006C0
04000000 007773C4 2A0103E9
80000080
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 2A0103E9
20000000
80000200
04000000 00766844 1400003A
04000000 00766854 14000036
04000000 007773C4 52000C29
20000000

hold R for square shiny and ZR for star shiny before encounter

in the future, you can easily make any code trigger based as long as there is a disable code

[code name]
<insert disable code>
8000xxxx
<insert enable code>
20000000


to change the trigger button edit the 8000xxxx part
80000001 A
80000002 B
80000004 X
80000008 Y
80000040 L
80000080 R
80000100 ZL
80000200 ZR
80002000 D-Up
80004000 D-Right
80008000 D-Down
80001000 D-Left
80000400 Plus
80000800 Minus
80000010 Left Stick (L3)
80000020 Right Stick (R3)

if you want dual buttons just add the numbers in hex
80000C00 = Plus + Minus

if you just want a disable shiny code
[x]
04000000 00766844 54000BA0
04000000 00766854 540006C0
04000000 007773C4 2A0103E9
THATS AMAZING INFO. thanks a bunch!
 

Emenaria

Well-Known Member
Member
Joined
Nov 6, 2015
Messages
272
Trophies
0
XP
1,423
Country
Japan
I don't think flagging that you have beat the champion will work as you will need to do the gym flags aswell probably amongst any other story flags, It doesn't take long to steam roll the game if you just have level 100s on your team with your TID/SID with max friendship, there is the of chance of them hitting themselves but then again they take no damage and just one shot
Thanks. In that case, I'm just gonna use this 100% save file and start over the DLC because I'm too lazy to do the main story again ^^;
 
Last edited by Emenaria,

Xjackio

Well-Known Member
Member
Joined
May 21, 2020
Messages
2,154
Trophies
0
Age
38
XP
1,909
Country
Mexico
I'm playing the Crown Tundra DLC with a new save data now. I just finished Calyrex's storyline, but the game won't let me fight Calyrex because I haven't beaten the main story. When I go to challenge him I get this: "Calyrex's full power is too much to withstand! You can't even hold on to your Poke Balls! You should come back when you're as strong as the Champion."

Is it possible to bypass it by editing Event Flag with PKHex? I'm guessing that if I could find and edit the Event Flag that dictates if Champion is beaten, I could bypass this.
I found a post explaining how to enable/disable Event Flags in SW/SH, but can't find the block key containing the "Champion beaten" Event Flag. Does anyone know where it's located?
https://projectpokemon.org/home/forums/topic/58060-enablingdisabling-event-flags-in-sword-shield/

I beat the game last year, but accidentally lost my save data a while ago, which is why I had to start with a new save data.
So I really don't want to spend like 20 hours to beat the main story again just so I can continue the DLC.
https://projectpokemon.org/home/fil...l-shiny-pokemon-few-mythical-pokémon-missing/
Check this save
 

sparcs

Member
Newcomer
Joined
Nov 7, 2020
Messages
6
Trophies
0
Age
32
XP
48
Country
United States
So I have a problem.. I'm trying to start a new game with all 3 starters but I want "legit" ones where they aren't black pokeball icons in my bag. So if I breed them with dittos will they hatch as "legit"?

But then I have to progress a bit in the game whereas I want a fresh playthrough with just those 3.. Is there any way to get egg drops or something? or for me to fly to nursery? or something? I'm not sure how I would do this..
 

Xjackio

Well-Known Member
Member
Joined
May 21, 2020
Messages
2,154
Trophies
0
Age
38
XP
1,909
Country
Mexico
So I have a problem.. I'm trying to start a new game with all 3 starters but I want "legit" ones where they aren't black pokeball icons in my bag. So if I breed them with dittos will they hatch as "legit"?

But then I have to progress a bit in the game whereas I want a fresh playthrough with just those 3.. Is there any way to get egg drops or something? or for me to fly to nursery? or something? I'm not sure how I would do this..
You could
A) use pkex to inject eggs
B) trade eggs with someone
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Well start walking towards them +1