playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jz87

Pages: [1]
1
Playmaker Help / Serializing FSMs?
« on: November 21, 2012, 05:04:24 AM »
I'm implementing unit actions that take place over time with FSMs and I would like to be able to include unfinished actions in the save game file. Is there a way to serialize the state of FSM so that when the game is reloaded the FSM gets reloaded to the exact state and avoid re-executing actions in that state that have already finished?

2
Playmaker Help / Type load error
« on: May 02, 2012, 05:28:42 AM »
I keep getting the following:
ReflectionTypeLoadException: The classes in the module cannot be loaded.
System.Reflection.Assembly.GetExportedTypes ()
HutongGames.PlayMakerEditor.FsmEditorUtility.BuildActionsList ()
HutongGames.PlayMakerEditor.ActionSelector.OnEnable ()

when I try to open up the action browser. I can't think of what could be causing it. The unity project compiles and runs just fine so it can't be that the assemblies are incompatible with the mono version. Just a note: I include 2 DLLs, a 3rd party vector drawing library and System.Reactive from Microsoft.

3
Playmaker Help / NullReferenceException
« on: May 15, 2011, 04:36:43 PM »
I'm getting this following exception. I have a GUITexture with an attached state machine. When on mouse down it goes to a new state which loads a new level, destroying everything on the current level. Then I get this exception in the console screen. I have this counter object in the new level that basically waits for 5 seconds and then loads the previous level. If I disable the DrawStateLabels option on the PlayMakerGUI in the new level then this exception does not happen. Can someone explain what are the assumptions that PlayMakerGUI make about the scene?

NullReferenceException: Object reference not set to an instance of an object
PlayMakerGUI.<DrawStateLabels>b__0 (HutongGames.PlayMaker.Fsm x, HutongGames.PlayMaker.Fsm y)
System.Array.qsort[Fsm] (HutongGames.PlayMaker.Fsm[] array, Int32 low0, Int32 high0, System.Comparison`1 comparison)
System.Array.Sort[Fsm] (HutongGames.PlayMaker.Fsm[] array, Int32 length, System.Comparison`1 comparison)
Rethrow as InvalidOperationException: Comparison threw an exception.
System.Array.Sort[Fsm] (HutongGames.PlayMaker.Fsm[] array, Int32 length, System.Comparison`1 comparison)
System.Collections.Generic.List`1[HutongGames.PlayMaker.Fsm].Sort (System.Comparison`1 comparison)
PlayMakerGUI.DrawStateLabels ()
PlayMakerGUI.OnGUI ()

4
Playmaker Tips & Tricks / Weird null reference exceptions
« on: May 11, 2011, 06:58:29 PM »
I'm getting this weird exception. The strange thing is that there are no errors in the state machine and it runs perfectly fine. I just get a ton of these exceptions which is annoying because it drowns out other, more relevant exceptions.

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.SetLayer.DoSetLayer () (at Assets/PlayMaker/Actions/SetLayer.cs:31)
HutongGames.PlayMaker.Actions.SetLayer.OnEnter () (at Assets/PlayMaker/Actions/SetLayer.cs:24)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (System.String fsmEventName)
HutongGames.PlayMaker.Actions.BroadcastEvent.BroadcastToAll () (at Assets/PlayMaker/Actions/BroadcastEvent.cs:60)
HutongGames.PlayMaker.Actions.BroadcastEvent.OnEnter () (at Assets/PlayMaker/Actions/BroadcastEvent.cs:38)
HutongGames.PlayMaker.FsmState.OnEnter ()
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState)
HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal)
HutongGames.PlayMaker.Fsm.ChangeState (System.String eventName)
HutongGames.PlayMaker.Fsm.Event (System.String fsmEventName)
PlayMakerFSM.OnMouseDown ()
UnityEngine.SendMouseEvents:DoSendMouseEvents()

5
Playmaker Help / PlayAnimation finished event
« on: May 11, 2011, 06:52:56 PM »
I have this problem where I have a box expansion animation that I would like to play in reverse. I set the play speed to -1, and set the state to transition to the next state on FINISH. The problem is the state is hitting finish at the start of the animation. Is it deciding the FINISH event based on absolute animation time without regard for play direction?

Pages: [1]