ROM Hack Pokemon Sword and Shield Cheats/Hacks/PKHex

rocky_2016

Well-Known Member
Newcomer
Joined
Nov 4, 2016
Messages
98
Trophies
0
XP
175
Country
why you guys care legal pkm or not? are you guys about to go online? just ask
also, is it able to use shield cheats for sword and vice versa?
 
Last edited by rocky_2016,

blackmoon92

Well-Known Member
Newcomer
Joined
Nov 14, 2019
Messages
91
Trophies
0
Age
25
XP
193
Country
France
Here's a slightly more convenient Shiny code (again, Sword only):
Code:
[Wild Pokémon Always Shiny (Hold R)]
04000000 0076FB74 54000BA0
80000080
04000000 0076FB74 1400003A
20000000
This prevents Pokémon in raid battles being shiny or needing to open the cheat menu every time you want to turn it on or off. Just hold R before running into the wild Pokémon and it'll be shiny.
compatible with sword and shield
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
Shield has the same address, so code should work in both versions:

Code:
.text:000000000076FB6C E9 83 40 B2                 MOV             X9, #0x1FFFFFFFF
.text:000000000076FB70 1F 01 09 EB                 CMP             X8, X9
.text:000000000076FB74 A0 0B 00 54                 B.EQ            loc_76FCE8 ; if Pokemon ID == 0x1FFFFFFFF -> force non shiny
.text:000000000076FB78
.text:000000000076FB78             loc_76FB78                              ; CODE XREF: sub_76FAD0+214↓j
.text:000000000076FB78 A9 FF DF 92+                MOV             X9, #0x2FFFFFFFF
.text:000000000076FB80 1F 01 09 EB                 CMP             X8, X9
.text:000000000076FB84 C0 06 00 54                 B.EQ            loc_76FC5C ; if Pokemon ID == 0x2FFFFFFFF -> force shiny
.text:000000000076FB88 E9 87 40 B2                 MOV             X9, #0x3FFFFFFFF
.text:000000000076FB8C 1F 01 09 EB                 CMP             X8, X9
.text:000000000076FB90 81 0D 00 54                 B.NE            loc_76FD40 ; if Pokemon ID == 0x3FFFFFFFF -> do normal shiny roll

Why do we need a shiny [off] code? Why not just disable the cheat after use?
You can't disable assembly patch codes, they are permanent until you use an "off" code.

Thank you.

Is it Possible for you to make a 500 Catches Code for the Dex and a 50 Actual Pokemon Chain code?
If i find that in code sure, but i don't have much time right now to go through thousands of assembly code lines.

strange, the code SciresM posted ( ) leads to "0x12FA460"
and this functions calculates the maximum capture level:

Code:
  badge_count = Player::GetBadgeCount(v0);
  if ( (unsigned __int8)badge_count <= 7u )
    result = (unsigned int)(5 * badge_count + 20);
  else
    result = 100LL;
  return result;
but changing this code does nothing ingame, still can't catch higher level mons.
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,008
Trophies
2
Age
36
XP
4,570
Country
United States
Shield has the same address, so code should work in both versions:

Code:
.text:000000000076FB6C E9 83 40 B2                 MOV             X9, #0x1FFFFFFFF
.text:000000000076FB70 1F 01 09 EB                 CMP             X8, X9
.text:000000000076FB74 A0 0B 00 54                 B.EQ            loc_76FCE8 ; if Pokemon ID == 0x1FFFFFFFF -> force non shiny
.text:000000000076FB78
.text:000000000076FB78             loc_76FB78                              ; CODE XREF: sub_76FAD0+214↓j
.text:000000000076FB78 A9 FF DF 92+                MOV             X9, #0x2FFFFFFFF
.text:000000000076FB80 1F 01 09 EB                 CMP             X8, X9
.text:000000000076FB84 C0 06 00 54                 B.EQ            loc_76FC5C ; if Pokemon ID == 0x2FFFFFFFF -> force shiny
.text:000000000076FB88 E9 87 40 B2                 MOV             X9, #0x3FFFFFFFF
.text:000000000076FB8C 1F 01 09 EB                 CMP             X8, X9
.text:000000000076FB90 81 0D 00 54                 B.NE            loc_76FD40 ; if Pokemon ID == 0x3FFFFFFFF -> do normal shiny roll


You can't disable assembly patch codes, they are permanent until you use an "off" code.


If i find that in code sure, but i don't have much time right now to go through thousands of assembly code lines.

