[Release] GodMode9 Scripts Megathread

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

  1. MyLegGuy

    MyLegGuy Moron

    Member
    509
    291
    Nov 26, 2014
    United States
    Not really what I wanted, but thanks anyway.
    I made an issue on GM9's Github page, requesting this as a feature.

    Until it get implemented, I made a new command myself called findnew. The parameters are the same as findnot's.
    I also made GBA backup scripts to go with it.
     

    Attached Files:



  2. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Added! Hopefully findnew can be implemented soon, that'd be a pretty nice addition. :)
     
  3. RosaliinaDaHacker64

    RosaliinaDaHacker64 3DS font intermediate/expert

    Member
    597
    293
    Oct 7, 2015
    Ireland
    F:\gm9\out
    How do I make the script access ID0 folder?
    Example: 1:/data/e355af6aed727bf109ab84c583abcac9/sysdata

    I'm gonna make friends module savegame backup/restore scripts.
     
    Last edited by RosaliinaDaHacker64, Aug 29, 2017
  4. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Try 1:/data/$[SYSID0]/sysdata (if you're going into sysNAND)
    Or
    1:/data/$[EMUID0]/sysdata (if you're going into emuNAND)
     
    RosaliinaDaHacker64 likes this.
  5. RosaliinaDaHacker64

    RosaliinaDaHacker64 3DS font intermediate/expert

    Member
    597
    293
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Got it.
     
  6. RosaliinaDaHacker64

    RosaliinaDaHacker64 3DS font intermediate/expert

    Member
    597
    293
    Oct 7, 2015
    Ireland
    F:\gm9\out
    I got Friend module save backup working with multiple filename slot (000, 001, 002). Now for restore script, how do I make it choose the slot number for outputted file before restoring file?

    Here are my scripts I'm doing

    Friendsave backup
    Code:
    # Friends module savegame backup GM9 script
    # This will create a backup of your current Friends module save
    # author: SvenDaHacker64
    
    set ERRORMSG      "Friends module save backup failed"
    
    ask "Create friendsave in $[GM9OUT]?"
    set OUTPATH $[GM9OUT]/friendsave
    findnot $[GM9OUT]/friendsave_??? OUTPATH
    cp -w 1:/data/$[SYSID0]/sysdata/00010032/00000000 $[OUTPATH]
    echo "Backup created succesfully:\n$[OUTPATH]"
    Friendsave restore
    Code:
    # Friends module savegame restore GM9 script
    # This will restore your current Friends module save from GM9OUT
    # author: SvenDaHacker64
    
    set ERRORMSG      "Friends module save restore failed"
    
    ask "Restore friendsave from $[GM9OUT]?"
    set OUTPATH 1:/data/$[SYSID0]/sysdata/00010032/00000000
    find $[GM9OUT]/friendsave_??? COPYPATH
    cp -w $[COPYPATH] $[OUTPATH]
    echo "friendsave restored succesfully:\n$[OUTPATH]"
     
  7. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    There's no automated way to do this yet.
    But you may give the input command a try.
    Something like:
    Code:
    set NUM "000"
    input "Restore which backup?" NUM # Enter your three digit number here.
    find $[GM9OUT]/friendsave_$[NUM] COPYPATH
    I haven't had time to test around with the input command, but I think this should be doable.
     
    Last edited by 8BitWonder, Aug 29, 2017
  8. RosaliinaDaHacker64

    RosaliinaDaHacker64 3DS font intermediate/expert

    Member
    597
    293
    Oct 7, 2015
    Ireland
    F:\gm9\out
    It works! Thanks.
    I will finish bits and release my scripts. :)
     
    8BitWonder likes this.
  9. RosaliinaDaHacker64

    RosaliinaDaHacker64 3DS font intermediate/expert

    Member
    597
    293
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Here are friend-save backup/restore scripts I made.

    It lets you backup or restore your friends module save containing your registered friends and your Friend Code from Friend List.
     

    Attached Files:

    8BitWonder and RustInPeace like this.
  10. 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. ^_^

    BTW I used the author name you listed in the scripts, if you would rather be credited as RosaliinaDaHacker64, please let me know.
     
    Last edited by 8BitWonder, Aug 29, 2017
  11. RosaliinaDaHacker64

    RosaliinaDaHacker64 3DS font intermediate/expert

    Member
    597
    293
    Oct 7, 2015
    Ireland
    F:\gm9\out
    Np.
    Nah, I'd prefer Sven (my real name lol). :P
     
    Last edited by RosaliinaDaHacker64, Aug 29, 2017
    8BitWonder and RustInPeace like this.
  12. Sceptyll

    Sceptyll Newbie

    Newcomer
    4
    1
    Aug 30, 2017
    United States
    Sorry for a silly request but I cant for the life of me find a download for setup_ctrnand_luma3ds.gm9 anywhere. Maybe I'm just not looking in the right places since I'm pretty new to this but any help would be appreciated.
     
  13. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Last edited by 8BitWonder, Aug 30, 2017
  14. Sceptyll

    Sceptyll Newbie

    Newcomer
    4
    1
    Aug 30, 2017
    United States
    How do I download scripts? Selecting the link only sends me off to another page. (Just started like two days ago :unsure:)
     
  15. Blaze Uchiha

    Blaze Uchiha GBAtemp Regular

    Member
    177
    42
    Feb 6, 2016
    United States
    Now this is useful :P

    — Posts automatically merged - Please don't double post! —
     
  16. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
  17. Sceptyll

    Sceptyll Newbie

    Newcomer
    4
    1
    Aug 30, 2017
    United States
    Nope, just takes me to a white page with text I can only assume is code.

    # Luma3DS CTRNAND Setup script
    # last changed: 20170716
    # author: ihaveamac

    set SUCCESSMSG "Luma3DS copied successfully"

    ask "This will copy Luma3DS to your CTRNAND,\nallowing for the system to work without\nan SD card.\n\nContinue?"

    allow 1:/

    # remove existing files just in case
    rm -o -s 1:/boot.firm
    rm -o -s 1:/rw/luma

    # copy specific files over
    cp 0:/boot.firm 1:/boot.firm
    mkdir 1:/rw/luma
    cp 0:/luma/payloads 1:/rw/luma/payloads
    cp 0:/luma/config.bin 1:/rw/luma/config.bin​
     
  18. 8BitWonder
    OP

    8BitWonder Small Homebrew Dev

    Member
    748
    520
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Try right clicking that page and and saving it. (Should save as .gm9 I believe)

    If that doesn't work, here's what you can do:
    Create a new text file, and then change the extension to .gm9.
    Then copy all the text on that page and paste it into that document.
     
  19. Sceptyll

    Sceptyll Newbie

    Newcomer
    4
    1
    Aug 30, 2017
    United States
    That seems to have fixed the issue, thanks a bunch!
     
    8BitWonder likes this.
  20. Majickhat55

    Majickhat55 The Red Woman

    Member
    3,367
    1,623
    Mar 28, 2016
    United States
    Asshai
    So I was going to try myself but I've only ever taken like one programming class in my life. I couldn't even build the simple calculator in putty without tons of syntax errors Lol. Anyway, I was wondering if you could possibly make a script to convert .3DS to .CIA @8BitWonder ? I was just going to attempt to edit one of your CTR dump scripts for it.