Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: coggia on January 02, 2018, 08:32:43 AM

Title: console errors after updating playmaker[SOLVED]
Post by: coggia on January 02, 2018, 08:32:43 AM
Hello
I've updated playmaker to 1.8.6:
- by import it from the assetstore first
-then by using the playmaker installation window (with the pre-update check, and installing)

After updating I got these console error messages :
Assets/PlayMaker/Editor/BaseGuidedTourWindow.cs(192,49): error CS0619: `UnityEngine.EventType.mouseDown' is obsolete: `Use MouseDown instead (UnityUpgradable) -> MouseDown'

&

Internal error: Recursion detected while updating scripts (assembly name: Assembly-CSharp-Editor.dll)

Try it to install twice, failed twice.

I'm under Unity2017.3.0f3
Title: Re: console errors after updating playmaker
Post by: djaydino on January 03, 2018, 03:33:53 PM
Hi,
i just had the same issue, try re downloading before importing again, them import again and in the project folder go to :
Playmaker/Editor/Install and double click Playmaker.1.8.6

and on my side the error was gone after that.
Title: Re: console errors after updating playmaker
Post by: coggia on January 04, 2018, 03:04:03 AM
Thanks,
But the asset store (even web based) does not allow me to download the asset, it opens directly in unity.
So far i've tried to import it again from asset store, then go to the asset/playmaker/editor/install and install it from here and I get the same error.

How do you download the asset without passing by unity?
Title: Re: console errors after updating playmaker
Post by: djaydino on January 04, 2018, 08:40:10 AM
Hi,
You should be able to download it in the asset store inside unity not from the web browser.
go to Windows or press ctrl-9

have you tried on a clean project?
Title: Re: console errors after updating playmaker
Post by: coggia on January 04, 2018, 01:39:42 PM
Hi again,
Ok I found how to download from the asset store, did again all the steps : same issue :/

But on new clean project, 1.8.6 is working ok.

Too bad that it fails on my current project  :(
Title: Re: console errors after updating playmaker
Post by: omgitstri on January 04, 2018, 02:26:25 PM
Hello,

I'm just guessing at this point but i think if you just change

"UnityEngine.EventType.mouseDown"

to

"UnityEngine.EventType.MouseDown"

it should work, I did something similar to it with my project and it worked >.>
Title: Re: console errors after updating playmaker
Post by: Alex Chouls on January 04, 2018, 06:57:42 PM
Strange that the Unity API updater is failing in your project.
You could submit a bug report to Unity for them to look into it.

These events are updated in the next update, but in the meantime, you could copy the Playmaker dlls from a new project into your current project.
Title: Re: console errors after updating playmaker
Post by: jeanfabre on January 05, 2018, 04:03:57 AM
Hi,

 I can't replicate this... odd. Are you on windows or Mac?

if your project already has playmaker and it has trouble to update, clean up PlayMaker, by deleting the PlayMaker folder ( make sure you moved out the Resources/PlayMakerGlobals and your templates out of that "PlayMaker" folder first). Also delete the Plugins folder content (just the PlayMaker dlls, if you have more assets than just PlayMaker in there)

When you install PlayMaker from a project that has errors, the wizard is not going to be launched, so simply manually install by importing the package situated in "PlayMaker/Editor/Install/"

Also, it might be good to check if Unity can run the api updater before you do that, maybe that's all that is required: go to the Unity Menu "Assets/Run api updater" if it's not greyed out.

 Bye,

 Jean
Title: Re: console errors after updating playmaker
Post by: coggia on January 05, 2018, 05:24:02 AM
Hi everyone, thanks for trying to help.

So i'm on mac high sierra, Unity 2017 3.0f3 stable release.

My Assets/Run api updater is grayed.

And i've tried to delete the playmaker & plugin folder, reinstall playmaker : I get the same errors.
To be noticed that everytime unity asks me to make an API update (you know, when it converts automatically old syntax to new) and i choose Yes.
And everytime the errors comes from the playmaker code, not mine (which is quite simple btw)
Title: Re: console errors after updating playmaker
Post by: djaydino on January 05, 2018, 06:10:06 AM
Hi.
If you want you can upload your project and pm me a link (use a password protected place, don't place it on a public place)
So i can have a look if i can get rid of the error.

Do you have backups from your project?

If so could you also upload(if possible) and send me the link so i can test/see what happens when updating.

If not you should make one now, and make a habit of backing up regularly :)
Title: Re: console errors after updating playmaker
Post by: coggia on January 05, 2018, 06:42:47 AM
I'm really thankful for your hand up,
but it's a really small project that i'm using to familiarize myself with playmaker, so I guess I'll finish it without updating it, and start my other project with Playmaker 1.8.6 on fresh install

I really appreciate the help anyway,
I'm just hoping that I'll not encounter this kind of troubles in my future projects when I'll upload playmaker :)
Title: Re: console errors after updating playmaker
Post by: djaydino on January 05, 2018, 07:16:26 AM
Hi.
No problem, but still it would be nice for us to test so we can pinpoint the issue/bug and solve the problem or report to unity if it is a unity issue :)

You can also send a bug report inside unity, go to : Playmaker/Tools/Submit Bug Report.

Title: Re: console errors after updating playmaker
Post by: coggia on January 05, 2018, 09:15:37 AM
okay, I just PM it to you,
If it can helps anyone if there is a real issue here other than with my computer
Title: Re: console errors after updating playmaker
Post by: jeanfabre on January 10, 2018, 01:28:49 AM
Hi,

 ok, it happened to me today! so basically, you just need to run the api updater and it's fine ( menu Assets/Run API Updater)

 Bye,

 Jean
Title: Re: console errors after updating playmaker[SOLVED]
Post by: coggia on January 12, 2018, 06:18:58 AM
Oh ok, but how come my "Run API Updater" is grayed out and not yours? (I cannot choose it )
Title: Re: console errors after updating playmaker[SOLVED]
Post by: Alex Chouls on January 12, 2018, 02:28:44 PM
I think there's a bug in the Unity API Updater. Sometimes it fails and then won't let you run it again. I haven't been able to repro here.

One thing you could check is the file write privileges for your project. Make sure no files are read-only for some reason. That would stop the API Updater from changing those files.
Title: Re: console errors after updating playmaker[SOLVED]
Post by: coggia on January 13, 2018, 02:28:16 AM
I'm under MacOS, not a file is locked.
So i guess it's really a bug.
Anyway, as it don't reproduce on a clean install, i'll have just to finish my tests on the old version, and start later on a new clean install.
thanks for all your times & efforts everyone.
Title: Re: console errors after updating playmaker[SOLVED]
Post by: Alex Chouls on January 13, 2018, 09:59:48 AM
You could manually copy the updated dlls from a new project to the old project: Assets\PlayMaker\Editor\PlayMakerEditor.dll

We will also have an update soon that won't need the API Updater to run.
Title: Re: console errors after updating playmaker[SOLVED]
Post by: coggia on January 14, 2018, 12:47:25 AM
Yes indeed, by updating copying manually the PlayMaker.dll, it works

Thanks for your time and efforts :)