Help! I Failed to build from Unity to Wii U

gomgo

Well-Known Member
Newcomer
Joined
Aug 30, 2021
Messages
79
Trophies
0
Location
Spain
Website
gomgoblog.wordpress.com
XP
169
Country
Spain
Why it tells this:

The Assembly mscorlib is referenced by UnityEngine ('C:/Program Files/Unity/Hub/Editor/2017.1.2f1/Editor/Data/PlaybackEngines/WiiUPlayer/Managed/UnityEngine.dll'). But the dll is not allowed to be included or could not be found.

Do you miss some libs into the compiler or PATH? Because it tells that dll is not allowed to be included.....
Try another Stupid test (because I faced in the past with other projects) , try to run Unity as Administrator.
Ok, @CrisMod In that directory i can see this two files, as Admin it give me the same error:
1636911992873.png
 

CrisMod

Well-Known Member
Member
Joined
May 4, 2020
Messages
411
Trophies
0
Age
38
XP
1,214
Country
Italy
I tried to read into the UnityEngine.dll , and the result it's below......

Maybe you are missing some register product, and the compile goes in error because doesnt'allow you to finish to compile the project?!

 

Attachments

  • Immagine 2021-11-15 015011.png
    Immagine 2021-11-15 015011.png
    53 KB · Views: 81

CrisMod

Well-Known Member
Member
Joined
May 4, 2020
Messages
411
Trophies
0
Age
38
XP
1,214
Country
Italy
MMmmmmh :unsure: ... look now I have to go i will go back tomorrow... In meantime you have to discver why the compiler cannot finish the job as cannot include the lib. So the scenario are two:

1) Missing libs (but I don't think so)
2) some setting Enviroment Path.

In case you cannot find anything, if you can try to delete everything and re install Unity from zero set step by step with the Enviroment PATH settings ,and try to installl Unity into C:/Unity.
 

gomgo

Well-Known Member
Newcomer
Joined
Aug 30, 2021
Messages
79
Trophies
0
Location
Spain
Website
gomgoblog.wordpress.com
XP
169
Country
Spain
MMmmmmh :unsure: ... look now I have to go i will go back tomorrow... In meantime you have to discver why the compiler cannot finish the job as cannot include the lib. So the scenario are two:

1) Missing libs (but I don't think so)
2) some setting Enviroment Path.

In case you cannot find anything, if you can try to delete everything and re install Unity from zero set step by step with the Enviroment PATH settings ,and try to installl Unity into C:/Unity.
Ok, i will try, we talk tomorrow

Edit: I get the same error with the from zero installation so i will put the log here:

