playMaker

Author Topic: Call Method Action is crashing PlayMaker  (Read 1060 times)

bigPalooka

  • Playmaker Newbie
  • *
  • Posts: 9
Call Method Action is crashing PlayMaker
« on: October 11, 2022, 12:43:57 AM »
Hi guys, I'm really hoping you can help!

I use the Call Method action in my game to trigger the start of dialogue.
For reference, I'm using it on a global variable containing the script.

However it's started to bug out. On some objects it's fine, on others it's giving issues.

Trying to open a state containing the method will show the following error, and the PlayMaker editor will show completely blank. If the state opens but you try to edit it, such as moving the action it will cause the error.



Running the game will crash when it reaches the problem state.

This is an example of a state that will crash.



It's been working for months so I'm not sure what's changed!

I've tried:
-Removing fsm component from problematic GameObjects and remaking it
-Reinstalling PlayMaker
-Moving Assets and Packages to a fresh project

Please help if you can. This is currently my full time job and I'm dead in the water until it's fixed.

Thanks!
« Last Edit: October 11, 2022, 12:48:09 AM by bigPalooka »

bigPalooka

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Call Method Action is crashing PlayMaker
« Reply #1 on: October 11, 2022, 07:59:01 AM »
Just to add some more info, I was able to view one of the bugged states and it contains this "Specified cast is not valid" error.


bigPalooka

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Call Method Action is crashing PlayMaker
« Reply #2 on: October 11, 2022, 11:17:02 PM »
Hi, solved it.  ;D

I had a local GameObject variable on the fsm with the same name as the global variable I was trying to access (because I'm very stupid).

Renamed it, all is working now. Never do important work after 2am, kids.