Homebrew Question Trouble building for Swich with Unity3D

Imancol

Otak Productions
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
You can also use Rewired/Incontrol that makes everything out of the box. Need to test my custom YT videoplayer but I think it's blocked for avoiding a 3ds-like exploit
For this it was necessary the switchsdkpluginunity that brings the entire library of the HID of the INPUT. With the Input Manager it is easy to work since the joy-con maps as well as an Xbox 360 control. But I have had problems when using the new Input System, since both iconTROL and Rewired have not supported and do it manually
 

lyokohack

Well-Known Member
Member
Joined
Apr 2, 2018
Messages
294
Trophies
0
Age
27
XP
1,048
Country
France
It is easy to make, just take a look at Xbox one and just port the stuff to nn.hid.
You can only get it login into Nintendo's Switch developer portal or make your own. It is easy to make, just take a look at Xbox one and just port the stuff to nn.hid.

this method that you cited
I want to know how it works to activate my switch account from an XBox account
If I understood correctly
 

Manurocker95

Game Developer & Pokémon Master
Member
Joined
May 29, 2016
Messages
1,511
Trophies
0
Age
29
Location
Madrid
Website
manuelrodriguezmatesanz.com
XP
2,791
Country
Spain
  • Like
Reactions: D3fau4

Kolyasisan

Well-Known Member
Newcomer
Joined
Nov 16, 2013
Messages
77
Trophies
0
Location
Moscow
XP
714
Country
Russia
But, I don't get something regarding the helltaker port...

With an SDK, you can build the game and export it into two formats: an NSP (which seems to have wacky headers in its NCAs, never managed to extract them) or an NSPD file with the romfs and code NCA folders already exported.

Since it's not feasable to use the created NSP file, it seems that we'll have to use the extracted ones that sit alongside the NSPD. Question is: how do we pack them for it to be installable onto a retail system?

I've tried to mess around with hacPack for it and never made anything installable. If I try to pack NCAs from extracted files, then I get stuck immediately while packing the main NCA because I don't know the TitleID. How do we even get it? It's not getting created in any of the metadata files and getting it from the NSP file doesn't work (tools refuse to work with its NCAs). Not to mention that a ControlNCA is also needed in order to generate the meta NCA. So, we're stuck.

Going another path I tried to mess around with the Helltaker port. I built my main NCA using Helltaker's TitleID, but the resulting file's name turned out different and this made the NSP not installable. Renaming it made the game unbootable. And this is a pain because, once again, I don't think it's possible to generate the meta NCA.

So, I'm completely confused, what am I doing wrong? There's just not enough to work with, how exactly did this Helltaker port came to be?

If you build an NSP with Unity, it's not installable and messy so every tool refuses to work with it. If you build an NSPD, then there's not enough data to build an NSP yourself. You can't build just the main NCA and replace it over some other game's main NCA because the meta NCA will need to be rebuilt, otherwise results in it being unbootable. Pick your poison?
 
Last edited by Kolyasisan,

Manurocker95

Game Developer & Pokémon Master
Member
Joined
May 29, 2016
Messages
1,511
Trophies
0
Age
29
Location
Madrid
Website
manuelrodriguezmatesanz.com
XP
2,791
Country
Spain
But, I don't get something regarding the helltaker port...

With an SDK, you can build the game and export it into two formats: an NSP (which seems to have wacky headers in its NCAs, never managed to extract them) or an NSPD file with the romfs and code NCA folders already exported.

Since it's not feasable to use the created NSP file, it seems that we'll have to use the extracted ones that sit alongside the NSPD. Question is: how do we pack them for it to be installable onto a retail system?

I've tried to mess around with hacPack for it and never made anything installable. If I try to pack NCAs from extracted files, then I get stuck immediately while packing the main NCA because I don't know the TitleID. How do we even get it? It's not getting created in any of the metadata files and getting it from the NSP file doesn't work (tools refuse to work with its NCAs). Not to mention that a ControlNCA is also needed in order to generate the meta NCA. So, we're stuck.

Going another path I tried to mess around with the Helltaker port. I built my main NCA using Helltaker's TitleID, but the resulting file's name turned out different and this made the NSP not installable. Renaming it made the game unbootable. And this is a pain because, once again, I don't think it's possible to generate the meta NCA.

So, I'm completely confused, what am I doing wrong? There's just not enough to work with, how exactly did this Helltaker port came to be?

If you build an NSP with Unity, it's not installable and messy so every tool refuses to work with it. If you build an NSPD, then there's not enough data to build an NSP yourself. You can't build just the main NCA and replace it over some other game's main NCA because the meta NCA will need to be rebuilt, otherwise results in it being unbootable. Pick your poison?

The NSP is built with the Devkit Keys, so you can only play that NSP with a real devkit. However, you can unpack it and repack it again with retail console keys. This only applies to sdk builds, not libnx (devkitpro) compiling nsps.

iirc, d3fau4 used libnx as compiler so you are out of luck checking it, but I'd recommend you to check authoring tools folder
 
Last edited by Manurocker95,

Kolyasisan

Well-Known Member
Newcomer
Joined
Nov 16, 2013
Messages
77
Trophies
0
Location
Moscow
XP
714
Country
Russia
The NSP is built with the Devkit Keys, so you can only play that NSP with a real devkit. However, you can unpack it and repack it again with retail console keys. This only applies to sdk builds, not libnx (devkitpro) compiling nsps.

iirc, d3fau4 used libnx as compiler so you are out of luck checking it, but I'd recommend you to check authoring tools folder
Can you even use libnx with Unity? I thought that it's heavily dependant on the official SDKs to compile code and shaders. I'm pretty sure that my NSPs were compiled with the leaked SDK. I can surely unpack my NSPs and repack them with my retail keys, but the NCAs are still wacky, so they again result in being not installable.
 