Code:
ArgumentException: The Assembly mscorlib is referenced by UnityEngine ('C:/Unity/Editor/Data/PlaybackEngines/WiiUPlayer/Managed/UnityEngine.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
UnityEditor.HostView:OnGUI()
My .env Variables are this:
1636913455997.png
 
Last edited by gomgo,

CrisMod

Well-Known Member
Member
Joined
May 4, 2020
Messages
411
Trophies
0
Age
38
XP
1,214
Country
Italy
Ok, i will try, we talk tomorrow

Edit: I get the same error with the from zero installation so i will put the log here:

Code:
ArgumentException: The Assembly mscorlib is referenced by UnityEngine ('C:/Unity/Editor/Data/PlaybackEngines/WiiUPlayer/Managed/UnityEngine.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
UnityEditor.HostView:OnGUI()
My .env Variables are this:
View attachment 284841
For sure it's some pointer variable problem... also I noticed that CAFE_ROOT it's under your User account as for such Enviroment better to avoid.

Try to make the Variable in below way (with the same tree sub folder structures):

Immagine 2021-11-15 123921.png


Not sure about the CAFE_BOOT_MODE and CAFE_HARDWARE but add anyway, after we are in time to delete if unnecessaries....

Edit 2: Also the GHS PATH and tree subfolder change as below:
Immagine 2021-11-15 124750.png


Edit 3:
if still the problem try to delete the following file ( index-local.xml) in C:\ProgramData\Unity\index-local.xml

This refresh the compiler from the past errors, but you need to search the project folder again in the preload Unity Menu.

Edit 4: I think the problem it's exactly this.... https://docs.unity3d.com/Manual/UsingDLL.html
I'm looking for some solution......
 
Last edited by CrisMod,

CrisMod

Well-Known Member
Member
Joined
May 4, 2020
Messages
411
Trophies
0
Age
38
XP
1,214
Country
Italy
FOUND THE SOLUTIONSSSSSSSSSSSS FOR THIS ERROR :wacko:

(keep WiiU for Building on left menu) Go in Build Settings > Player Settings > On the right of the Unity Software will appear a new Menu > Configuration > Scripting Runtime Version > (change in) Stable (.NET 3.5 Equivalent).

The problem of this compiling error it's related to the NET Framework 4.6

Immagine 2021-11-15 180431.png
 

gomgo

Well-Known Member
Newcomer
Joined
Aug 30, 2021
Messages
79
Trophies
0
Location
Spain
Website
gomgoblog.wordpress.com
XP
169
Country
Spain
FOUND THE SOLUTIONSSSSSSSSSSSS FOR THIS ERROR :wacko:

(keep WiiU for Building on left menu) Go in Build Settings > Player Settings > On the right of the Unity Software will appear a new Menu > Configuration > Scripting Runtime Version > (change in) Stable (.NET 3.5 Equivalent).

The problem of this compiling error it's related to the NET Framework 4.6

View attachment 284951
OH, Thanks, i will try, i'm not at home right now, i hope it works, thank you so much for the help, so the menu is in Player Settings, on "other settings" section?
 

gomgo

Well-Known Member
Newcomer
Joined
Aug 30, 2021
Messages
79
Trophies
0
Location
Spain
Website
gomgoblog.wordpress.com
XP
169
Country
Spain
For sure it's some pointer variable problem... also I noticed that CAFE_ROOT it's under your User account as for such Enviroment better to avoid.

Try to make the Variable in below way (with the same tree sub folder structures):

View attachment 284935

Not sure about the CAFE_BOOT_MODE and CAFE_HARDWARE but add anyway, after we are in time to delete if unnecessaries....

Edit 2: Also the GHS PATH and tree subfolder change as below:
View attachment 284939

Edit 3:
if still the problem try to delete the following file ( index-local.xml) in C:\ProgramData\Unity\index-local.xml

This refresh the compiler from the past errors, but you need to search the project folder again in the preload Unity Menu.

Edit 4: I think the problem it's exactly this.... https://docs.unity3d.com/Manual/UsingDLL.html
I'm looking for some solution......
I don't have any DevKit, just my Wii U, but in a post from Rabisco it gives a program to transform it to a WUP folder, so i don't have any CAFE_BOOT_MODE - CAFE_CONTENT_DIR CAFE_HARDWARE - CAFE_META_DIR - CAFE_MLC_DIR
FOUND THE SOLUTIONSSSSSSSSSSSS FOR THIS ERROR :wacko:

(keep WiiU for Building on left menu) Go in Build Settings > Player Settings > On the right of the Unity Software will appear a new Menu > Configuration > Scripting Runtime Version > (change in) Stable (.NET 3.5 Equivalent).

The problem of this compiling error it's related to the NET Framework 4.6

View attachment 284951
Ok, now i'm getting this two errors:
Code:
Exception: Failed to compile C into .o (C:/Projects/WUPTest\_Intermediate\WiiUStartupConfig.cpp)
UnityEditor.WiiU.PostProcessCafePlayer+CafeUtils.CompileCC (UnityEditor.WiiU.CafeSdkEnv sdkEnv, UnityEditor.WiiU.ProcessEnv procEnv, UnityEditor.WiiU.ToolchainEnv toolchain, System.String input, System.String outName) (at C:/buildslave/unity/build/PlatformDependent/WiiU/Editor/Managed/PostProcessWiiUPlayer.cs:846)
UnityEditor.WiiU.PostProcessCafePlayer+CafeUtils.BuildElf (UnityEditor.WiiU.CafeSdkEnv cafeSdk, UnityEditor.WiiU.ToolchainEnv toolchain, UnityEditor.WiiU.ProcessEnv buildProc, System.String elfFileName, System.Collections.Generic.List`1 sources, System.Collections.Generic.List`1 unityLibs, StartupConfig startup, Boolean enableNetAPI) (at C:/buildslave/unity/build/PlatformDependent/WiiU/Editor/Managed/PostProcessWiiUPlayer.cs:926)
UnityEditor.WiiU.PostProcessCafePlayer.BuildRPX (UnityEditor.WiiU.CafeSdkEnv cafeSdk, System.String intermediate, System.String playerPackage, System.Collections.Generic.List`1 linkerInput, System.String targetDir, StartupConfig startup, Boolean installInBuildsFolder, System.String elf, Boolean enableNetAPI) (at C:/buildslave/unity/build/PlatformDependent/WiiU/Editor/Managed/PostProcessWiiUPlayer.cs:1365)
UnityEditor.HostView:OnGUI()
and this:
Code:
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
UnityEditor.HostView:OnGUI()

1636982546369.png
 

CrisMod

Well-Known Member
Member
Joined
May 4, 2020
Messages
411
Trophies
0
Age
38
XP
1,214
Country
Italy
I don't have any DevKit, just my Wii U, but in a post from Rabisco it gives a program to transform it to a WUP folder, so i don't have any CAFE_BOOT_MODE - CAFE_CONTENT_DIR CAFE_HARDWARE - CAFE_META_DIR - CAFE_MLC_DIR

Ok, now i'm getting this two errors:
Code:
Exception: Failed to compile C into .o (C:/Projects/WUPTest\_Intermediate\WiiUStartupConfig.cpp)
UnityEditor.WiiU.PostProcessCafePlayer+CafeUtils.CompileCC (UnityEditor.WiiU.CafeSdkEnv sdkEnv, UnityEditor.WiiU.ProcessEnv procEnv, UnityEditor.WiiU.ToolchainEnv toolchain, System.String input, System.String outName) (at C:/buildslave/unity/build/PlatformDependent/WiiU/Editor/Managed/PostProcessWiiUPlayer.cs:846)
UnityEditor.WiiU.PostProcessCafePlayer+CafeUtils.BuildElf (UnityEditor.WiiU.CafeSdkEnv cafeSdk, UnityEditor.WiiU.ToolchainEnv toolchain, UnityEditor.WiiU.ProcessEnv buildProc, System.String elfFileName, System.Collections.Generic.List`1 sources, System.Collections.Generic.List`1 unityLibs, StartupConfig startup, Boolean enableNetAPI) (at C:/buildslave/unity/build/PlatformDependent/WiiU/Editor/Managed/PostProcessWiiUPlayer.cs:926)
UnityEditor.WiiU.PostProcessCafePlayer.BuildRPX (UnityEditor.WiiU.CafeSdkEnv cafeSdk, System.String intermediate, System.String playerPackage, System.Collections.Generic.List`1 linkerInput, System.String targetDir, StartupConfig startup, Boolean installInBuildsFolder, System.String elf, Boolean enableNetAPI) (at C:/buildslave/unity/build/PlatformDependent/WiiU/Editor/Managed/PostProcessWiiUPlayer.cs:1365)
UnityEditor.HostView:OnGUI()
and this:
Code:
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
UnityEditor.HostView:OnGUI()

View attachment 284979
Ok, at least a step forward, another silly question do you have the GHS with the Key?
In meantime I will try to understand why this erro......
 

gomgo

Well-Known Member
Newcomer
Joined
Aug 30, 2021
Messages
79
Trophies
0
Location
Spain
Website
gomgoblog.wordpress.com
XP
169
Country
Spain
Ok, at least a step forward, another silly question do you have the GHS with the Key?
In meantime I will try to understand why this erro......
Yes, i have installed it and then I putted the License File on to the program when it asked
1636984896255.png


Also when i open the project it says this on the log:
1636984666270.png
 
Last edited by gomgo,

gomgo

Well-Known Member
Newcomer
Joined
Aug 30, 2021
Messages
79
Trophies
0
Location
Spain
Website
gomgoblog.wordpress.com
XP
169
Country
Spain
YEAH!! It was that! Now it exported the program without any problem, Thank you so much for the help @CrisMod Now i can test my own games on my Wii U :D

Edit: yep, i tryed to execute it on my Wii U with Loadiine and it worked, Thanks to everyone!!!
 
Last edited by gomgo,
  • Like
Reactions: CrisMod

CrisMod

Well-Known Member
Member
Joined
May 4, 2020
Messages
411
Trophies
0
Age
38
XP
1,214
Country
Italy
YEAH!! It was that! Now it exported the program without any problem, Thank you so much for the help @CrisMod Now i can test my own games on my Wii U :D

Edit: yep, i tryed to execute it on my Wii U with Loadiine and it worked, Thanks to everyone!!!
Happy to hear that :grog: man, I was in doubt with GHS because the compiling error that you shows it brings me around GHS and creates just empty folders.....
 
  • Like
Reactions: gomgo
General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
  • BentlyMods @ BentlyMods:
    My fav actvity is:

    mario-dancing.gif
  • Psionic Roshambo @ Psionic Roshambo:
    Do the Mario lol
  • K3N1 @ K3N1:
    🍑
  • K3N1 @ K3N1:
    Whoever developed Bramble was smoking that good shit fucking gnomes
    K3N1 @ K3N1: Whoever developed Bramble was smoking that good shit fucking gnomes