playMaker

Author Topic: PM works in editor, not in build.  (Read 6723 times)

stevecash83

  • Playmaker Newbie
  • *
  • Posts: 25
PM works in editor, not in build.
« on: June 09, 2017, 01:01:29 AM »
This is the third game I've had this problem with. Using 'Triggers', 'Wait' and 'MoveToward', anything really, works fantastic in the editor, but once built, nothing works at all. Is there any fix for this? It's like PlayMaker is for editor only projects and does nothing for a built project.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: PM works in editor, not in build.
« Reply #1 on: June 09, 2017, 11:33:43 AM »
Hi,
Sorry to hear that, but you should always have a backup of your projects.
You can do this manually or use git/sourcetree.

If you still can retrieve your project, what platform are you building to?
Are you using stripping levels?

I worked on several projects for android and webgl but i did not have problems with it.

except on android when using stripping level and also sometimes when i used get/set properties

stevecash83

  • Playmaker Newbie
  • *
  • Posts: 25
Re: PM works in editor, not in build.
« Reply #2 on: June 09, 2017, 04:56:39 PM »
I'm using MacBook Pro and building for PC and Mac. My scene seems to have completely deleted itself forever, but this isn't the first time.

Are there a list of Playmaker functions that don't work in builds? This seems to keep happening and it sucks scrapping projects after so much work.

stevecash83

  • Playmaker Newbie
  • *
  • Posts: 25
Re: PM works in editor, not in build.
« Reply #3 on: June 09, 2017, 05:16:49 PM »
Okay I got the scene back. Unity had loaded a blank one for some reason with an empty assets folder.

So moving on, playmaker functions still aren't working outside of the editor. Any ideas?

stevecash83

  • Playmaker Newbie
  • *
  • Posts: 25
Re: PM works in editor, not in build.
« Reply #4 on: June 09, 2017, 08:56:14 PM »
Okay, so as far as I can tell everything in the game seems to work EXCEPT triggers. The triggers work in the editor but NOT in the build. Please, any help?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: PM works in editor, not in build.
« Reply #5 on: June 10, 2017, 03:18:36 AM »
Hi,
What unity and playmaker version are you using?
Can you show some pictures or a video with the triggers and actions for it.
I found a similar issue on the unity forum

You can use a "debug log" action in the state that should be triggered and also where the trigger action is.

stevecash83

  • Playmaker Newbie
  • *
  • Posts: 25
Re: PM works in editor, not in build.
« Reply #6 on: June 10, 2017, 04:23:28 AM »
Inity 5.6.1f1

Playmaker 1.8.4

See this video :https://www.youtube.com/watch?v=6MNwxMPskz8 for a full showing of the errors I am encountering.

Any help would be appreciated! 

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: PM works in editor, not in build.
« Reply #7 on: June 10, 2017, 07:02:44 AM »
Hi,
I just made a test scene quickly, but all seems to work here.
Same version as your unity and playmaker, the only difference is that i build on a pc instead of a mac, but i don't think that can be the issue.

Did you try a build in development mode and did you add some "debug log" actions?

You can also have a text object and use 'set text' and place that into the action with a trigger and one in the state after the trigger.

You can also send a bug report inside unity on the playmaker tab : playmaker/Tools/Submit Bug Report.
And explain as much as you can (what platform you build / what 3th party assets you are using / ...)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: PM works in editor, not in build.
« Reply #8 on: June 10, 2017, 07:36:25 AM »
I'm agreed with Djaydino. If you use a text object and set the text to "inside trigger" when you are inside and "outside trigger" when you are outside the trigger. Then you can see if the trigger is activated. Maybe the trigger has moved, so it's not at the same position in the build as in the editor. What if you use a trigger with mesh, so you can see if it's moved or something?

Hope you get it to work. It's very frustrating when things you expect that should work doesn't work at all.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

stevecash83

  • Playmaker Newbie
  • *
  • Posts: 25
Re: PM works in editor, not in build.
« Reply #9 on: June 10, 2017, 03:14:39 PM »
I built it with triggers having mesh. I can see them, they have not moved. They just do not respond to 'Trigger Enter' once built. They are still working in the editor.

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: PM works in editor, not in build.
« Reply #10 on: June 10, 2017, 06:27:00 PM »
Ok. Try to create a brand new scene. And create a trigger to see if Trigger enter works.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: PM works in editor, not in build.
« Reply #11 on: June 10, 2017, 11:53:34 PM »
On your other post you said that you tried on a clean scene and it worked there.
Quote
I tried it in a new scene (an essentially empty scene) and the trigger worked on build. So I pasted the large scene that I had been working on into the new scene and same issue, once built, the triggers don't work again. Help?
It seems to me it is not a playmaker issue.

1st : Be sure to make a backup of your project folder before you try anything.

Did you check out the link to the unity forum?
Did you try with debug actions?
Maybe you can try adding a part of the big scene and see if it works.
If so then add another part.

Another thing you can try is to "Reimport all" you can find this under the Asset Menu

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PM works in editor, not in build.
« Reply #12 on: June 12, 2017, 01:55:46 AM »
Inity 5.6.1f1

Playmaker 1.8.4

See this video :https://www.youtube.com/watch?v=6MNwxMPskz8 for a full showing of the errors I am encountering.

Any help would be appreciated!

Hi,

 The video is not listed anymore, what are the errors you see in the Unity console?

Bye,

 Jean

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: PM works in editor, not in build.
« Reply #13 on: June 12, 2017, 12:22:24 PM »
Quote
I tried it in a new scene (an essentially empty scene) and the trigger worked on build. So I pasted the large scene that I had been working on into the new scene and same issue, once built, the triggers don't work again. Help?

When you tried it in a new scene, and it worked there. Did you copy the FPS Controller from your main scene to the new scene to try the trigger? Or did you use another object just to make something very fast to see if it works?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: PM works in editor, not in build.
« Reply #14 on: June 21, 2017, 09:53:52 PM »
Hi,
Your issue might be the same as on this topic:

http://hutonggames.com/playmakerforum/index.php?topic=15332.msg70888#msg70888

Maybe you can try and confirm if this is the same issue.