playMaker

Author Topic: ConditionalExpression Action not working in WebGL build (SOLVED)  (Read 3266 times)

Caffeen

  • Playmaker Newbie
  • *
  • Posts: 10
Hi, I've created a WebGL build of my project. It compiled without errors, but when I fire it up in the browser, I get tons of the following errors:

Could Not Create Action: [missing Owner]: FSM: State 1: ConditionalExpression (Maybe the script was removed?)

It works fine in the editor, (and in the stand alone player) and everything else works as expected except for the ConditionalExpression Action. (The new one in Beta 1.8)

I made sure the ConditionalExpression.dll import settings were set to Any Platform. Not sure what else to try!

Any help is much appreciated; this is driving me nuts.
« Last Edit: January 26, 2016, 08:09:38 PM by Caffeen »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: ConditionalExpression Action not working in WebGL build
« Reply #1 on: January 23, 2016, 12:42:44 AM »
Beta 1?

What versions of Playmaker and Unity are you using?

Caffeen

  • Playmaker Newbie
  • *
  • Posts: 10
Re: ConditionalExpression Action not working in WebGL build
« Reply #2 on: January 23, 2016, 08:03:56 AM »
Sorry, that was supposed to say Beta 1.8 but 8 and ) turned into 8).
Unity version is 5.3.1f1.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: ConditionalExpression Action not working in WebGL build
« Reply #3 on: January 26, 2016, 12:23:44 AM »
Hi, sorry just had a chance to look into this.

The build process strips code that Unity thinks is not used. In this case it's stripping the ConditionalExpression.dll from the build.

To force Unity to keep the dll you can add it to a link.xml file. I've attached an example. Put the link.xml file anywhere in Assets. Be careful not to overwrite an existing link.xml file with this one.

Jean also made a Linker Wizard that examines your project and builds a link.xml file:
http://hutonggames.com/playmakerforum/index.php?topic=11126.msg53034

(Although I haven't tested if it catches the ConditionalExpresson dll).

I tested here with the attached link.xml file and the ConditionalExpression action worked in a WebGL build.
« Last Edit: January 26, 2016, 12:25:17 AM by Alex Chouls »

Caffeen

  • Playmaker Newbie
  • *
  • Posts: 10
Re: ConditionalExpression Action not working in WebGL build
« Reply #4 on: January 26, 2016, 08:09:19 PM »
Thank you, Alex! You are a champion of the people.