playMaker

Author Topic: Local variable reported but doesn't exist  (Read 2293 times)

Alatriste

  • Full Member
  • ***
  • Posts: 193
Local variable reported but doesn't exist
« on: April 01, 2017, 01:21:55 PM »
Hi,

I'm getting this weird warning(see screenshot) and when I finally isolated the FSM that seems to be triggering the message, the variable doesn't exist. I have been actually trying to find that variable in all my FSMs but it doesn't show up.

Am I missing something? Is there a way to actually track down that variable? (by the way, the gameObject that is giving the error is not the one that appear in the message, which is quite confusing.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Local variable reported but doesn't exist
« Reply #1 on: April 04, 2017, 02:50:31 AM »
Hi,

 At what point this error occured?

Bye,

 Jean

Alatriste

  • Full Member
  • ***
  • Posts: 193
Re: Local variable reported but doesn't exist
« Reply #2 on: April 05, 2017, 04:01:55 AM »
Right after clicking the play buttons in the editor.

marv

  • Junior Playmaker
  • **
  • Posts: 50
Re: Local variable reported but doesn't exist
« Reply #3 on: April 05, 2017, 07:33:14 AM »
Looks like an error caused by a "set fsm xy"/"get fsm xy" action that tries to access a nonexistent variable. Could it be that you're using a similarly named variable (probably different capitalization) somewhere? If so try finding that one and go from there to other FSMs that should try accessing it.

Alatriste

  • Full Member
  • ***
  • Posts: 193
Re: Local variable reported but doesn't exist
« Reply #4 on: April 06, 2017, 04:35:41 AM »
I'll take a look and I'll update the post asap.