Homebrew [Release] GodMode9 Scripts Megathread

D

Deleted User

Guest
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.
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.
 

Attachments

  • GodMode9_v1.3.1-findnew.zip
    1.1 MB · Views: 207

8BitWonder

Small Homebrew Dev
OP
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,339
Country
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.
Added! Hopefully findnew can be implemented soon, that'd be a pretty nice addition. :)
 
D

Deleted User

Guest
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 ,
D

Deleted User

Guest
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]"
 

8BitWonder

Small Homebrew Dev
OP
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,339
Country
United States
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?

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,
D

Deleted User

Guest
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.
It works! Thanks.
I will finish bits and release my scripts. :)
 
  • Like
Reactions: 8BitWonder
D

Deleted User

Guest
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.
 

Attachments

  • Friend-save backup & restore GM9.zip
    797 bytes · Views: 426

8BitWonder

Small Homebrew Dev
OP
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,339
Country
United States
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.
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,

Sceptyll

New Member
Newbie
Joined
Aug 30, 2017
Messages
4
Trophies
0
Age
24
XP
52
Country
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.
 

8BitWonder

Small Homebrew Dev
OP
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,339
Country
United States
Last edited by 8BitWonder,

Sceptyll

New Member
Newbie
Joined
Aug 30, 2017
Messages
4
Trophies
0
Age
24
XP
52
Country
United States
How do I download scripts? Selecting the link only sends me off to another page. (Just started like two days ago :unsure:)
 

Sceptyll

New Member
Newbie
Joined
Aug 30, 2017
Messages
4
Trophies
0
Age
24
XP
52
Country
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​
 

8BitWonder

Small Homebrew Dev
OP
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,339
Country
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​
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.
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
36
Location
Asshai
XP
2,958
Country
United States
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: Had two cheeseburgers and a coke to fuel me up.