please help me with pegaswitch

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by nero99, Apr 17, 2018.

  1. nero99
    OP

    nero99 GBAtemp Addict

    Member
    9
    Sep 18, 2014
    United States
    I have pegaswitch all set up but have no idea how to run the scripts/js files to back up and restore my breath of the wild save file. I am a noob when it comes to using linux, so i had gotten a virtual machine with everything already set up. i really would like to know how to run scripts, i have been at this for hours, searching and everything. I have not found any answers aside from "just run it in pegaswitch and you're good to go"... No answers on how to actually do it. Please dont come at me with the "if you dont know then dont use it" bs.
     
  2. Kubas_inko

    Kubas_inko "Something funny goes here."

    Member
    8
    Feb 3, 2017
    Czech Republic
    I gues on earth.
    Once you are in pegaswitch
    Warning: Spoilers inside!
    you can type "help" to seel all possible commands.
    Warning: Spoilers inside!
    What you want is the "evalfile" command.
    Just create a folder inside your pegaswitch folder and put your script there. Then all you need to do is "evalfile ./yourfolder/yourscript.js". Obviously, you need to connect your Switch first.
     
    Last edited by Kubas_inko, Apr 17, 2018
    nero99 likes this.
  3. nero99
    OP

    nero99 GBAtemp Addict

    Member
    9
    Sep 18, 2014
    United States
    Thank you for the clear answers.
     
  4. nero99
    OP

    nero99 GBAtemp Addict

    Member
    9
    Sep 18, 2014
    United States
    So i keep getting the error 56: sc.enableTurbo is not function. every time I try to use any of the scripts for dumping save files.
     
  5. GraFfiX420

    GraFfiX420 GBAtemp Fan

    Member
    5
    Oct 14, 2009
    United States
    You must be using an outdated version of the script, run: git pull origin master

    Then try again.
     
  6. untok

    untok GBAtemp Regular

    Member
    3
    Dec 25, 2012
    Finland
    thx i will try that i have same problem to dumper too.
     
  7. nero99
    OP

    nero99 GBAtemp Addict

    Member
    9
    Sep 18, 2014
    United States
    I will try. I get that same error when using the script that someone made up not too long ago that was for dumping breath of the wild saves
    Turns out my entire pegaswitch was outdated. The VM i use had a earlier version that for somereason would not work with the new scripts. Thank you for the suggestion as well.
     
    GraFfiX420 likes this.
  8. blinkzane

    blinkzane Panic at your moms house

    Member
    5
    GBAtemp Patron
    blinkzane is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 24, 2012
    United States
    Florida
    delete the whole folder;

    git clone https://github.com/reswitched/pegaswitch.git

    npm install
    (i think thats the one)

    sudo node start.js (on 1.0.0 or through fake_news
    sudo node start.js --webapplet )

    evalfile usefulscripts/scriptyouwanttoload.js


    on 1.0.0 or through fake_news

    sudo node start.js --webapplet

    post any other errors here.
     
  9. nero99
    OP

    nero99 GBAtemp Addict

    Member
    9
    Sep 18, 2014
    United States
    I am getting a save file write error. [error 5022, 'expected [lo,hi] or number'] I have even tried using the corrected .js in another thread that had this issue, but no luck. And yes, I did set the title id in the script to my breath of the wild title. I am also doing this all on 3.0.0.
     
  10. GraFfiX420

    GraFfiX420 GBAtemp Fan

    Member
    5
    Oct 14, 2009
    United States
    Try this technique, start the game you want to backup saves from, as soon as you see anything on the screen, immediately hit home, execute pegaswitch, and run the js file. The idea being to seize control before the console has a chance to mount the data I believe.