strange, the code SciresM posted (https://twitter.com/SciresM/status/1194868810357981184) leads to "0x12FA460"
and this functions calculates the maximum capture level:

Code:
  badge_count = Player::GetBadgeCount(v0);
  if ( (unsigned __int8)badge_count <= 7u )
    result = (unsigned int)(5 * badge_count + 20);
  else
    result = 100LL;
  return result;
but changing this code does nothing ingame, still can't catch higher level mons.
5 * badge_count + 20, thank you, that's easier to remember. There's a few ways to alter this. Either have it always return 100LL, have badge_count = 8u, replace the if conditional with a false, which way did you try?
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
5 * badge_count + 20, thank you, that's easier to remember. There's a few ways to alter this. Either have it always return 100LL, have badge_count = 8u, replace the if conditional with a false, which way did you try?


i did change
.text:00000000012FA4C4 00 81 89 1A CSEL W0, W8, W9, HI
into
.text:00000000012FA4C4 00 81 88 1A CSEL W0, W8, W8, HI

W8 = 100
W9 = 5 * badge_count + 20
W0 = result
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,008
Trophies
2
Age
36
XP
4,570
Country
United States
i did change
.text:00000000012FA4C4 00 81 89 1A CSEL W0, W8, W9, HI
into
.text:00000000012FA4C4 00 81 88 1A CSEL W0, W8, W8, HI

W8 = 100
W9 = 5 * badge_count + 20
W0 = result
Is it perhaps used to determine the maximum level that shiny Pokémon can be? Can you use this in combo with the Shiny code to see if a Pokémon you would;dn't normally be able to catch turns shiny?
 

blackmoon92

Well-Known Member
Newcomer
Joined
Nov 14, 2019
Messages
91
Trophies
0
Age
25
XP
193
Country
France
I translated into french and compile the cheat code available on these pages into an archive for sx os please test them and say if a code does not work

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

I have one but it only have one badge and now I have 5
sorry for you, I always do a backup after each part and before using cheat codes
 

Attachments

  • sxos.rar
    4.6 KB · Views: 284

urdaddy

Well-Known Member
Newcomer
Joined
Jun 20, 2018
Messages
94
Trophies
0
Age
32
XP
304
Country
United States
anyone got those clear codes to first reset all item (not key items), potions and balls? i got a bunch of stuffs mixed with each other as I played around with untested cheats. wouldnt mind to clear the inventory :)
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
Sword:
[500 Capture Count (on)]
04000000 01379660 52803E80
04000000 01379664 D65F03C0
[500 Capture Count (off)]
04000000 01379660 F81E0FF3
04000000 01379664 A9017BFD

Shield:
[500 Capture Count (on)]
04000000 01379690 52803E80
04000000 01379694 D65F03C0
[500 Capture Count (off)]
04000000 01379690 F81E0FF3
04000000 01379694 A9017BFD

Note: untested, this cheat patches the function to always return 500, should be temporary.
 

LucioDragon

Well-Known Member
Member
Joined
Jun 21, 2018
Messages
147
Trophies
0
Age
28
XP
812
Country
Chile
Sword / Shield save files are fully encrypted and a lot of stuff was changed, it may take longer than a few days to add support in PKHex for it.

Sword Only:
[Always Shiny (on)]
04000000 0076FB74 1400003A
[Always Shiny (off)]
04000000 0076FB74 54000BA0
now, it might be tedious but we need a cheat code to encounter the 35 missing pokemon, the guy who made a save with these, did it throught the code editor from sx os, sadly they wont do ALL pokemon like the alolan starters because they doesn't like it
and plus, i could use a shiny jirachi aswell
 

blackmoon92

Well-Known Member
Newcomer
Joined
Nov 14, 2019
Messages
91
Trophies
0
Age
25
XP
193
Country
France
Sword:
[500 Capture Count (on)]
04000000 01379660 52803E80
04000000 01379664 D65F03C0
[500 Capture Count (off)]
04000000 01379660 F81E0FF3
04000000 01379664 A9017BFD

Shield:
[500 Capture Count (on)]
04000000 01379690 52803E80
04000000 01379694 D65F03C0
[500 Capture Count (off)]
04000000 01379690 F81E0FF3
04000000 01379694 A9017BFD

Note: untested, this cheat patches the function to always return 500, should be temporary.
great thanks a lot.
this allows to find more powerful pokemon and shiny
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    sp3off @ sp3off: A good salmon Poké bowl with some cream cheese is decadent