ROM Hack Pokémon Sword & Shield (v1.3.0) CFW/EMU Cheat Codes

Th3Alic3

Well-Known Member
OP
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
[Registeel Rematch]
01100000 50B05698 00000000

[Regirock Rematch]
01100000 50B05628 00000000

[Regice Rematch]
01100000 50B05660 00000000

[Regieleki Rematch]
01100000 50B056D0 00000000

[Regigigas Rematch]
01100000 50B05AF8 00000000

Hey @SkyQueen,

I am having the issues with these codes working. One or more of these codes is mapped to the wrong variable address. I tried on Shield both the Registeel & Regirock temples since we have proven across Sword & Shield the variables linked to rebattles:
  • Registeel (EE1FD86E)
  • Regirock (EE3F84E6)
  • Regice (DAB3DD3A)
My Sword save that I am able to test with has like no Story progress. I need to do the find Peon's daughter in the Max Lair then catch the 1st 3 Regi's once. Shouldn't take long. (Right now the codes on Sword are crashing the game but I am assuming/hoping that'd due to the Regi mission not being online yet.)
 
Last edited by Th3Alic3,

OblivionReign

Developer
Developer
Joined
Apr 23, 2016
Messages
2,542
Trophies
2
XP
7,710
Country
Japan
Hey @SkyQueen,

I am having the issues with these codes working. One or more of these codes is mapped to the wrong variable address. I tried on Shield both the Registeel & Regirock temples since we have proven across Sword & Shield the variables linked to rebattles:
  • Registeel (EE1FD86E)
  • Regirock (EE3F84E6)
  • Regice (DAB3DD3A)
My Sword save that I am able to test with has like no Story progress. I need to do the find Peon's daughter in the Max Lair then catch the 1st 3 Regi's once. Shouldn't take long. (Right now the codes on Sword are crashing the game but I am assuming/hoping that'd due to the Regi mission not being online yet.)
Okay and what about Regigigas
 

Th3Alic3

Well-Known Member
OP
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
@SkyQueen,

Gigas works:
[Regigigas Rematch]
01100000 50B05AF8 00000000

I am assuming you are attempting to read the memory alone with the active game to hunt these codes so far. There are so many story Event Flag variables associated with all of these sidequest Legendaries that it's not enough.

Of the 3 Regi's we narrowed down the PKHeX values in:
Registeel (EE1FD86E)
Regirock (EE3F84E6)
Regice (DAB3DD3A)

We had to compare a bunch of different save files. We caught them all individual in different order, we caught them in different pairs, and then caught them all together. It took all of those save comparisons that to isolate the correct variables. T'was a pain.

At least we no longer need Gigas! Excellent on that one!

