Homebrew Question Trouble building for Swich with Unity3D

  • Thread starter Thread starter mcdij
  • Start date Start date
  • Views Views 97,025
  • Replies Replies 290
I don't have this one, but generally you can only expect one of these SDKs to work with the version they're bundled with.

The 9.2 was confirmed to work from Unity 2019.2.11 up to Unity 2020.1.0b8. Was hoping it would run in a later version.
 
I understand that this only exports NSP and not NRO as it's the official Nintendo SDK right?
Is there any open source alternative?
you can make devkitpro to compile like the sdk but you will need to make your own unity compiling system
 
Last edited by Manurocker95,
I understand that this only exports NSP and not NRO as it's the official Nintendo SDK right?
Is there any open source alternative?
It's not Unity, but Godot is comparable to a point, and can be built for Switch with the homebrew toolchain, plus the whole engine is open source if that helps https://github.com/Stary2001/godot
 
It's not Unity, but Godot is comparable to a point, and can be built for Switch with the homebrew toolchain, plus the whole engine is open source if that helps https://github.com/Stary2001/godot
That's great and a good alternative. But I find it disappointing that almost no one has used it and released Godot games for Homebrew
 
  • Like
Reactions: hippy dave
I have my nsp, but when I copy the archive "prodencrypt-Unity-fix" into the SDK for the decrypt I get these errors

Authoring .nsp ROM file failed with command C:\NintendoSDK\Tools\CommandLineTools\AuthoringTool\AuthoringTool.exe createnspmeta -o "C:\Users\s\Desktop\Nouveau dossier (3)\New Unity Project\Temp\StagingArea\SwitchPlayer.nspd" --meta "C:\Users\s\Desktop\Nouveau dossier (3)\New Unity Project\Temp\StagingArea\Application.aarch64.lp64.nmeta" --type Application
at UnityEditor.Switch.PostProcessSwitch.PostProcess (UnityEditor.BuildTarget target, UnityEditor.BuildOptions options, System.String installPath, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String stagingAreaDataManaged, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) [0x00abc] in C:\buildslave\unity\build\PlatformDependent\Switch\Editor\Managed\PostProcessSwitch.cs:407
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


System.String playerPackage, System.String stagingAreaDataManaged, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/PlatformDependent/Switch/Editor/Managed/PostProcessSwitch.cs:537)
UnityEditor.Switch.SwitchBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/Switch/Editor/Managed/ExtensionModule.cs:448)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Build completed with a result of 'Failed' in 25 seconds (25214 ms)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <cf7d2c2e83f749e8943578126f9eff4b>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <cf7d2c2e83f749e8943578126f9eff4b>:0
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
 
Has anyone managed to get this version to work?
aHR0cHM6Ly9iZXRhLnVuaXR5M2QuY29tL2Rvd25sb2FkLzBiNWU5YTFjLTAxMzQtNDU1Yi1hMWZkLTMyOGMyOWVlZjE3Yi9Vbml0eVNldHVwLU5pbnRlbmRvLVN3aXRjaC1TdXBwb3J0LWZvci1FZGl0b3ItMjAyMS4yLjBiMTEuZXhl

It doesn't load any scenes and I get a dark screen and a crash
 
Has anyone managed to get this version to work?
aHR0cHM6Ly9iZXRhLnVuaXR5M2QuY29tL2Rvd25sb2FkLzBiNWU5YTFjLTAxMzQtNDU1Yi1hMWZkLTMyOGMyOWVlZjE3Yi9Vbml0eVNldHVwLU5pbnRlbmRvLVN3aXRjaC1TdXBwb3J0LWZvci1FZGl0b3ItMjAyMS4yLjBiMTEuZXhl

It doesn't load any scenes and I get a dark screen and a crash

Working on 2021.2.15f1
 
Working on 2021.2.15f1
I don't know what you did but it doesn't work

1648662467312.png

Library\PackageCache\[email protected]\Runtime\EventSystem\UIElements\PanelEventHandler.cs(194,62): error CS1503: Argument 2: cannot convert from 'UnityEngine.UIElements.PanelEventHandler.PointerEvent' to 'UnityEngine.Vector3'

Error building Player because scripts had compiler errors

Build completed with a result of 'Failed' in 2 seconds (2240 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002d8] in <2919c21692194bd4aadcc86b58da6722>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <2919c21692194bd4aadcc86b58da6722>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
Last edited by Naminave,
I don't know what you did but it doesn't work

View attachment 304015
Library\PackageCache\[email protected]\Runtime\EventSystem\UIElements\PanelEventHandler.cs(194,62): error CS1503: Argument 2: cannot convert from 'UnityEngine.UIElements.PanelEventHandler.PointerEvent' to 'UnityEngine.Vector3'

Error building Player because scripts had compiler errors

Build completed with a result of 'Failed' in 2 seconds (2240 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002d8] in <2919c21692194bd4aadcc86b58da6722>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <2919c21692194bd4aadcc86b58da6722>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Welp, it's working for me on 2021.2.17f1 as well x)
 
Are you using UnitySetup-Nintendo-Switch-Support-for-Editor-2021.2.0b11 on that version of Unity?

similar error
View attachment 305021
Obviously not. That addon is for unity 2021.2.0 beta. And confirm working on 2021.2.18f1 as well.
 

Site & Scene News

Popular threads in this forum