DrayHackTutorials

[BWB2W2] Change Shiny Rate

Oct 3rd, 2020 (edited)
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. I think this only works on Windows PC as CT2 is an .exe file. If you can decompress a file some other way though then you might be OK.
  2.  
  3. So to change the shiny rate on the Gen 5 games, I think the only things you really need are:
  4. 1) crystaltile2, you can grab that from here https://romhacking.net/utilities/818/
  5. 2) A hex editor e.g. HxD
  6.  
  7. Then the instructions below apply to all four Gen 5 games (B/W/B2/W2).
  8.  
  9. Then inside crystaltile2, you want to open the Gen 5 .nds file you want to edit and click on the DS icon at the top to open the file explorer. There should be a file called arm9.bin somewhere - you want then right click that, select "Extract(U)" and save it somewhere.
  10.  
  11. [FYI, some of the core files inside the ROM have a compression algorithm applied, the method I've said there gives you the uncompressed version of the file. We've got to do that to actually edit the shiny rate!]
  12.  
  13. Next you want to open this uncompressed arm9.bin in your hex editor.
  14.  
  15. Then you want to search for the following bytes (just hit Ctrl+F and search it as you would do for text):
  16. 082801D201
  17.  
  18. You should only get one result.
  19.  
  20. Then that "08" number at the start just needs to be changed for something else!
  21.  
  22. So right now the value is 8, which is used in the general formula as 8/65536, or 1/8192.
  23.  
  24. To get the same rates as my Renegade hack you'd want to change it from 08 to 80. The hexadecimal number 80 is equal to the decimal number 128, and 128/65536 is the same as 1/512.
  25.  
  26. If you wanted the theoretical maximum, you could change the byte for FF, which is 255/65536 or roughly 1/257.
  27.  
  28. Anyway, to get the 1/512 rate here, we'll change the byte from 08 to 80 and save the file.
  29.  
  30. Then we go back to crystaltile2 where we originally exported the file, and this time we right-click the arm9.bin and click "Compression". That'll reinsert the now edited arm9.bin file into the ROM and that should give you the new shiny rate.
  31.  
  32. There's no easy way to test this unfortunately!
Add Comment
Please, Sign In to add comment