Skip to content

Instantly share code, notes, and snippets.

@Vixeliz
Last active January 3, 2023 14:21
Show Gist options
  • Save Vixeliz/62bdbfa081a7716c3b71b30c101f2912 to your computer and use it in GitHub Desktop.
Save Vixeliz/62bdbfa081a7716c3b71b30c101f2912 to your computer and use it in GitHub Desktop.
#!/bin/sh
pkg update && pkg upgrade
pkg i bash cmake make vim clang git binutils
mkdir SwitchUpdatePatcher
cd SwitchUpdatePatcher
curl -o nsp_update_patcher.sh https://gist.githubusercontent.com/Vixeliz/eb2f038d59beafff14e49b56c14e469c/raw/a88f012227fb703e5b0a009d01a6f7670f5ba3e4/nsp_update_patcher.sh
chmod +x nsp_update_patcher.sh
git clone https://github.com/SciresM/hactool
mv hactool hactoolsrc
cd hactoolsrc
git checkout c2c907430e674614223959f0377f5e71f9e44a4a
mv config.mk.template config.mk
sed -i '372d' main.c
mv main.temp main.c
make
mv hactool ..
cd ..
git clone https://github.com/The-4n/hacPack
cd hacPack
git checkout 7845e7be8d03a263c33430f9e8c2512f7c280c88
mv config.mk.template config.mk
make
mv hacpack ..
cd ..
@Vixeliz
Copy link
Author

Vixeliz commented Jan 2, 2023

I unfortunately don’t have access to any android devices easily including emulators I’ve switched to macOS and as far as I know there is no android emulators capable of running skyline. If anybody else is willing to fix it just post here and I’ll update it, if it’s the script but it may not even be the script could also be a bug in the tools used I’m not sure.

@washingleavesandthensome23-434
Copy link

washingleavesandthensome23-434 commented Jan 2, 2023

Tbh nobody is willing to fix, your the only one lol, maybe a friend could help ya out , I don't have any ties to coders sadly...but only if ya manage course , no push

@Damaj301damaj-lol
Copy link

I am currently rewriting it with moderate success

@Damaj301damaj-lol
Copy link

currently rewrote the update system and install dependencies part

@Damaj301damaj-lol
Copy link

@washingleavesandthensome23-434
Copy link

washingleavesandthensome23-434 commented Jan 2, 2023

No freakin way ....ya fixed the key mismatch errors? Please say yes

@Damaj301damaj-lol
Copy link

Uh no :DD, i haven't rewritten the script that handles the data because its fine by itself, now, you are probably getting this error because you are decrypting content with an other console's keys!, try doing something else like dumping your actual switch keys

@washingleavesandthensome23-434

I am , that's why I'm so confused tbh, give it a try with superhot or inscryption for example, both title and prod.keys are from same switch

@Damaj301damaj-lol
Copy link

I am , that's why I'm so confused tbh, give it a try with superhot or inscryption for example, both title and prod.keys are from same switch

is the game downloaded from your switch

@washingleavesandthensome23-434
Copy link

washingleavesandthensome23-434 commented Jan 3, 2023

Of course ...from eshop, also I just fully removed termux and reinstalled, do I simply just follow your instructions? How do I use it ...since there are no commands I see for updating nsp, also folks over on sky discord are wondering if dlc support is coming aka not just patch base but patch base with update and dlc, also script no work:
line 32, curling the script does not work.
i think its looking for specific named files?
basensp? updatensp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment