[Release] GodMode9 Scripts Megathread

Discussion in '3DS - Homebrew Development and Emulators' started by 8BitWonder, Aug 25, 2017.

  1. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    GodMode9 Scripts Megathread

    Since I didn't see any GM9 script collection threads yet, I figured I would start one off with some of my own scripts.
    And if anyone would like their script(s) added to this thread, just post your script(s) (with source link if available) and a description of what it does and I'll work on adding it to the original post!

    Also, if you have any simple script requests, feel free to post them here!

    Now on to the good stuff:

    Backup EmuNAND Script - By d0k3
    Backup SysNAND Script - By d0k3
    Cartridge Dump Scripts - By 8BitWonder
    Convert .3DS to .CIA Script - By 8BitWonder
    Dump boot9.bin & boot11.bin Script - By 8BitWonder
    Dump Citra Files Script - By 8BitWonder
    Dump CTRNAND Title to .CIA Script - By 8BitWonder
    Dump HomeMenu JPN - By windows_server_2003
    Dump HomeMenu USA, EUR, CHN, KOR, TWN - By windows_server_2003/8BitWonder
    Dump Installed Title to .CIA Script - By 8BitWonder
    Dump otp.bin Script - By 8BitWonder
    Dump TWLNAND Title to .CIA Script - By 8BitWonder
    Friend-save Backup and Restore Scripts - By SvenDaHacker64
    gbavc.sav Backup and Restore Scripts - By 8BitWonder
    gbavc.sav Backup and Restore Scripts - By MyLegGuy
    LocalFriendCodeSeed_B Backup and Restore Scripts - By 8BitWonder


    GodMode9 Download: https://github.com/d0k3/GodMode9/releases

    If there is ever something wrong with a script, please say so!

    Megathread Changelog
     

    Attached Files:

    Last edited by 8BitWonder, Sep 24, 2017 at 9:35 PM


  2. UltraArceus3

    UltraArceus3 TIME LORD FROM GALLIFREY

    Member
    181
    66
    Oct 3, 2016
    Egypt
    Under a Rock (with Wi-Fi)
    Oh, nice! A place to go for any GM9 Scripts :P
     
  3. MattKimura

    MattKimura 3DS & WiiU Enthusiast

    Member
    1,778
    925
    Jun 30, 2014
    United States
    I've always asked myself "What other scripts are there" and this brings them all together. Thanks for the list and also thanks for your handy GBA scripts!
     
    8BitWonder likes this.
  4. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    No problem! Hopefully some more will pop up as time passes. ;)
     
  5. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    UPDATE 8/26/2017
    • Added Cartridge Dump Scripts
      • Dump CTR Cartridge Priv. Header
      • Dump CTR Cartridge to .3DS (Dec)
      • Dump CTR Cartridge to .CIA
      • Dump NTR Cartridge to .NDS

    • Improved Three Current Scripts
      • Dump otp.bin
        • Now appends your console's serial to the dumped otp.bin. (SERIAL_otp.bin)
      • Backup LocalFriendCodeSeed_B
        • Now appends your console's serial to the dumped LocalFriendCodeSeed_B. (SERIAL_LocalFriendCode_B)
      • Restore LocalFriendCodeSeed_B
        • Will only look for a filename with "LocalFriendCodeSeed_B" in it, ignoring the serial.
    As always, if you ever find that there is something wrong with one of these scripts, or that it can be improved in some way, please say so!

    Also if you have any simple script requests, it'd be fine to make them here.
     
    Last edited by 8BitWonder, Aug 26, 2017
    MattKimura, mikefor20 and RustInPeace like this.
  6. Kyubnyan

    Kyubnyan GBAtemp Fan

    Member
    342
    115
    Dec 1, 2016
    United States
    Thanks so much I was hoping for a GM9 script megathread. :)
     
    8BitWonder likes this.
  7. XXXTORTELLINI

    XXXTORTELLINI ╰( ͡° ͜ʖ ͡° )つ──☆*:・゚

    Member
    198
    60
    Apr 14, 2017
    United States
    No Idea
    I'm having trouble with dumping the Citra files using the script for it. It turns out with a fail everytime.
     
  8. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Are you using the GodMode9 1.3.4 nightly?

    The Citra script relies on a new injection feature in there that isn't in GodMode9 1.3.1.
     
    Last edited by 8BitWonder, Aug 27, 2017
  9. XXXTORTELLINI

    XXXTORTELLINI ╰( ͡° ͜ʖ ͡° )つ──☆*:・゚

    Member
    198
    60
    Apr 14, 2017
    United States
    No Idea
    Ah that's why I'm using 1.3.1 currently
     
    8BitWonder likes this.
  10. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Wew that's a relief. I struggled with that one for a while, glad I don't have to go back and fix it. (Yet :ph34r:)
     
  11. XXXTORTELLINI

    XXXTORTELLINI ╰( ͡° ͜ʖ ͡° )つ──☆*:・゚

    Member
    198
    60
    Apr 14, 2017
    United States
    No Idea
    I've looked everywhere for the 1.3.4 nightly but it always turns out to be the 1.3.0 release. Any idea where to find it?
     
  12. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    I wasn't able to find it either, so I just compiled it.

    You can compile it from this zip
    [​IMG]

    Or I can just drop the one I use here.
    (Just use it at your own risk)
     

    Attached Files:

  13. XXXTORTELLINI

    XXXTORTELLINI ╰( ͡° ͜ʖ ͡° )つ──☆*:・゚

    Member
    198
    60
    Apr 14, 2017
    United States
    No Idea
    Thanks!
     
    8BitWonder likes this.
  14. Keizel

    Keizel GBAtemp Fan

    Member
    340
    98
    Jun 28, 2015
    One question: Why now we use scripts when before we could, for example, dump NAND with only select the correct option?
     
  15. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Scripts allow for more customizable actions by end-users.
    Before we could only do a few specific things that were built-in, such as dumping sysNAND or emuNAND.
    But now with scripts, end-users have the power to make their own automated and complex actions like dumping and decrypting several games at once, or dumping specific blocks of information from system files, and everything in-between (and more!).
     
    Keizel likes this.
  16. windows_server_2003

    windows_server_2003 Member

    Newcomer
    17
    2
    Jul 13, 2017
    Japan
    I tried to make custom homemenu along this guide(Link below).but the homemenu's cia file(JPN, downloaded with 3DNUS and encrypted with godmode9) doesn't have the japanese "menu_lsbt.LZ".so I dumped from my 2DS and made script for that.It will make "homemenu.cia" at /gm9/out/ It maybe useful if you have a JPN 3ds and have the same problem.
    If you run this on not a JPN 3DS, it will show error.

    https://gbatemp.net/threads/complete-3ds-2ds-customization-guide.468268/
     

    Attached Files:

    8BitWonder likes this.
  17. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Added! Thank you for your contribution! ^_^
     
  18. Pickle_Rick

    Pickle_Rick SHEEEEEEEEIT

    Member
    142
    84
    Aug 28, 2017
    United States
    Somewhere
    I've been gone for a while. I didn't know you could do this. Neat.
     
    8BitWonder likes this.
  19. MyLegGuy

    MyLegGuy Moron

    Member
    509
    291
    Nov 26, 2014
    United States
    Is there a command that can be used to find files that got their paths from findnot?
    For example, I could do this:
    Code:
    findnot $[GM9OUT]/aaa_???.sav OUTPATH
    If my script created files with OUTPATH, and I ran my script multiple times, I would have files named aaa_000.sav, aaa_001.sav, aaa_002.sav, and so on. What I would like to do is find the latest file. In this example, aaa_002.sav. I tried the "find" command, but I got aaa_000.sav. Maybe, I could use "findnot" and then decrease the number at the end by one? Is that even possible?
     
  20. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    I'm not sure that's possible yet, though an alternative (that would require knowing your most recent number) that you may be able to do is something like this:
    Code:
    input "Most recent file?" NUM  # You would enter your three digit number here and store it as NUM, Ex: 001, 002, 003, etc.
    set OUTPATH $[GM9OUT]/aaa_$[NUM].sav # And then here you would set that number as the file being looked at
    
    I don't currently have time to test this, but it seems like it should work (Though to be fair I haven't tried the input command yet, so hopefully you can input numbers like that). I'll try making some test scripts tomorrow and see what I can come up with.
     
    Last edited by 8BitWonder, Aug 28, 2017
    MyLegGuy likes this.