playMaker

Author Topic: Window Store Build Problem[SOLVED]  (Read 12714 times)

KJammer

  • Playmaker Newbie
  • *
  • Posts: 3
Window Store Build Problem[SOLVED]
« 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!
« Last Edit: September 20, 2016, 12:47:48 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Window Store Build Problem
« Reply #1 on: June 06, 2016, 04:08:45 AM »
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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Window Store Build Problem
« Reply #2 on: June 06, 2016, 07:36:38 AM »
Have you tried newer versions of Unity?

KJammer

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Window Store Build Problem
« Reply #3 on: June 30, 2016, 11:40:34 AM »
Hi!

Just tried with Unity 5.3.5f1 and it's the same error :(

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Window Store Build Problem
« Reply #4 on: July 01, 2016, 03:28:44 AM »
Hi,

 Is it a fresh project or a project you've upgraded?

Bye,

 Jean

KJammer

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Window Store Build Problem
« Reply #5 on: July 01, 2016, 03:37:03 AM »
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
« Last Edit: July 01, 2016, 03:48:46 AM by KJammer »

jonijoba

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Window Store Build Problem
« Reply #6 on: September 14, 2016, 09:53:20 AM »
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


« Last Edit: September 14, 2016, 10:15:27 AM by jonijoba »

jonijoba

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Window Store Build Problem
« Reply #7 on: September 14, 2016, 10:04:57 AM »
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
« Last Edit: September 14, 2016, 10:11:33 AM by jonijoba »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Window Store Build Problem
« Reply #8 on: September 14, 2016, 02:29:16 PM »
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.
« Last Edit: September 14, 2016, 02:41:20 PM by Alex Chouls »

jonijoba

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Window Store Build Problem
« Reply #9 on: September 14, 2016, 10:26:24 PM »
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)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Window Store Build Problem
« Reply #10 on: September 14, 2016, 11:57:11 PM »
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...

jonijoba

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Window Store Build Problem
« Reply #11 on: September 15, 2016, 09:19:51 AM »
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?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Window Store Build Problem
« Reply #12 on: September 15, 2016, 07:03:37 PM »
Please delete this file after importing PlayMakerWP8:
Assets\PlayMaker\PlayMaker.dll.mdb


jonijoba

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Window Store Build Problem
« Reply #13 on: September 18, 2016, 05:08:50 AM »
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!