ROM Hack RELEASE [Release/Tutorial] Switch theme injector : Easily make custom themes

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,011
Country
Italy
Hi exelix11!

First of all thank you for your effort and creating this tool! I have downloaded SwitchThemeInjector 3.4 and NXThemes 1.0 and strictly followed the guide postet on your GitHub page. Everything works smoothly until I reach the point where I'm supposed to dump the home menu. When pointing SwitchThemeInjector to my "prod.keys" file and my "systemData" folder on the SD card and click the "RUN" button I directly receive an error message saying "Couldn't find lyt dir, the log has been saved as hactool.log".

Since the hactool version included with SwitchThemeInjector 3.4 seems to be 1.2.2 I think it's the latest version and should be fine. I am starting the think it could be an issue with SX OS EmuNAND.

My setup is as follows:

Clean internal NAND on FW 5.1.
SX OS 2.5 with hidden EmuNAND on SD card on FW 6.2.

I got my fuse info and TSEC keys using hekate CTCaer mod 4.6. The "prod.keys" file was generated using Lockpick 1.0 running in EmuNAND on FW 6.2. The NCAs for "home" and "user" were dumped using NXThemes 1.0 running in EmuNAND on FW 6.2 as well.

When checking the "hactool.log" file the first line says:

[WARN] prod.keys does not exist. (Remark: It does and it resides in the "/switch" folder.)

Then it shows a whole lot of key information followed by Done!.

The last part in the log shows a bunch of errors in the form of:

stderr:
[WARN]: Failed to match key "bis_kek_source", (value ...


I get errors for about 20 keys here.

The file ends with:

Error: section 0 is corrupted!
Error: section 1 is corrupted!


Is there a key mismatch when dumping from EmuNAND on a higher FW compared to the internal NAND? I'm stuck.

Your help would be highly appreciated!

Thank you!
Ok so i asked lockpick dev and he doesn't know either, it depends on sx implementation of emunand, as you seem to be doing everything correctly that's probably the issue, your best option would be to get the keys from the net (which isn't hard at all)
 

SomeGamer

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
6,827
Trophies
1
XP
4,838
Country
Hungary
Just a heads up, that website you linked for converting to DDS doesn't always concert with the correct compression. I only found out why the installer's hanging on those files is by looking at the error messages on the Inject section of your web injector. Converted with imagemagick and it was all good.
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,011
Country
Italy
Just a heads up, that website you linked for converting to DDS doesn't always concert with the correct compression. I only found out why the installer's hanging on those files is by looking at the error messages on the Inject section of your web injector. Converted with imagemagick and it was all good.
It's already known, i've written in the spoiler in the first post:
To convert images to DDS you can use this website , only use JPG files because PNG are encoded with the wrong compression.
If you're looking for an offline solution download the Switch theme injector app, go to the "Image to DDS" tab and open any image to convert it.
Alternatively there are many tools that can convert to DDS such as photoshop, gimp, imagemagick or microsoft's texconv, you just need to search on google, all should work as long as you make sure to encode as DXT1
Actually the issue appears to be with imagemagick itself, at least for me png files on ubuntu are always encoded as DXT5 and idk why
 
  • Like
Reactions: SomeGamer

SomeGamer

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
6,827
Trophies
1
XP
4,838
Country
Hungary
It's already known, i've written in the spoiler in the first post:

Actually the issue appears to be with imagemagick itself, at least for me png files on ubuntu are always encoded as DXT5 and idk why
Strange, I always used PNGs on that site and they worked until now. Never used the converter in your Windows app because I couldn't get it to work. Imagemagick seems to be the best solution as I can force compression type there.
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,011
Country
Italy
Strange, I always used PNGs on that site and they worked until now. Never used the converter in your Windows app because I couldn't get it to work. Imagemagick seems to be the best solution as I can force compression type there.
Idk, anyway i just added to the website a check for the dds type, will add it to the windows app and the installer in the next update
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,867
Trophies
2
Location
At Home :)
XP
4,141
Country
I’ve found a problem with the new installer you might already know but say for example your first using sxos cfw and you install a theme with it and you decide you want to use Atmosphere cfw on the same sd card and install a theme through that cfw it asks you to change from sxos to Atmosphere which you do and this is the problem part, if you choose to go back to sxos payload through your sx gear dongle it won’t boot your switch up you just get a black screen you don’t even get a splash screen either. I had to copy and paste the themes, installer folder from another sd card which I had only booted sxos on, back over to that one then it boots back up as it should. I first thought my sd card had gone faulty but I then realised about the theme change over from sxos to Atmosphere I thought it was probably that so I changed my folders over and it worked.
 
Last edited by Reecey,

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,011
Country
Italy
I’ve found a problem with the new installer you might already know but say for example your first using sxos cfw and you install a theme with it and you decide you want to use Atmosphere cfw on the same sd card and install a theme through that cfw it asks you to change from sxos to Atmosphere which you do and this is the problem part, if you choose to go back to sxos payload through your sx gear dongle it won’t boot your switch up you just get a black screen you don’t even get a splash screen either. I had to copy and paste the themes, installer folder from another sd card which I had only booted sxos on, back over to that one then it boots back up as it should. I first thought my sd card had gone faulty but I then realised about the theme change over from sxos to Atmosphere I thought it was probably that so I changed my folders over and it worked.
Weird cause it souldn't change anything, if you have multiple cfws on boot it will ask which one you want to apply the theme to, that means it will just use the folder you select, the other cfws won't be touched at all, it's more likely you installed a bad theme
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,867
Trophies
2
Location
At Home :)
XP
4,141
Country
Weird cause it souldn't change anything, if you have multiple cfws on boot it will ask which one you want to apply the theme to, that means it will just use the folder you select, the other cfws won't be touched at all, it's more likely you installed a bad theme
No the problem is, is when you go back to using sxos from atmosphere after selecting atmosphere as your theme installer that’s when it won’t boot.
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,011
Country
Italy
No the problem is, is when you go back to using sxos from atmosphere after selecting atmosphere as your theme installer that’s when it won’t boot.
Yeah i got that, i'm saying that if you select atmosphere, it shouldn't touch the sxos folder and vice versa. I'll look into this even tho i'm pretty sure that's not the cause of the black screen.
 

stephrk398

Well-Known Member
Member
Joined
May 29, 2018
Messages
540
Trophies
0
XP
1,403
Country
United States
"Can't install this theme because the original ResidentMenu.szs is missing from systemData"

New to themes, what am I missing? I'm on 6.1 sx os, got the NXTheme files on-hand, and the NXThemes Installer is giving me this message.
 

iMGDE

Member
Newcomer
Joined
Jul 9, 2018
Messages
8
Trophies
0
XP
98
Country
Germany
I have a question (probably has someone asked this before):

What could happen if the used Layout Patch isn't a working layout patch?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Sonic Angel Knight @ Sonic Angel Knight: Chili dog :ninja: