playMaker

Author Topic: (SOLVED) Global Transition Events keeps getting shuffled around  (Read 1232 times)

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Hi!

My global transition events keeps getting shuffled around inside a prefab FSM.
Even if I delete them, put them in the right place, save, then open up the fsm again it's getting reshuffled again, so I can't even fix it.
And it's not only one prefab it happens with all the prefabs that has this fsm attached.
I tried saving the fsm, deleting it, then paste it back into the prefab, it work with another variable replacing bug, but it doesn't work with this one. These global
transition event always gets shuffled around when I open the FSM.
This bug completely broke my painting system in my game.
Does anyone know a workaround or a fix for this bug?
Thank you!
Unity: 2019.4.40f1
Playmaker: Version that works with Unity 2019
« Last Edit: March 10, 2023, 10:48:03 AM by SawyerK »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Global Transition Events keeps getting shuffled around
« Reply #1 on: March 10, 2023, 12:10:50 AM »
Hi.
Maybe try restarting unity after you changed them.

also you could try selecting all the states and copy, then reset the fsm component.
Then Paste the states back.
open all the pm tabs (States/Events/Variables)
Then save and restart

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Re: Global Transition Events keeps getting shuffled around
« Reply #2 on: March 10, 2023, 10:10:57 AM »
Thank you for the reply!

I remade the fsm so that it only uses 2 global transition events, it seems to work better this way.
I guess using 5 global event in one fsm is not a good idea.
The weird thing is that sometimes it works, then I build the game, upload the patch to Steam and then I find out that it broke again from players reporting it.
I think that fsm was cursed. :D

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 256
Re: (SOLVED) Global Transition Events keeps getting shuffled around
« Reply #3 on: March 10, 2023, 02:40:26 PM »
This was a bug in a few playmaker versions and definitely in the one that worked with Unity 2019. Should have been fixed in the meantime.

If you can't update to a later version I remember what caused this problem:
Copy-pasting states or copy-pasting actions inside the prefab. Try to avoid it entirely.

Once you have it happening, the only way to solve it is to completely remake the prefab.

If I remember well, this at one time even entirely corrupted my global file, so be very careful with this bug. But should be good if you avoid the above.

Edit: btw, it's not only the events, but also global variables that are affected.

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Re: (SOLVED) Global Transition Events keeps getting shuffled around
« Reply #4 on: March 11, 2023, 11:18:36 AM »
Thank you for the heads up.
Now I'm very worried about it destroying my game.
Not being able to copy-paste inside a prefab is very annoying.
I use Playmaker 1.9.4. Which is the latest version that don't have this bug and still works with Unity 2019.4 LTS?

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 256
Re: (SOLVED) Global Transition Events keeps getting shuffled around
« Reply #5 on: March 12, 2023, 11:40:33 AM »
Not sure tbh but if you update from within playmaker it would give you the correct latest version I believe. I’m honestly also not sure if it was fixed 100% but it delivery did get a lot better. I generally tried to get used to simply NOT copy paste within a prefab due the update being for quite a while in beta. Now I think I automatically don’t do it anymore lol.

But no worries with corruption of your project. Just make backups of your projects every now and then. Tbh, you should use a versioning control system and submit your changes there. So you never ever have to worry again about losing anything.

So before you update at least back up everything and just give it a try.