giovafr 10 Posted May 21, 2014 i'm discovering FSMs,have read some articles regarding this, but i'm still missing of most important informations : 1) how to debug an fsm ? and most important : 2) is it possible to get the current state of an FSM? perhaps a special variable? Any help will be very appreciated. Share this post Link to post Share on other sites
das attorney 858 Posted May 21, 2014 Put lots of this in your FSM: diag_log format ["%1", _variableYouNeedToCheck]; You can then see what's running and work out where it is at any point. You could assign a variable to something (like to missionNameSpace or similar) when the FSM is in a certain state so you know where it is at any given time. Share this post Link to post Share on other sites
giovafr 10 Posted May 21, 2014 yes i use a lot of "custom tracking variable" thx :) But i also hope there is a magic variable as _foreachindex to get current FSM state :D Share this post Link to post Share on other sites
k0rd 3 Posted May 21, 2014 diag_debugFSM _handle Starts visual debugging of FSM with _handle. It basically opens the FSM in an instance of the FSM Editor and shows which state is currently active: green. (source : https://manuals.bisimulations.com/vbs2/1-60/devref/Default_Left.htm#StartTopic=Content/FSM_Manual/FSM_Manual.htm) Share this post Link to post Share on other sites
giovafr 10 Posted May 22, 2014 i was so happy by reading your answer ! Unfortunatly diag_debugFSM doesn't exists for Arma 3, it seems available only for vbs2 :pet5: Share this post Link to post Share on other sites
k0rd 3 Posted May 22, 2014 (edited) i was so happy by reading your answer !Unfortunatly diag_debugFSM doesn't exists for Arma 3, it seems available only for vbs2 :pet5: I was worried about that... sorry for getting your hopes up man... [edit] maybe make a feedback tracker feature request for it or something similar? Edited May 22, 2014 by k0rd Share this post Link to post Share on other sites
giovafr 10 Posted May 22, 2014 yes, i'll do that and post link to the ticket here. while this i set a _state variable everywhere, perhaps i'll do a tool for that ;) Thanks for your help. Share this post Link to post Share on other sites