playMaker

Author Topic: FSM changes reverting after play  (Read 6944 times)

playb0t

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
FSM changes reverting after play
« on: September 03, 2013, 02:12:58 PM »
Hi,

Recently I've started having a problem when making changes to an FSM in my project; after hitting play and stop, or even just changing the view to another FSM, the changes will disappear and revert back.  Any change I make (adding/deleting states, toggling checkboxes, selecting from dropdowns, renaming) doesn't seem to stick properly.

This is getting really frustrating, any idea what could be causing this behaviour?  (To point out the obvious, I am NOT making changes WHILE play is active)

playb0t

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: FSM changes reverting after play
« Reply #1 on: September 03, 2013, 03:06:02 PM »
Something is definitely wrong here, now when clicking on states in the editor I am getting these type of errors:

get_fsm: Fsm not initialized: Start Game Turns
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.FsmState:get_Fsm()
HutongGames.PlayMakerEditor.FsmSelection:SelectState(FsmState, Boolean, Boolean)
HutongGames.PlayMakerEditor.FsmGraphView:HandleMouseDown()
HutongGames.PlayMakerEditor.FsmGraphView:HandleMouseEvents()
HutongGames.PlayMakerEditor.FsmGraphView:DoCanvasView()
HutongGames.PlayMakerEditor.FsmGraphView:OnGUI(Rect)
HutongGames.PlayMakerEditor.FsmEditor:OnGUI()
FsmEditorWindow:DoGUI() (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:94)
HutongGames.PlayMakerEditor.BaseEditorWindow:OnGUI()
UnityEditor.DockArea:OnGUI()

state.Fsm != ActiveFsm
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMakerEditor.FsmSelection:SelectState(FsmState, Boolean, Boolean)
HutongGames.PlayMakerEditor.FsmGraphView:HandleMouseDown()
HutongGames.PlayMakerEditor.FsmGraphView:HandleMouseEvents()
HutongGames.PlayMakerEditor.FsmGraphView:DoCanvasView()
HutongGames.PlayMakerEditor.FsmGraphView:OnGUI(Rect)
HutongGames.PlayMakerEditor.FsmEditor:OnGUI()
FsmEditorWindow:DoGUI() (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:94)
HutongGames.PlayMakerEditor.BaseEditorWindow:OnGUI()
UnityEditor.DockArea:OnGUI()

EDIT:  This might be a red-herring, it's no longer happening but I'm still having the original issue with FSM changes reverting.
« Last Edit: September 03, 2013, 03:20:11 PM by playb0t »

playb0t

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: FSM changes reverting after play
« Reply #2 on: September 03, 2013, 03:43:32 PM »
Ok, I think I might have narrowed it down:

It seems as if after playing and stopping, if I go back to the Playmaker tab and make changes to the currently displayed FSM they will be lost when playing again or changing FSMs.

If, after playing and stopping, I change the FSM to another one and then back again first, it seems the changes will stick afterwards.

Haven't tested thoroughly but this seems to be the general pattern.
« Last Edit: September 03, 2013, 03:45:45 PM by playb0t »

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: FSM changes reverting after play
« Reply #3 on: September 03, 2013, 04:07:00 PM »
I've also had this happen to me but can't narrow it down.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: FSM changes reverting after play
« Reply #4 on: September 03, 2013, 05:12:27 PM »
Can you submit a bug report so we get more system info etc.?

I couldn't repro here, but there may be something in your setup that I'm not talking into account...

EDIT: To submit a bug report: Main Menu > PlayMaker > Tools > Submit Bug Report
« Last Edit: September 03, 2013, 05:19:52 PM by Alex Chouls »

Aaron

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: FSM changes reverting after play
« Reply #5 on: September 09, 2013, 03:13:32 AM »
Just happened to me. Bug report submitted.

I was using Playmaker with A* PathFinding Project and the thirdparty PlayMaker actions for A*PP.


booster

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: FSM changes reverting after play
« Reply #6 on: September 10, 2013, 06:40:59 AM »
This started happening to me as well - it was driving me up the wall!
I had the "Playmaker Editor" window and the "Game" window in the same location, bottom left. I would flip between them using the tabs.

As soon as I docked the "Game" window somewhere else it stopped happening!
« Last Edit: September 10, 2013, 07:15:13 AM by booster »

kathode

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Re: FSM changes reverting after play
« Reply #7 on: December 30, 2013, 02:30:21 PM »
I'm getting this too today.  Very strange.  Are there any updates?

Update: As reported above, when I move the game window somewhere else, the problem went away.  I had originally had a single window with scene and game tabs.  I changed it so it's two half-size windows and the problem went away.
« Last Edit: December 30, 2013, 02:38:22 PM by kathode »

phannDOTde

  • Full Member
  • ***
  • Posts: 234
    • View Profile
    • Peter Hann .de
Re: FSM changes reverting after play
« Reply #8 on: December 31, 2013, 12:14:01 AM »
Me too - out of nowhere entering values somewhere and they just got reseted to the ones before. All started as I used Format String Action with additional Formating like that {0:F} to try some new stuff now when ever I load even older versions of my scene I cant add values anymore. as soone I run the Scene it rewerds to older values. :-(

phannDOTde

  • Full Member
  • ***
  • Posts: 234
    • View Profile
    • Peter Hann .de
Re: FSM changes reverting after play
« Reply #9 on: December 31, 2013, 12:20:12 AM »
Another strange thing now after moving around the Game Window is that now I can enter new values but if i manually change a value of a local Var at runtime it tsays ther after stoping the Game. When I run the Game again it goes back to the unchanged Value. What is going on here!?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14500
  • Official Playmaker Support
    • View Profile
Re: FSM changes reverting after play
« Reply #10 on: January 02, 2014, 07:39:23 AM »
Hi,

You have recorded a bug report for this right?

I am planning on reviewing the least set of bug report next week, and find a clear set of repro steps.

bye,

Jean

phannDOTde

  • Full Member
  • ***
  • Posts: 234
    • View Profile
    • Peter Hann .de
Re: FSM changes reverting after play
« Reply #11 on: January 05, 2014, 02:32:27 PM »
My Bug report to that matter is Case #898
It isnt easy to repro anyway but happends from time to time. Seems for me it has something to do with "locking" an FSM in the Editor View and than loading a new/other scene. The "locking" statur stays and after that sometimes it randomly starts that behaviour described.

Cheers
Peter

mrmagoo

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: FSM changes reverting after play
« Reply #12 on: January 06, 2014, 03:52:05 PM »
Same here.

It is definitely to do with lock being on. I can toggle the bug easily just by clicking lock on and off.
Even if I switch to another state and back it is the same thing.

phannDOTde

  • Full Member
  • ***
  • Posts: 234
    • View Profile
    • Peter Hann .de
Re: FSM changes reverting after play
« Reply #13 on: January 08, 2014, 04:51:29 AM »
It seams that it will be fixed in the new upcomming version.

Gua

  • Full Member
  • ***
  • Posts: 162
    • View Profile
    • Andrii Vintsevych
Re: FSM changes reverting after play
« Reply #14 on: August 11, 2014, 01:06:19 PM »
Got state.Fsm != ActiveFsm error

A lot of behaviors, stopped working. I've suspect, that this is happend, cause I've switched platform to Mac. But after restoring project using svn, I've not been able to reproduce this problem.
« Last Edit: August 11, 2014, 01:38:18 PM by Gua »