playMaker

Author Topic: Find which fsm have the error (SOLVED)  (Read 2350 times)

zirai

  • Playmaker Newbie
  • *
  • Posts: 28
Find which fsm have the error (SOLVED)
« on: April 21, 2020, 04:45:53 AM »
Hello, i have a problem with console log.
So, i have like hundred objects with fsm and most of them have array list get action.
Then Console log show some index out of range error.

So my problem is to find which fsm have the error.

Any trick to solve this? Can the array list get action be edited so it can show the name of the object use the fsm?

Thanks for your time and hope everyone doing okay :)
« Last Edit: April 22, 2020, 12:47:36 AM by zirai »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Find which fsm have the error
« Reply #1 on: April 21, 2020, 09:04:03 AM »
Hi.
Many errors, when you click on the they will highlight the object.
this might narrow down the issue.

also try turning of certain objects and see if there error still happens or not.

you could try edit the line 86 like this :
Debug.Log(e.Message + gameObject.GameObject.Name);

but i don't think this sends the out of range message. but you can at least try :)

you could also show the "reference" in the debug as well if it works and you have lots of arrays on the object

zirai

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Find which fsm have the error
« Reply #2 on: April 22, 2020, 12:47:11 AM »
Hi dJayDino,

when clicked the error message nothing happened

So i edit the the debug log into:
Debug.Log(e.Message + Fsm.GameObjectName);

the problem solved, now i know which object throw the out of range error.
this is super handy.

I will mark this as solved

Thx a lot for your time :D

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Find which fsm have the error (SOLVED)
« Reply #3 on: April 22, 2020, 05:25:59 AM »
Hi.
So the debug line Helped?

Great!

I will ping jean if he could update the actions with this, it can be very helpful to debug this kind of issue.

zirai

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Find which fsm have the error (SOLVED)
« Reply #4 on: April 23, 2020, 01:20:12 AM »
Hi, so turns out it was a try catch debug.log from array list get, that's why it did not show the object when i clicked the message in log concole.

I use this now. It works perfectly  ;D

Debug.Log(e.Message +""+ Fsm.GameObjectName + "\nFsm: " + Fsm.Name + "\nState: " + Fsm.ActiveStateName);




djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Find which fsm have the error (SOLVED)
« Reply #5 on: April 23, 2020, 07:19:24 AM »
Hi.
I pinged Jean and its now on his To Do list :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Find which fsm have the error (SOLVED)
« Reply #6 on: April 28, 2020, 02:19:39 AM »
Hi,

 updated actions to log as you mentionned, indeed it's better to find the issue...

Don't forget to also use the PlayMaker own log system it tells you more about the context with the fsms.

Bye,

 Jean