Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: grimmy on October 31, 2014, 04:39:13 PM

Title: Unity 5 WebGL - Playmaker
Post by: grimmy on October 31, 2014, 04:39:13 PM
I am trying to use Playmaker to export to webGL in Unity 5 beta. It's all too new and shiny to work well togethor so it errors when I try to create a 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.


I tried both the release version and the beta version of Playmaker but each gave the same error. I have posted the bug to Playmaker support but posting here just in case anyone else knows of this or has indeed solved it before. Cheers

Title: Re: Unity 5 WebGL - Playmaker
Post by: djaydino on November 01, 2014, 07:27:49 AM
i think it's better you post in unity3d's forum.

i don't think this is a playmaker bug, but a unity3d bug
can you build into a different platform? (for testing if the bug still there)
Title: Re: Unity 5 WebGL - Playmaker
Post by: grimmy on November 02, 2014, 03:23:37 AM
I only posted here because the editor log seems to point to some Playmaker scripts.

And yes, the game seems to build fine when building as Webplayer.

Cheers
Title: Re: Unity 5 WebGL - Playmaker
Post by: jeanfabre on November 03, 2014, 03:07:48 AM
Hi,

 Can you post the full log for that error then? cause on the paste, it doesn't mention the script in question?

Also, It's likely that PlayMaker will need to release a new version to be fully compatible with Unity 5, as a lot has changed under the hood.


 Bye,

 Jean
Title: Re: Unity 5 WebGL - Playmaker
Post by: kryptopath on November 03, 2014, 09:09:32 AM
i think i have the same error

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

i already submitted a bugreport to unity last week.
Title: Re: Unity 5 WebGL - Playmaker
Post by: grimmy on November 03, 2014, 10:18:18 AM
Editor Log Attached. You can see at the end there are lines such as..

Code: [Select]
compilationhadfailure: True--outfile: Temp/Assembly-CSharp-firstpass.dllThe

class UnityEngine.NetworkPlayer could not be loaded, used in UnityEngine,

Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullThe class

HutongGames.PlayMaker.FsmEventData could not be loaded, used in PlayMaker,

Version=1.6.0.0, Culture=neutral, PublicKeyToken=nullThe class

HutongGames.PlayMaker.Fsm could not be loaded, used in PlayMaker,

etc

Hopefully this can be fixed soon!  I'm kind of relying on WebGL and Playmaker. Crazy I know! :)
Title: Re: Unity 5 WebGL - Playmaker
Post by: kryptopath on November 03, 2014, 01:22:43 PM
i got a response from unity.
perhaps this helps hutong?

http://forum.unity3d.com/threads/webgl-exception.277254/#post-1834280
Title: Re: Unity 5 WebGL - Playmaker
Post by: kryptopath on November 06, 2014, 03:41:15 PM
any news how this will be fixed? is this a unity thing or playmakers?
Title: Re: Unity 5 WebGL - Playmaker
Post by: Alex Chouls on November 06, 2014, 03:58:00 PM
Did you import PlayMakerNACL.unitypackage into your test project? Networking is stripped from that version. All actions should already have UNITY_WEBGL in the list of exclusions...

Playmaker was building with previous versions of the Unity 5 Beta. When I tested with the latest version the build hangs. I've submitted bugs to Unity...

If you submit your own bugs please be sure to import the latest 1.8.0 beta and then the PlayMakerNACL.unitypackage.
Title: Re: Unity 5 WebGL - Playmaker
Post by: cmvrgr on November 07, 2014, 10:30:46 AM
Any news at all ?
Title: Re: Unity 5 WebGL - Playmaker
Post by: kryptopath on November 09, 2014, 10:10:01 AM
i tried a clean new project with playmakerNACL and got this error (+ two warnings):

Assets/PlayMaker/Actions/Network/NetworkGetMessagePlayerProperties.cs(53,63): error CS1061: Type `HutongGames.PlayMaker.FsmEventData' does not contain a definition for `Player' and no extension method `Player' of type `HutongGames.PlayMaker.FsmEventData' could be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/AddComponent.cs(56,88): warning CS0618: `UnityEngineInternal.APIUpdaterRuntimeServices.AddComponent(UnityEngine.GameObject, string, string)' is obsolete: `Unable to resolve the type specified in parameter 'name' at api updating time. Delegating to APIUpdaterRuntimeServices.AddComponent(). In order to be able to build the game, replace this call with GameObject.AddComponent<T>() / GameObject.AddComponent(Type)'


Assets/PlayMaker/Actions/AddScript.cs(51,88): warning CS0618: `UnityEngineInternal.APIUpdaterRuntimeServices.AddComponent(UnityEngine.GameObject, string, string)' is obsolete: `Unable to resolve the type specified in parameter 'name' at api updating time. Delegating to APIUpdaterRuntimeServices.AddComponent(). In order to be able to build the game, replace this call with GameObject.AddComponent<T>() / GameObject.AddComponent(Type)'

this is the 1.7.7.2 version though. where do i get the 1.8 to try this?
Title: Re: Unity 5 WebGL - Playmaker
Post by: Alex Chouls on November 09, 2014, 02:33:20 PM
PM me to get access to the 1.8 beta (you need this for Unity 5 and WebGL).