playMaker

Author Topic: Template show DISABLED when you editing the template and play the game.  (Read 5648 times)

paynechu

  • Playmaker Newbie
  • *
  • Posts: 4
Area: Editor
Frequency: Always

1) What happened

Template show DISABLED when you editing the template and play the game.
....this is so trouble... stopping us to use template. Because difficult to debug

2) How can we reproduce it

- create a template
- create a gameobject
- create a FSM under this gameobject
- assign FSM to use template
- click the FSM Graph View to edit the template
- play the game now it will show disabled....I cannot see any state change..

Unity Info:
Unity Version: 3.5.7f6
Playmaker Version: 1.5.4.f3
BuildTarget: iPhone

System Info:
OS: Mac OS X 10.7.5
Processor: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
System Memory: 8192
Graphics Device: Emulated iPhone 3GS / iPad running OpenGL ES2.0

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
I'm not at my computer to try your repro steps, but I think you're probably looking at the template, not the running FSM. Does the selection title say Template? If you re-select the game object do you see a running FSM?

Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
I've got dame problem :(


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Can you describe what's happening in the scene a little more?
What did you select to see this?
Do you have a GameObject selected?

The title in the graph view suggests that you have a Template selected, not a running FSM. Templates are assets like script files, they need to be run by an FSM to be active.

Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Template show DISABLED when you editing the template and play the game.
« Reply #4 on: September 08, 2017, 12:56:59 PM »
After all this time. I still don't understand how to properly debug templates. I have game object that uses template. Like this

https://i.gyazo.com/f61efaf9b19e6c523a2c5d999ebaa196.png

If during gameplay I hit edit, I can't preview what's is going on. It looks like this.

https://i.gyazo.com/ec622c9a21b5818c7a6534d726590e35.png

So how can I debug during gameplay like regular fsm?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Template show DISABLED when you editing the template and play the game.
« Reply #5 on: September 08, 2017, 01:31:02 PM »
When you select the GameObject using the template while the game is running you should see the FSM running in the Playmaker Editor.

Edit currently always selects the template asset (not the running FSM), but I'll change this so it works like the Run FSM action: So the button says Edit at edit time, and Show when the game is running, to show the running FSM.

Haymaker

  • Playmaker Newbie
  • *
  • Posts: 11
Hey Alex, this is still a problem for me.  Game is running, I hit edit to watch the FSM run and check variables etc, it just says disabled. 

Here's what i've found on this.  If the game is running, you select a prefab, and the first/highest FSM displays propertly (even if it's a template).  It is being "viewed".  BUT if the prefab has a few FSMs, you have to hit "edit" to view ones beneath the first.  When you hit edit, it just shows it as disabled.  It doesn't default to "view mode" like you describe above if the game is running.

HELP!
« Last Edit: June 07, 2018, 01:31:04 AM by Haymaker »

Haymaker

  • Playmaker Newbie
  • *
  • Posts: 11
bump

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Hi, can you confirm what version of Playmaker you're using?

Are you using the Run FSM action? It should say Show instead of Edit when the game is running...