Playmaker Forum
PlayMaker Help & Tips => Windows Store Apps Help => Topic started by: KJammer on May 26, 2016, 01:48:37 PM
-
Hi,
Unity: 5.2.3f1
Playmaker:1.8.0.f43
Am having some problems building for Windows Store (Standalone builds fine). Looked through the forums and it looks like the Playmaker version should be ok for Windows store build.
Here's the error:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Missing method .ctor in assembly D:\Test\Assets\Plugins\PlayMaker\Metro\PlayMaker.dll, type System.Runtime.Versioning.TargetFrameworkAttribute
The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in PlayMaker
Can't find custom attr constructor image: D:\Test\Assets\Plugins\PlayMaker\Metro\PlayMaker.dll mtoken: 0x0a000002
Could it be the build settings?
SDK: Universal 10
UWP Build Type: XAML
Unity C# Projects: Checked
Any help will be much appreciated! Thank you!
-
Hi,
Just installed Windows 10 on my pc laptop. Will test soon, please bump mid week if I haven't done it since.
Bye,
Jean
-
Have you tried newer versions of Unity?
-
Hi!
Just tried with Unity 5.3.5f1 and it's the same error :(
-
Hi,
Is it a fresh project or a project you've upgraded?
Bye,
Jean
-
It's an existing standalone project trying to build for Universal 10 for the first time
There's also these errors at the bottom
The class UnityEngine.NetworkPlayer could not be loaded, used in UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.FsmEventData could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.Fsm could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.FsmLog could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.Fsm could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.FsmState could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.Fsm could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class BitConverter could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.FsmStateAction could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class HutongGames.PlayMaker.Fsm could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class PlayMakerFSM could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class PlayMakerFSM could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
The class PlayMakerFSM could not be loaded, used in PlayMaker, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null
Thanks for helping! :D
-
Hi!
Same problem using this setup:
-Empty project with only playmaker 1.8.2
-unity4.7.2 perso, running on windows10
-Build target: windowsPhone8
Thanks for your help, i need to publish a project on WP8 for a customer next week and I'm stuck on the build.
Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
-
Error as well with playmaker 1.8.3:
Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
-
Building for WP8 in Unity 4.x is a little convoluted because of a Unity bug with imported dlls. After switching to the WP8 build target you need to import:
Assets\PlayMaker\Versions\PlayMakerWP8.unitypackage.
This will replace the main Playmaker dll with a version compatible with WP8.
This should only be necessary in Unity 4.x. In Unity 5.x the plugin import settings should select the correct dll for the build target.
-
Thanks for your answer.
I made a new simple test from your instructions:
-blank project with unity4.7.2 on windows10
-install playmaker 1.8.3
-decompress PlaymakerWP8.unitypackage
-create a simple MainCamera scene
-Build for WP8
Have you already seen this error?
Error building Player: Exception: Failed to run serialization weaver with command line "Temp\StagingArea\Data\Managed\PlayMaker.dll" -pdb -verbose -unity-engine=Temp\StagingArea\Data\Managed\UnityEngine.dll "Temp\StagingArea\TempSerializationWeaver".[Temp\StagingArea\Data\Managed\PlayMaker.dll]
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.pdb
Weaving assembly C:\Users\retina\Documents\New Unity Project 11\Temp\StagingArea\Data\Managed\PlayMaker.dll
Symbols will be read from Temp\StagingArea\Data\Managed\PlayMaker.dll.mdb
Mono.CompilerServices.SymbolWriter.MonoSymbolFileException: Symbol file `C:\Users\retina\Documents\New Unity Project 11\Temp\StagingArea\Data\Managed\PlayMaker.dll.mdb' does not match assembly `C:\Users\retina\Documents\New Unity Project 11\Temp\StagingArea\Data\Managed\PlayMaker.dll'
� Mono.CompilerServices.SymbolWriter.MonoSymbolFile.CheckGuidMatch(Guid other, String filename, String assembly)
� Mono.CompilerServices.SymbolWriter.MonoSymbolFile.ReadSymbolFile(ModuleDefinition module, String filename)
� Mono.Cecil.Mdb.MdbReaderProvider.GetSymbolReader(ModuleDefinition module, String fileName)
� Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
� Mono.Cecil.ModuleReader.CreateModuleFrom(Image image, ReaderParameters parameters)
� Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
� usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition)
� usw.Weaver.Weave()
� usw.Program.RunProgram(ConversionOptions options)
� usw.Program.Main(String[] args)
-
Do you use Bitdefender antivirus? This thread suggests disabling it:
http://forum.unity3d.com/threads/windows-8-phone-failed-to-run-serialization-weaver.236660/
I'll run some tests tomorrow with WP8 builds to see if I can repro...
-
Hi Alex,
No bitdefender firewall/antivirus installed.
I tried:
- stopping windows firewall
- launching unity4.7.2 as admin
- building for WP8 and also WSA phone 8.1
but still the same error.
Any idea?
-
Please delete this file after importing PlayMakerWP8:
Assets\PlayMaker\PlayMaker.dll.mdb
-
That works,
I had an error (Win IO 32 returned 112) but I was just a lack of space disk.
Thank you very much for your awesome support!