Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: xESWxDEATH on July 29, 2017, 04:30:20 PM

Title: Unity 2017.1 & playmaker 1.8.4
Post by: xESWxDEATH on July 29, 2017, 04:30:20 PM
With a brand new project and freshly installed unity when importing playmaker and installing it i get this error. (http://i.imgur.com/XAbv7ac.png)

I only get this error when i actually open the playmaker editor window. I have went through playmakers code in unity and have come to the conclusion that whatever function in playmaker.dll handles texture loading in the playmaker editor window has to be changed from Texture2D.LoadImage to ImageConversion.LoadImage as shown here. https://docs.unity3d.com/ScriptReference/ImageConversion.LoadImage.html (https://docs.unity3d.com/ScriptReference/ImageConversion.LoadImage.html)

I really need playmaker to continue working so please help me out if im wrong and there is a fix.
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: Alex Chouls on July 29, 2017, 06:18:53 PM
The Unity API Updater should handle this automatically.

Things to try:
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: xESWxDEATH on July 29, 2017, 07:46:49 PM
I've tried redownloading playmaker and i have always run the api updater but the problem lies in the dll not the api changeable cs files. I have debugged it and it is telling me that the fsmEditor.OnGUI() is where it has the issue. I then went through all the playmaker files and found the FsmEditor class and sure enough it has a function OnGUI() but its blank leading me to believe that its a OOP approach and that it has been pulling the super class function from the playmaker.dll. Again correct me if i am wrong. But i had other friends that own play maker try to set it up and they also get the same issue even running the api updater.
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: xESWxDEATH on July 29, 2017, 07:50:00 PM
P.S in the image also notice that in the file path it shows the name Alex that is not my pc name and Texture2D.LoadImage is not used in the playmaker c# files so this leads me even more to think that the issue is the playmaker.dll or wherever else that might be defined. Also is playmaker 1.8.4 the most recent release to the asset store?
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: Alex Chouls on July 29, 2017, 11:03:27 PM
The Unity API updater updates dlls also.
I just tried it here and it works as expected.
What version of Unity are you using?

Yes, 1.8.4 is the latest version in the store.
The paths stored in the dll debug info are the original paths to the source files when compiled, hence the Alex in the path :)
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: xESWxDEATH on July 29, 2017, 11:06:24 PM
Unity 2017.1.0f3 is the version im on and for whatever reason it won't fix that one error no matter how many times i run the api updater i tried reinstalling unity again and redownloaded playmaker from the asset store since my last message and i am still having the issue.
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: Alex Chouls on July 30, 2017, 12:08:42 AM
Just to double check, you restarted Unity after the API Updater ran? Sometimes it takes a restart to clear the error.

I'm not able to repro here. I saw it once in the past, but a restart fixed it. Maybe check if the project directory is write protected or disk is full? Maybe turn off anti-virus? Basically, something that might be interfering with the API updater...

Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: xESWxDEATH on July 30, 2017, 12:34:00 AM
Well i have my project on a hard drive that has 128gb of space left and i set the permissions of the drive and folder to me with full access i did restart it no matter how many times i do it still does it. I use an antivirus and i have windows defender off by default. The only programs running currently are discord, steam and unity as well as all the background processes windows needs by default.
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: Alex Chouls on July 30, 2017, 01:35:15 AM
Can you zip the project and email it to me using my profile email? (Please don't post it).

Also please submit a Unity bug, and include the project, explaining that the API Updater fails to update the PlayMaker dll. I know the Unity team tests PlayMaker during Unity beta cycles to make sure the updater works, so there must be something particular to your setup that breaks it.

Worst case I can provide you with updated dlls, but I would also like to figure out what's happening in your case. We've had a few reports, but installing the latest Playmaker and running the API Updater has always fixed it.

EDIT: Did you try turning your anti-virus off while importing? It could be preventing the API Updater from modifying the dll.
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: xESWxDEATH on July 30, 2017, 01:54:35 AM
I sent the project files to you and i will submit the bug report in a couple minutes to unity. To your question about the antivirus i don't have one, Although windows defender comes with windows 10 i have it disabled always as soon as windows starts.
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: xESWxDEATH on August 01, 2017, 12:02:49 AM
Any news on a fix or some dlls?
Title: Re: Unity 2017.1 & playmaker 1.8.4
Post by: Alex Chouls on August 02, 2017, 06:33:51 PM
I haven't got any projects in the mail yet. I'll PM you.