I am unsure of the process but at least you can always clone a save and the only variable you change in PKHeX is the one then load both of those saves separately. (I hope there's an easy way of comparing two different memory sessions.)

We will continue on hunting down the correct locations in save memory for the other Legendaries. I already have the save compares for Eleki/Drago with @djmocella. I should be getting them the Birds today. So, if I am not to busy after that I will hunt Keldeo for you!! (Cause logically Keldeo & Zacian/Zamazenta are next on the list!)

*fingers crossed* please let v1.3.0 be the FINAL version if there's no more DLC coming!
 
Last edited by Th3Alic3,

BlackTearsX

Active Member
Newcomer
Joined
Nov 4, 2014
Messages
28
Trophies
0
Age
31
XP
1,785
Country
Nepal
Are the shiny codes for e.g. Sword modifiable to adjust the shiny rate to 1/256 instead of forcing shiny encounters? Thanks.
[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
 
Last edited by BlackTearsX,

Th3Alic3

Well-Known Member
OP
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
Are the shiny codes for e.g. Sword modifiable to adjust the shiny rate instead of forcing shiny encounters? Thanks.
Nope. These are programming cheat codes (aka it modifies the portion of the game's code running in RAM.) The cheat code edits the portion of the game's mechanics which generate new Pokémon to be encountered. The edit says: erases all the odds checking and replaces it with "yes, it's Shiny."
 
Last edited by Th3Alic3,
  • Like
Reactions: BlackTearsX

Lascamboiro333

Member
Newcomer
Joined
Apr 14, 2016
Messages
7
Trophies
0
Age
34
XP
252
Country
Mexico
Hi everyone. I have a question, How or Where can i found more codes of "encounter specific pokemon? i'm searching cheats for sword version. Thanks
 

Th3Alic3

Well-Known Member
OP
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
Where to download all this codes
There are so many codes and we are still in the testing stages that users are expected to create cheat their own .TXT files from the list of codes on page 1.

Where can i found more codes of "encounter specific pokemon?
There is no difference between Sword or Shield. The front page has the base version of the code. The 3rd set of digits is the PokéDex in Hexidecimal & the 4th set is the form (value of 0 if it has no forms or for it's base.) (If this makes no sense to you, you should go back a few pages to the person who is trying to map all of Alcremie's forms.)
 

shinwg

Well-Known Member
Member
Joined
Jul 1, 2016
Messages
537
Trophies
0
Age
41
XP
719
Country
United States
There are so many codes and we are still in the testing stages that users are expected to create cheat their own .TXT files from the list of codes on page 1.


There is no difference between Sword or Shield. The front page has the base version of the code. The 3rd set of digits is the PokéDex in Hexidecimal & the 4th set is the form (value of 0 if it has no forms or for it's base.) (If this makes no sense to you, you should go back a few pages to the person who is trying to map all of Alcremie's forms.)

--------------------- MERGED ---------------------------

I meant to say thanks
 

Th3Alic3

Well-Known Member
OP
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
@SkyQueen,
The cheats for Registeel, Regirock, & Regice are definely NOT right. You walk into any building with those cheats on and the game crashes... both in Sword & Shield.

Different spin on the question then: Is it known if the Shiny Charm would stack with multiple in the Inventory? (e.g. through PKHex)
No, the games source code does not check to see "how many" Charms you have in your Bag. It checks: YES/NO can I find a specific charm. So, it would not matter if you have 1 or 20... the result is the same.
 
Last edited by Th3Alic3,
  • Like
Reactions: BlackTearsX

LokeYourLord

Well-Known Member
Member
Joined
Jan 3, 2017
Messages
196
Trophies
0
Age
27
Location
Seoul
XP
696
Country
Korea, South
@SkyQueen,
The cheats for Registeel, Regirock, & Regice are definely NOT right. You walk into any building with those cheats on and the game crashes... both in Sword & Shield.


No, the games source code does not check to see "how many" Charms you have in your Bag. It checks: YES/NO can I find a specific charm. So, it would not matter if you have 1 or 20... the result is the same.

For me the game doesn't crash, but the codes just don't work at all.
 

Th3Alic3

Well-Known Member
OP
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
the codes just don't work at all.
There's been too much pressure for results from @SkyQueen. (I am sorry if I am adding to it.)

The only way for the PKHeX Block Data mapping to be any use to a code hunter is if it's possible to compare an entire dump of memory against another entire dump of memory. This is because you would be trying to find a single variable by loading up two nearly identical save files and trying to discover where in memory there's a single change. (The more that I think about it the more of a needle in a haystack this sounds.)

You would need to first setup the base save:
  1. Inside a Building (in the game) without any Daily Event related characters in the room.
  2. Save knowing the date on you Nintendo Switch console (your Switch must always be on that date during the testing.)
  3. You would want your Switch in Airplane mode
This would reduce the amount of in-game elements which may change other variables.

You would need to clone that save. The clone would be edited with PKHeX but only a single variable.

From there, you would load up each of these saves separately and on each you would need to "download" (some how... cause I don't know if tools exist or this is pipe dream territory.) From there, as mentioned, you would need to compare the two dumps to see how many areas of memory were different hoping it was a low (single digit #) or that only 1 area matched the variable type. (Now, inside a Building in Pokémon this should be only a handful of values at most... this is why a lot of broken codes/glitches crash Pokémon games when you go in/out of a building... they are there own little pocket in memory to help load times when you leave said building.)

@SkyQueen, if what I just described is impossible/the tools don't exist or anything of that nature... I am completely sorry if you felt compelled to go out and hunt from scratch codes every time we found a value. ESPECIALLY booleans!!

(I started to remember hunting codes on the original GameBoy and that was all about changing values in the same game session to which this PKHeX scenario is useless. So, I am really starting to feel like we have been encouraging you do so something which on paper seems easy but might not be possible with the current tools.)
 

OblivionReign

Developer
Developer
Joined
Apr 23, 2016
Messages
2,542
Trophies
2
XP
7,710
Country
Japan
There's been too much pressure for results from @SkyQueen. (I am sorry if I am adding to it.)

The only way for the PKHeX Block Data mapping to be any use to a code hunter is if it's possible to compare an entire dump of memory against another entire dump of memory. This is because you would be trying to find a single variable by loading up two nearly identical save files and trying to discover where in memory there's a single change. (The more that I think about it the more of a needle in a haystack this sounds.)

You would need to first setup the base save:
  1. Inside a Building (in the game) without any Daily Event related characters in the room.
  2. Save knowing the date on you Nintendo Switch console (your Switch must always be on that date during the testing.)
  3. You would want your Switch in Airplane mode
This would reduce the amount of in-game elements which may change other variables.

You would need to clone that save. The clone would be edited with PKHeX but only a single variable.

From there, you would load up each of these saves separately and on each you would need to "download" (some how... cause I don't know if tools exist or this is pipe dream territory.) From there, as mentioned, you would need to compare the two dumps to see how many areas of memory were different hoping it was a low (single digit #) or that only 1 area matched the variable type. (Now, inside a Building in Pokémon this should be only a handful of values at most... this is why a lot of broken codes/glitches crash Pokémon games when you go in/out of a building... they are there own little pocket in memory to help load times when you leave said building.)

@SkyQueen, if what I just described is impossible/the tools don't exist or anything of that nature... I am completely sorry if you felt compelled to go out and hunt from scratch codes every time we found a value. ESPECIALLY booleans!!

(I started to remember hunting codes on the original GameBoy and that was all about changing values in the same game session to which this PKHeX scenario is useless. So, I am really starting to feel like we have been encouraging you do so something which on paper seems easy but might not be possible with the current tools.)
Yeah unfortunately that isn't possible for Pokemon sword and shield unless I use SX OS to dump memory at least with that I can do it offline but with my current tool will I have to be online. But even still the game is memory has thousands of variables that are constantly changing at random
 

Th3Alic3

Well-Known Member
OP
Member
Joined
Jan 3, 2020
Messages
345
Trophies
0
Age
41
XP
859
Country
Canada
@SkyQueen! You just needed to say something!!! We all clearly thought that was possible.

In future, feel free to PM me directly if you are pretty sure a code needs testing (& if you could back up a few different saves with on/off or a few different values then check PKHeX in any of the scenarios were we were able to confirm the save memory location that would help a lot!!)

The simple truth is most of the people watching these threads are like sharks... they think fresh codes are like fresh blood!! I don't want people bombaring you with negativity over codes you know might not work if I can help avoid it.

(There is one could we would love for you to fix when you get the chance. I understand Bools maybe difficult to test however those Int32 are likely a little more manageable. The Path 1 code should be easy enough to search for create a back-up, search for values matching Legendary Pokémon, clone your save 5 or more times and in each use PKHeX to edit the Path 1 to a bunch of different values you could not find in searches.) As always... no rush... and... I want you to know I am being honest in that statement.
 
  • Like
Reactions: SoupD

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
The insta KO codes, can we get them modified so that our pokemon are not 1 hit KO's?

The modified function is "btl::BTL_POKEPARAM::HpMinus"
It's not possible, the reason is simple, all codes that affect the battle automatically work on both sides, there is no way to differentiate between who is affected and who is not. On PC it would be possible to do this by checking the stack for specific values, but on Switch it's not possible, we just don't have the same cheat searching tools (Cheat Engine) as on PC to make it possible.

Are the shiny codes for e.g. Sword modifiable to adjust the shiny rate to 1/256 instead of forcing shiny encounters? Thanks.

It isn't a rate, it is a calculation
Code:
bool __fastcall pml::pokepara::CalcTool::IsRareColor(uint32_t id, uint32_t rnd)
{
  return (id & 0xFFF0 ^ (id >> 16) ^ (rnd >> 16) ^ rnd & 0xFFF0) < 0x10;
}
I could change the "< 0x10" part to a different value, but that would only work on a game with this cheat enabled.
 
  • Like
Reactions: BlackTearsX

BlackTearsX

Active Member
Newcomer
Joined
Nov 4, 2014
Messages
28
Trophies
0
Age
31
XP
1,785
Country
Nepal
I could change the "< 0x10" part to a different value, but that would only work on a game with this cheat enabled.
That would be awesome and not a problem to just keep running the cheat for it.
For me personally a 256 rate would be perfect or something around those lines, thank you!
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
That would be awesome and not a problem to just keep running the cheat for it.
For me personally a 256 rate would be perfect or something around those lines, thank you!
I think you misunderstood me, if the code is deactivated, your pokemon would change back to normal, it is only shiny with the code activated. So for example if you battle a friend, he would not be able to see it shiny.
 
  • Like
Reactions: Otakyon

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: Yes Mien Hair