Hi,
I have a global bool that a lot of different FSM/States interact with. When I debug I want to know which of all the FSMs that interacted wit hit.
Are there any way, while in debug-mode, to see which one of all the FSM that flipped the global bool?
/Christian
That is something I wanted too for a long time.
A Log to be created for a Global variable. GlobalVarLog.
It would be the equivalent of FsmLog, but for a variable. FsmLog is nice because it's chronological and provides an accurate enough time counter too (00:00:00).
It would show which FSM, state and action used the var, either read (implied get) or written (implied set).
Obviously this could be done for local vars too!
Since vars are hardly private at all because they can be changed by other FSMs,
GlobalVarLog could be recycled to create a (Local)VarLog tool too (it's easy, coders are wizards!). Very useful to quickly check all the changes brought to a var (or more).
I wanted this for events too (EventLog) so we could track the behavior of any specific event, local or global, one or more at a time (you'd preselected them from the list of events): who uses it, who calls it, who receives it, when, time needed to process it, etc.
With, again, FSM, state and action details as a tree to be deployed. Playmaker is very secretive about how events are launched and managed, so I'd love this to be more exposed. Sorry for the hijack btw.
@Jean: Unless I missed something, FsmLog has a focus on a FSM; it will not track accurately the changes brought to a given Global var (those you hate with a passion
) since it limits itself to the selected FSM.