Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: stvbabb on July 02, 2018, 09:11:38 AM

Title: ActionHelpers.cs Build Error [SOLVED]
Post by: stvbabb on July 02, 2018, 09:11:38 AM
Hello,

I'm using the latest version of playmaker, 1.9 p3 and Unity 2018.1.2f1 and when I try to build my game, I get the following error:

Assets\PlayMaker\Actions\ActionHelpers.cs(699,36): error CS1061: 'Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)

The script is pretty complex and beyond my meager coding skills to fix. Any help would be great. I'm under a bit of a deadline and have to get a build out asap.

Thanks for the support,
Steve

Title: Re: ActoinHelpers.cs Build Error
Post by: Alex Chouls on July 02, 2018, 10:57:16 AM
What platform are you building for?
Title: Re: ActoinHelpers.cs Build Error
Post by: stvbabb on July 02, 2018, 02:18:31 PM
Hi Alex,

Building for the Hololens.

Thanks,
Steve
Title: Re: ActoinHelpers.cs Build Error
Post by: Alex Chouls on July 02, 2018, 02:45:57 PM
I haven't built to hololens yet, I'll need to investigate and setup the tools etc.
Are you able to build an empty project for hololens? Installed all the correct sdks etc.?

EDIT: Just made a build for hololens here without a problem.
Title: Re: ActoinHelpers.cs Build Error
Post by: stvbabb on July 02, 2018, 04:32:27 PM
Good idea - this is the first time I've integrated Playmaker into my Hololens workflow. I'll try with a fresh project, and a fresh install of Playmaker tomorrow morning and report back.

Thanks!
Title: Re: ActoinHelpers.cs Build Error
Post by: stvbabb on July 03, 2018, 09:19:41 AM
Hmm, seems to not work out. I started a fresh project, as well.

I'm using the latest version of Unity; 2018.1.6f1, the latest Playmaker version I can use, and same error at build time.

I am also using the iTween legacy package for Playmaker with the iTween asset. I'll try removing that and see how it goes.

Thanks,
Steve
Title: Re: ActoinHelpers.cs Build Error
Post by: Alex Chouls on July 03, 2018, 09:24:05 AM
Are you able to build for Hololens without Playmaker imported? Just a new Unity project, maybe with a standard asset to test.
Title: Re: ActoinHelpers.cs Build Error
Post by: stvbabb on July 03, 2018, 09:48:28 AM
(I'll try that now and report back.)

Seems to work fine without Playmaker installed. I'll try a few more things.
Title: Re: ActoinHelpers.cs Build Error
Post by: stvbabb on July 03, 2018, 10:28:25 AM
I also tired Unity 2017.4.1f1, Playmaker, HoloTool Kit and still the same error.

Not sure what else to do.

Title: Re: ActoinHelpers.cs Build Error
Post by: stvbabb on July 03, 2018, 10:57:00 AM
Got a build out with Unity 2018.1.6f and Playmaker 1.9 w/Holo Toolkit by switching the scripting backend from .net to IL2CPP.

Now have to do some Visual Studio stuff, but that's a separate issue.

So far this is looking promising.

Thanks,
Steve
Title: Re: ActionHelpers.cs Build Error
Post by: stvbabb on July 03, 2018, 01:08:08 PM
It worked! That seemed to be the issue. Build went fine and deployment went fine. Might be worth putting that somewhere in the FAQ regarding folks using mixed reality stuff?

Thanks for the support,
Steve
Title: Re: ActionHelpers.cs Build Error
Post by: Alex Chouls on July 04, 2018, 01:38:30 PM
Thanks for the update! I'll get a fix for .net into the next update - sorry about that! I think Player Settings defaults to il2cpp now, so I didn't catch it...
Title: Re: ActionHelpers.cs Build Error
Post by: stvbabb on July 05, 2018, 05:40:12 AM
Cool, glad it worked out.  :)
Title: Re: ActionHelpers.cs Build Error
Post by: Javelin_IA on July 13, 2018, 09:07:10 AM
Hi Alex,

i have also problems building for HoloLens, using .NET.
Because i run in several errors and the build window from the Mixed Reality Toolkit is not working, as soon as i use IL2CPP, i really need a fix for that.

It would be nice if you can send me a PM or LinkedIn message.

Best Regards


Title: Re: ActionHelpers.cs Build Error
Post by: Alex Chouls on July 13, 2018, 02:55:03 PM
Have you updated to 1.9.0.p4? That patch should fix .net building for HoloLens.
Note: Remember to import and then install the update. Check the version in Main Menu > PlayMaker > Help > About PlayMaker

Title: Re: ActionHelpers.cs Build Error
Post by: Javelin_IA on July 15, 2018, 06:33:50 AM
Oh nice, you're awesome.
My fault that I've not checked the version.
Thanks for the fast reply and also the fast fix for that issue^^ :)