SciresM's Sun/Moon Patches

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by SciresM, Nov 17, 2016.

Nov 17, 2016

SciresM's Sun/Moon Patches by SciresM at 5:45 AM (37,425 Views / 21 Likes) 433 replies

  1. SciresM
    OP

    Member SciresM GBAtemp Fan

    Joined:
    Mar 21, 2014
    Messages:
    456
    Country:
    United States
    Patcher is available on my github.

    Patches' source is available on my github.

    To use: Extract code.bin from Pokemon Sun/Moon, run exe as "SMPatcher code.bin".

    Use edited code.bin with either HANS/luma's custom code sections to use the patched code.bin.

    Current patches:
    -Allows for the resigning of any QR type, via hooked QR decryption.
    -Allows for the scanning of Injection QRs, generatable via PKHeX
    -Grants unlimited QR scans/day
    -Enables one to scan the same QR multiple times.
    -Optionally, disable outlines from being drawn.

    And, as a bonus, a Magearna QR for use with my patches:
    [​IMG]
     
  2. HellaJvke
    This message by HellaJvke has been removed from public view by Minox, Nov 17, 2016, Reason: Asking for downloads to copyrighted content.
    Nov 17, 2016


  3. adiktus

    Member adiktus GBAtemp Regular

    Joined:
    Apr 17, 2013
    Messages:
    135
    Country:
    United States
    What tool could I use to extract code.bin?
     
  4. Aeroglyphix

    Newcomer Aeroglyphix Member

    Joined:
    Jun 10, 2009
    Messages:
    22
    Country:
    United States
    Do you believe this patcher should still work when Sun/Moon copies are reuploaded within the next 24 hours?
     
  5. fodder

    Member fodder STARMAN

    Joined:
    Aug 3, 2014
    Messages:
    799
    Country:
    United States
    Would this interfere in any way with going online?

    Also thanks a ton for this, going to be quite useful.
     
    H1B1Esquire likes this.
  6. siresnow

    Newcomer siresnow Newbie

    Joined:
    Nov 11, 2016
    Messages:
    2
    Country:
    United States
    how exactly would one extract code.bin?
     
  7. Garblant

    Member Garblant GBAtemp Fan

    Joined:
    Apr 1, 2016
    Messages:
    339
    Location:
    Alola
    Country:
    United States
    I'm guessing this will work properly with the next stable version of Pkhex?
     
  8. hacksn5s4
    This message by hacksn5s4 has been removed from public view by raulpica, Nov 17, 2016, Reason: Requesting copyrighted content, warned -rp.
    Nov 17, 2016
  9. AecdArmy

    Member AecdArmy Because Its Nintendo

    Joined:
    Jan 4, 2016
    Messages:
    349
    Location:
    Hiding In Your 3DS
    Country:
    Australia
    Queno138 likes this.
  10. hacksn5s4

    Banned hacksn5s4 Banned

    Joined:
    Aug 12, 2015
    Messages:
    4,332
    Country:
    Australia
    would be cool if he hads a qr code that clones your pokemon
     
  11. Naridar

    Member Naridar Excelsior!

    Joined:
    Oct 26, 2008
    Messages:
    319
    Country:
    Hungary
    Do any of these patches require online access? Would a nonpatched game's savegame work with a patched game?
     
  12. azerti1304
    This message by azerti1304 has been removed from public view by raulpica, Nov 17, 2016, Reason: Reply to trashed post -rp.
    Nov 17, 2016
  13. AecdArmy

    Member AecdArmy Because Its Nintendo

    Joined:
    Jan 4, 2016
    Messages:
    349
    Location:
    Hiding In Your 3DS
    Country:
    Australia
    1. No online needed.
    2. Yes works fine
     
  14. UniqueGeek

    Member UniqueGeek PMD Researcher

    Joined:
    May 29, 2009
    Messages:
    1,441
    Country:
    United States
    Queno138 and adiktus like this.
  15. xtheman166

    Member xtheman166 *Insert custom title here*

    Joined:
    Jan 28, 2016
    Messages:
    4,768
    Location:
    somewhere in the middle of nowhere
    Country:
    United States
    tfw everyone forgets you can dump code.bin with corbenik
     
    VinLark and Queno138 like this.
  16. Genetic935115

    Newcomer Genetic935115 Advanced Member

    Joined:
    Jan 2, 2016
    Messages:
    84
    Country:
    United States
    Can someone be more specific since i dont know how to implement this patch, i readed the OP but i still dont understand
     
  17. BySilva

    Newcomer BySilva Member

    Joined:
    Jan 30, 2016
    Messages:
    41
    Country:
    Portugal
    Can anyone make a guide on how to extract code.bin please? I already read some topics here but I did not understand
     
  18. Ericjwg

    Member Ericjwg GBAtemp Addict

    Joined:
    Jul 2, 2015
    Messages:
    2,471
    Country:
    Canada
    can't use on an modified code.bin.
    so it's not just simple bytes replacement???:blink:
     
  19. Asia81

    Member Asia81 In my Ecchi World <3

    Joined:
    Nov 15, 2014
    Messages:
    4,393
    Location:
    Albi
    Country:
    France
    I understand you're promoting your tool (I like to do the same), but try not to criticize others for this reason. Writing 2 letters and writing the file name is not really very hard ;)

    Without want bashing your, mine is more user-friendly than your (from what I said, if write 2 letter and a name is not user-friendly, then I'm lost).

    No hard feeling, I have nothing against you :)
     
    Meliodas2255 likes this.
  20. Dennis G

    Member Dennis G GBAtemp Advanced Fan

    Joined:
    Jan 4, 2016
    Messages:
    652
    Country:
    Netherlands
    i'm not able to dump s/m in any way shape or form, not with braindump (stays red screened with s/m) nor asia's tools, they all give me crappy bugs and errors, anyone save us there are so many people asking yet no one answeres
     
  21. Queno138

    Member Queno138 Ravens

    Joined:
    Sep 18, 2010
    Messages:
    2,383
    Location:
    Luigi's Dark Mansion
    Country:
    Singapore
    1. Download the game
    2. decrypt9 deep decrypt the cia (3ds converts are likely already decrypted, such as lurantis dumps)
    3. packhack and CE it
    4. Decompress code.bin, and wait. it takes a while.
    5. create a .txt in same directory and code.bin and sm patcher
    6. paste "SMPatcher code.bin" (without the quotes) into the .txt
    7. rename .txt to .bat
    8. run the .bat file
    9. rename the patched code.bin to the title ID
    __ 0004000000164800.bin for sun
    __ 0004000000175E00.bin for moon
    10. place the bin in /lumu/code_sections
    11. hold select when booting luma, set allow region emu language emu that settings to yes.

    Confirm works'

    Profit!


    and if you can't follow this, I don't know how to help you.
     
    Last edited by Queno138, Nov 17, 2016
    RustInPeace and KunoichiZ like this.
  22. Dennis G

    Member Dennis G GBAtemp Advanced Fan

    Joined:
    Jan 4, 2016
    Messages:
    652
    Country:
    Netherlands
    Decrypting Deep the cia won't work for me, it gives me a error about NCCH every time done it 3 times and it's a hour + process, i knew all those steps but i get errors on every methode possible that's the problem. :s
     
    Last edited by Dennis G, Nov 17, 2016
  23. KunoichiZ

    Member KunoichiZ GBAtemp Psycho!

    Joined:
    Mar 16, 2012
    Messages:
    4,530
    Country:
    United States
    Do we decompress the code.bin when asked?
     

Share This Page