ROM Hack Write mod SaveFile Dump (BotW) not working

  • Thread starter Thread starter Deleted User
  • Start date Start date
  • Views Views 19,413
  • Replies Replies 83
D

Deleted User

Guest
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 ,
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
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
try to start botw and wait for the start menu first. After run pegaswitch and run the script


Gesendet von iPhone mit Tapatalk
 
  • Like
Reactions: Deleted User
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 ,
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
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
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
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