ROM Hack Write mod SaveFile Dump (BotW) not working

  • Thread starter Deleted User
  • Start date
  • Views 17,534
  • Replies 83
D

Deleted User

Guest
OP
hello everyone,

someone could already write a modded savefile to the switch?
I could dump the savefile without problems but they can not be overwritten on the switch.
I use the following WriteSave script from @Reisyukaku and i run the scripts with pegaswitch. However, I always get the following error code:

Code:
ERROR: [15, 'sc.getFSPPR is not a function. (In \ 'sc.getFSPPR()\', \ 'sc.getFSPPR\' is undefined)' ]

What am I doing wrong?
I would be very grateful for any help and suggestions for solutions.

Thank you and greeting
RyuSeisuke
 
Last edited by ,

Maq47

Lord of Pyro
Member
Joined
Jan 7, 2012
Messages
1,248
Trophies
1
Location
Your basement
Website
idont.have.one
XP
3,302
Country
United States
hello everyone,

someone could already write a modded savefile to the switch?
I could dump the savefile without problems but they can not be overwritten on the switch.
I use the following WriteSave script from Reisyukaku and i run the scripts with pegaswitch. However, I always get the following error code:

Code:
ERROR: [15, 'sc.getFSPPR is not a function. (In \ 'sc.getFSPPR()\', \ 'sc.getFSPPR\' is undefined)' ]

What am I doing wrong?
I would be very grateful for any help and suggestions for solutions.

Thank you and greeting
RyuSeisuke


Send me the .js file's contents in a PM. I'm pretty sure it's a context error in the script judging by the fact that dumping worked for you.
 
  • Like
Reactions: Deleted User

Maq47

Lord of Pyro
Member
Joined
Jan 7, 2012
Messages
1,248
Trophies
1
Location
Your basement
Website
idont.have.one
XP
3,302
Country
United States
I not found PM Button. Can you me start Conversation?

Never mind. I found the script. The log is basically saying that PegaSwitch can't figure out what sc.getFSPPR() means. Does the 15th line of the script say "sc.getFSPPR()", or "sc.getFSPPR();" (in other words, is there a ';' after 'sc.getFSPPR()' or not?
 
  • Like
Reactions: Deleted User
D

Deleted User

Guest
OP
No! The zelda game is a european card version.

Title ID: 01007EF00011E000
 
D

Deleted User

Guest
OP
try to start botw and wait for the start menu first. After run pegaswitch and run the script

I've always tried, but it just doesn't work..
Do I have to close the game completely when pegaswitch is running?

Did it work for you?
 
Last edited by ,

eXzoN

Member
Newcomer
Joined
Dec 24, 2017
Messages
19
Trophies
0
Age
30
XP
154
Country
Germany
I've always tried, but I can't do that every time.
Do I have to close the game completely when pegaswitch is running?

Did it work for you?

I just tested the save dump function and got the same error because of sc.getFSPPR(); when i doesn't have botw started first.
you can insert this function from 3096's fork at the beginn of your file:
Code:
sc.getFSPPR = function () {
    if (sc.closed_pr !== undefined) {
        return;
    }
    sc.enableTurbo();
    var i = 0;
    var srv = null;
    while (true) {
        sc.ipcMsg(2).setType(5).sendTo('pm:shell');
        var srvResult = sc.getService("fsp-pr");
        if(srvResult.isOk) {
            srv = srvResult.getValue();
            break;
        }
        i++;
    }
    utils.log('Got fsp-pr handle after ' + i + ' iterations: ');
    utils.log('fsp-pr handle: 0x' + srv.toString(16));
    sc.svcCloseHandle(srv).assertOk();
    sc.closed_pr = true;
};
https://gist.github.com/3096/78828ae6576bd7ce2075745b0c94e90e

this could work
 
  • Like
Reactions: Deleted User
D

Deleted User

Guest
OP
Code:
ERROR:  [  826,  '0xe02 (High byte in input u64 is zero. in module FS)' ]
 

eXzoN

Member
Newcomer
Joined
Dec 24, 2017
Messages
19
Trophies
0
Age
30
XP
154
Country
Germany
yeah i got the same error.. the error happened at this line:
Code:
res = sc.ipcMsg(51).datau64(1, utils.parseAddr(tid), [userID[0], userID[1]], [userID[2], userID[3]], [0,0], 1, 0, 0, 0).sendTo('fsp-srv').assertOk();
but there is no documentation for the datau64 function so i can't fix it for now. Maybe Rei or some dudes that forked the repository find a way in the next
days.
 
  • Like
Reactions: Deleted User

eXzoN

Member
Newcomer
Joined
Dec 24, 2017
Messages
19
Trophies
0
Age
30
XP
154
Country
Germany
Is the author of the script registered here?
@Reisyukaku
Maybe he can support us here?

yes i think so.. if you want to write him, you can use the private message function here is his profile: https://gbatemp.net/members/reisyukaku.344848/
otherwise i would write him.

this is what rei wrote in another thread:
I already gave an early revision of my save injector to a few splatoon people.. seems to have spread ¯\_(ツ)_/¯
I might release a cleaned up version in the future.
https://gbatemp.net/threads/sciresm-releases-file-to-dump-carts.499306/
 
Last edited by eXzoN,
  • Like
Reactions: Deleted User
D

Deleted User

Guest
OP
I already gave an early revision of my save injector to a few splatoon people.. seems to have spread ¯\_(ツ)_/¯
I might release a cleaned up version in the future.

He writes himself that it's more beta and the script isn't quite finished
 
  • Like
Reactions: eXzoN

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/9kE3Env_2AY?si=Bs6lUZ0ZIlqmYaGT +1