playMaker

Author Topic: Asset Store Bug!  (Read 962 times)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3605
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Asset Store Bug!
« on: February 05, 2019, 12:08:03 PM »
EDIT: Jean Fabre has a better guide to working around this Asset Store bug here.

If you have errors with a fresh install from the Asset Store you may be running into this Asset Store bug:

The Unity Asset Store does not properly keep track of which version an asset was downloaded for. For example, if you run Unity 2018.3 and download Playmaker you get the version for 2018.3. If you now open Unity 2017.4 and import Playmaker, the Asset Store will try to import the 2018.3 version and you will get errors!

To fix this, you have to manually re-download PlayMaker when you switch Unity versions. The new Asset Store UI does not make this easy, but you can switch to Shop on Old Store in the Asset Store settings. Then go to the Download Manager, find Playmaker and manually download it again.

Alternatively, you can delete the Asset Store cache (find Hutong Games LLC to just delete Playmaker):
https://answers.unity.com/questions/690729/how-do-you-remove-packages-already-downloaded-from.html

Sorry for the inconvenience! We reported this bug to Unity quite some time ago, and they were able to reproduce it, but we're still waiting on a fix...

« Last Edit: April 30, 2019, 04:45:40 PM by Alex Chouls »

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Asset Store Bug!
« Reply #1 on: May 25, 2019, 07:16:24 PM »
So I updated to 2019.1 and updated playmaker and got 1.9.0.p16, and ran into some issues with building and a recommendation was to downgrade my project to 2018.2.20f1 and so I did.  I deleted the cached playmaker file from ~/Library/Unity/Asset Store-5.x/Hutong Games LLC/ Editor Extensions/Playmaker.unitypackage and redownloaded from the asset store and i got 1.9.0 but I am still getting the same error as I did on 1.9.0.p16.


----
Unloading broken assembly Assets/PlayMaker/Editor/PlayMakerEditor.dll, this assembly can cause crashes in the runtime
----


When I try to open to open the playmaker editor, its blank and I get spammed with:


----
TypeLoadException: Could not load type 'HutongGames.PlayMakerEditor.FsmEditor' from assembly 'PlayMakerEditor, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null'.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.SendUpdate () (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:367)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:191)
----

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3605
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Asset Store Bug!
« Reply #2 on: May 25, 2019, 09:35:45 PM »
Did you follow the steps on this page:
https://hutonggames.com/playmakerforum/index.php?topic=20177

What issues did you run into with building? Is there a thread you can point me to?

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Asset Store Bug!
« Reply #3 on: May 26, 2019, 05:59:51 AM »
The 3 dots to escape to the old asset store no longer exists.

Here are some posts to the Unloading Broken Assembly PlayMakerEditor.dll error, but they are all unresolved
By Pudgy https://hutonggames.com/playmakerforum/index.php?topic=19873.msg86873
By Plancksize https://hutonggames.com/playmakerforum/index.php?topic=18466.msg81189#msg81189

My issue is gradle prewarm when exporting an android build.  Here are the threads.
https://forum.unity.com/threads/gradle-prewarm-failed-in-unity-2018-3-3f1.620206/
https://forum.unity.com/threads/unity-2018-2-3f1-build-issue-with-gradle-and-googleaidl.546478/#post-3917137
https://forum.unity.com/threads/gradle-prewarm-failed-in-2018-3.606766/

I've tried changing the android manifest, changing android SDK to 28.0.2, 28.0.3, 29.0.0.-rc1, 29.0.0.-rc2, 29.0.0.-rc3

I also looked through this: https://docs.unity3d.com/Manual/android-gradle-troubleshooting.html but since building worked before upgrading, I doubt that anything new/duplicate has been added.
« Last Edit: May 26, 2019, 06:03:01 AM by PlaymakerNOOB »

megmaltese

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
Re: Asset Store Bug!
« Reply #4 on: May 31, 2019, 08:09:29 AM »
Man their web programmer SUCKS BADLY!
The AS is terribly slow and the interface is surely not immediate, quick and friendly.
One of the worst (top level) stores I've ever seen.

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Asset Store Bug!
« Reply #5 on: June 02, 2019, 05:27:32 PM »
I was able to 'fix' it by just using 2019.1 or higher when creating a new project.  If I import my existing project it has random errors. 

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4188
    • View Profile
    • jinxtergames
Re: Asset Store Bug!
« Reply #6 on: June 03, 2019, 08:33:53 AM »
Hi.
Ye the new store search engine is bad as well
way less hits than there should be.
it works even better just to search on google in some cases.

Now the old store is gone, you need to remove the PlayMaker asset manually and redownload.

Here is where you can find the folder :
  • macOS: ~/Library/Unity/Asset Store
  • Windows: C:\Users\accountName\AppData\Roaming\Unity\Asset Store