SciresM's Sun/Moon Patches

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

  1. SciresM
    OP

    SciresM GBAtemp Advanced Fan

    Member
    596
    1,861
    Mar 21, 2014
    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

    adiktus GBAtemp Regular

    Member
    160
    23
    Apr 17, 2013
    United States
    What tool could I use to extract code.bin?
     
  4. Aeroglyphix

    Aeroglyphix Member

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

    fodder STARMAN

    Member
    803
    287
    Aug 3, 2014
    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

    siresnow Newbie

    Newcomer
    2
    0
    Nov 11, 2016
    United States
    how exactly would one extract code.bin?
     
  7. Garblant

    Garblant GBAtemp Advanced Fan

    Member
    669
    246
    Apr 1, 2016
    United States
    Alola
    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

    AecdArmy Because Its Nintendo

    Member
    489
    170
    Jan 4, 2016
    The Ninty Ninja HQ
    Queno138 likes this.
  10. hacksn5s4

    hacksn5s4 Banned

    Banned
    4,332
    450
    Aug 12, 2015
    would be cool if he hads a qr code that clones your pokemon
     
  11. Naridar

    Naridar Excelsior!

    Member
    331
    85
    Oct 26, 2008
    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

    AecdArmy Because Its Nintendo

    Member
    489
    170
    Jan 4, 2016
    The Ninty Ninja HQ
    1. No online needed.
    2. Yes works fine
     
  14. evandixon

    evandixon PMD Researcher

    Member
    1,686
    808
    May 29, 2009
    United States
    Queno138 and adiktus like this.
  15. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,279
    Jan 28, 2016
    United States
    tfw everyone forgets you can dump code.bin with corbenik
     
    VinLark and Queno138 like this.
  16. Genetic935115

    Genetic935115 GBAtemp Regular

    Member
    115
    41
    Jan 2, 2016
    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

    BySilva Member

    Newcomer
    44
    4
    Jan 30, 2016
    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

    Ericjwg GBAtemp Psycho!

    Member
    3,071
    812
    Jul 2, 2015
    Canada
    can't use on an modified code.bin.
    so it's not just simple bytes replacement???:blink:
     
  19. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,564
    Nov 15, 2014
    France
    Albi
    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

    Dennis G GBAtemp Advanced Fan

    Member
    671
    205
    Jan 4, 2016
    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

    Queno138 Ravens

    Member
    2,413
    782
    Sep 18, 2010
    Senegal
    Luigi's Dark Mansion
    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
    Link5261, RustInPeace and KunoichiZ like this.
  22. Dennis G

    Dennis G GBAtemp Advanced Fan

    Member
    671
    205
    Jan 4, 2016
    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

    KunoichiZ GBAtemp Guru

    Member
    8,408
    3,522
    Mar 16, 2012
    United States
    Do we decompress the code.bin when asked?