playMaker

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

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Local variable reported but doesn't exist
« on: April 01, 2017, 10:21:55 AM »
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: 12351
  • Official Playmaker Support
    • View Profile
Re: Local variable reported but doesn't exist
« Reply #1 on: April 03, 2017, 11:50:31 PM »
Hi,

 At what point this error occured?

Bye,

 Jean

Alatriste

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

marv

  • Junior Playmaker
  • **
  • Posts: 50
    • View Profile
Re: Local variable reported but doesn't exist
« Reply #3 on: April 05, 2017, 04: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: 112
    • View Profile
Re: Local variable reported but doesn't exist
« Reply #4 on: April 06, 2017, 01:35:41 AM »
I'll take a look and I'll update the post asap.