Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: matthutton on February 10, 2023, 03:21:08 PM

Title: Global events replacing
Post by: matthutton on February 10, 2023, 03:21:08 PM
I'm having a lot of trouble with globals in my project. Global events are reassigning to new one across my project. This is absolutely causing havoc. So I'll have a global event on many FSMs and all of the sudden, they switch to a new global event. I find that I can't keep the global variables pallet open while working - that feels related.

This isn't just happening in one project. Is there anything I can do to make Global events and variables more reliable?

Unity 2021.3.17f1
Playmaker Welcome displays 1.94

Update:
Just happened again. Playmaker lost track of a variable and substituted the references - breaking the logic. At this point my project is feeling fragile.

Anyone know what is triggering this? It may have something to do with working in prefabs.
Title: Re: Global events replacing
Post by: djaydino on February 11, 2023, 12:50:23 AM
Hi.
It seems to happen to me before, when you set a global variable and then use undo.

But i minimized using globals by using only a few and only game object.

for example 1 global for Player, then on that player i have a "Data" fsm with the variables i need to access globally.

then use Get/Set Fsm Variables (there are more fsm action on the ecosystem like for example Fsm Bool Test)
Title: Re: Global events replacing
Post by: matthutton on February 11, 2023, 03:36:50 PM
I think I'm ready to migrate to that pattern to avoid globals. They seem unstable and unreliable. How about global events? Can we avoid those as well?
Title: Re: Global events replacing
Post by: djaydino on February 12, 2023, 01:49:57 PM
Hi.
So far I did not have issues with Global Events.
Title: Re: Global events replacing
Post by: Fat Pug Studio on February 26, 2023, 01:11:26 PM
I did, avoid anything global related like plague.