Manurocker95

Game Developer & Pokémon Master
Member
Joined
May 29, 2016
Messages
1,511
Trophies
0
Age
29
Location
Madrid
Website
manuelrodriguezmatesanz.com
XP
2,791
Country
Spain
Can you even use libnx with Unity? I thought that it's heavily dependant on the official SDKs to compile code and shaders. I'm pretty sure that my NSPs were compiled with the leaked SDK. I can surely unpack my NSPs and repack them with my retail keys, but the NCAs are still wacky, so they again result in being not installable.

Afaik, If you know how, yes, it is possible. Then you are not doing correctly. Unpacking with authoring tools and repacking it with nsp builder works out of the box on retail consoles .
 
Last edited by Manurocker95,

Kolyasisan

Well-Known Member
Newcomer
Joined
Nov 16, 2013
Messages
77
Trophies
0
Location
Moscow
XP
714
Country
Russia
Afaik, If you know how, yes, it is possible. Then you are not doing correctly. Unpacking with authoring tools and repacking it with nsp builder works out of the box on retail consoles .
Hmmmmm..... I'm obviously missing something.
Can you please correct me to what I'm potentially doing wrong? I'm doing roughly this:
1 - Export the NSP from Unity
2 - Unpack it with leaked SDKs authoring tools
3 - Repack the entire folder (including all the NCAs, icons, XMLs) using hackPack

After doing that, the NSP behaves like an initial NSP straight from Unity. It's not installable on my system, DBI (for example) complains about the NCA magic number.

Maybe the problem is in the TitleID? I can't get it from the original NSP because its NCAs are unreadable, so I tried to generate ones myself or try using the Helltaker's one. Both didn't work. Then again, it does go back to one of my previous points in my initial message.

Thanks.
 
Last edited by Kolyasisan,

Kolyasisan

Well-Known Member
Newcomer
Joined
Nov 16, 2013
Messages
77
Trophies
0
Location
Moscow
XP
714
Country
Russia
Using a different tool (NSPack) moved things a bit further. Now an NSP builds and installs successfully, but bootloops on the startup. I'm pretty confused, I've been doing the exact same things as with hacPack.
 

Attachments

  • photo_2020-07-10_16-06-53.jpg
    photo_2020-07-10_16-06-53.jpg
    74.9 KB · Views: 207
D

Deleted User

Guest
Does UnitySetup-Nintendo-Switch-Support-for-Editor-2018.2.0b3 work with Unity 2019 or is it limited to the same Unity build from the pastebin? I'm unable to find a leak of the newer version.
 

Kolyasisan

Well-Known Member
Newcomer
Joined
Nov 16, 2013
Messages
77
Trophies
0
Location
Moscow
XP
714
Country
Russia
Does UnitySetup-Nintendo-Switch-Support-for-Editor-2018.2.0b3 work with Unity 2019 or is it limited to the same Unity build from the pastebin? I'm unable to find a leak of the newer version.
From my experience the build target installation only works with a matching Unity version, so, yeah, you'll need the 2018.2.0b3 editor to work with the target installation.
 
D

Deleted User

Guest
From my experience the build target installation only works with a matching Unity version, so, yeah, you'll need the 2018.2.0b3 editor to work with the target installation.
I assumed that as well, issue is there isn't a newer build leak so I have no idea how some users have a newer build.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Bunjolio @ Bunjolio:
    our school network and chrome policies block stuff too
  • Bunjolio @ Bunjolio:
    alot of yt to mp3 sites are blocked by light speed for "Security"
  • SylverReZ @ SylverReZ:
    It was easy to bypass some of the restrictions, as one of the admins left a registry key in the administrative shares drive, which allowed me to get around the blocking of some sites.
  • Bunjolio @ Bunjolio:
    tf does tta mean
  • Bunjolio @ Bunjolio:
    yeah this is chrome os
  • Bunjolio @ Bunjolio:
    cant do shit
  • SylverReZ @ SylverReZ:
    @Bunjolio, Wdym 'TTA'?
  • Bunjolio @ Bunjolio:
    that* as in why yt to mp3 sites are blocked for security
  • SylverReZ @ SylverReZ:
    @Bunjolio, Remember when YouTubetoMP3 was a thing back in the 2010s?
  • SylverReZ @ SylverReZ:
    Until YT updated some stuffs and broke the website.
  • Bunjolio @ Bunjolio:
    I was 2 in 2010
  • SylverReZ @ SylverReZ:
    Oh lol
  • Bunjolio @ Bunjolio:
    lol
  • SylverReZ @ SylverReZ:
    This was in the Minecraft-era.
  • AncientBoi @ AncientBoi:
    lol Bun rockin out at 2 :rofl2:
  • BakerMan @ BakerMan:
    same tbh
  • AncientBoi @ AncientBoi:
    ♫ Mama hully gully, Papa hully gully, Baby hully gully too:rofl2:
  • AncientBoi @ AncientBoi:
    Oh god, I really am old. lol
  • Sicklyboy @ Sicklyboy:
    @SylverReZ, sup Sylv!
    +1
  • AncientBoi @ AncientBoi:
    Anyway, I gotta go to the store. L8er guys. Oops, I better put some clothes on :shy::tpi::rofl2:
  • SylverReZ @ SylverReZ:
    @Sicklyboy, Hey there Sickly.
  • SylverReZ @ SylverReZ:
    @AncientBoi, Make sure the cops don't see that.
    hazbeans @ hazbeans: hi